Skip to main content

One BILLING address and multiple SHIPPING address

12 years 11 months ago #137236 by PubSite
Hi,

I think this is a special case I'm facing. Right now, when the users want to choose addresses in the CHECKOUT, there are two parts. billing and shipping. and whenever an address is added to any of these, it's added to both of them actually and this is a thing I don't want to have on my website. I would like to have JUST ONE address and no NEW button so that the user will have only ONE BILLING address and if he/she wants to change it they can edit it with the EDIT button. and then underneath that, I would like to have the SHIPPING ADDRESS which can be the same as that one billing address or it can be different and they can add it there. But I don't want more than one address to be shown in the top on BILLING address. I hope you can understand what I mean. So I just want one address on billing part and multiple addresses in shipping part. I want to remove the ability to add more than one address to billing but instead in shipping you can add as much as you want. How can I do that? Thanks in advance. This is a problem I have to solve soon. Please help me.

Regards

Please Log in or Create an account to join the conversation.

12 years 11 months ago - 12 years 11 months ago #137262 by lionel75
Last edit: 12 years 11 months ago by lionel75.

Please Log in or Create an account to join the conversation.

12 years 11 months ago #137297 by PubSite
Can someone please help me on this topic? Hopefully this is the last thing I'll be asking for. I'm all done and the only thing remaining is this. It's hard for me so I will need your help on this Hika Support. Thanks. :)

Please Log in or Create an account to join the conversation.

12 years 11 months ago #137321 by Xavier
Hi,

Actually this is the way it's working in HikaShop. An address is added in both address type.
But you can edit the view "checkout / address_view" and add an if/else condition in the checkout to display only one billing method (the checked one) and display all the shipping methods.
The following user(s) said Thank You: PubSite

Please Log in or Create an account to join the conversation.

12 years 11 months ago #137408 by PubSite
Thanks for the great idea.. Since I don't know the code and the variables that much, can you help me with the code a little? It would be truly great if you do. This is the last thing I need on my website.

Regards

Please Log in or Create an account to join the conversation.

12 years 10 months ago #137602 by nicolas
You can add such code:
Code:
if($k && $this->type=='billing') break;
after:
Code:
foreach($this->addresses as $address){
The following user(s) said Thank You: PubSite, Rohit

Please Log in or Create an account to join the conversation.

12 years 10 months ago #137925 by PubSite
shall I use the code exactly as you've written it? I'm not that good with coding so help me out please

Please Log in or Create an account to join the conversation.

12 years 10 months ago #137946 by nicolas
The following user(s) said Thank You: PubSite

Please Log in or Create an account to join the conversation.

12 years 10 months ago #138075 by PubSite
Thanks.. The only thing I need to know now is where to put it in the file mentioned above? I can see that there is an open curly brace and it's not closed. is this code missing something? Please guide me on putting it where it should be so I can test it. Thank you so much. Merry christmas and happy new year.

Please Log in or Create an account to join the conversation.

12 years 10 months ago #138077 by PubSite
thanks I fixed it.. :)

Please Log in or Create an account to join the conversation.

12 years 6 months ago #155853 by Rohit
Please tell me how to fix it???

Please Log in or Create an account to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum