- Posts: 100
- Thank you received: 1
One BILLING address and multiple SHIPPING address
12 years 11 months ago #137236
by PubSite
One BILLING address and multiple SHIPPING address was created 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
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
Replied by lionel75 on topic One BILLING address and multiple SHIPPING address
error orry
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
Replied by PubSite on topic One BILLING address and multiple SHIPPING address
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
Replied by Xavier on topic One BILLING address and multiple SHIPPING address
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.
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
Replied by PubSite on topic One BILLING address and multiple SHIPPING address
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
Regards
Please Log in or Create an account to join the conversation.
12 years 10 months ago #137602
by nicolas
Replied by nicolas on topic One BILLING address and multiple SHIPPING address
You can add such code:
after:
Code:
if($k && $this->type=='billing') break;
Code:
foreach($this->addresses as $address){
Please Log in or Create an account to join the conversation.
12 years 10 months ago #137925
by PubSite
Replied by PubSite on topic One BILLING address and multiple SHIPPING address
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
Replied by nicolas on topic One BILLING address and multiple SHIPPING address
yes
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
Replied by PubSite on topic One BILLING address and multiple SHIPPING address
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
Replied by PubSite on topic One BILLING address and multiple SHIPPING address
thanks I fixed it..
Please Log in or Create an account to join the conversation.
12 years 6 months ago #155853
by Rohit
Replied by Rohit on topic One BILLING address and multiple SHIPPING address
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