One BILLING address and multiple SHIPPING address

  • Posts: 100
  • Thank you received: 1
11 years 4 months ago #137236

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.

  • Posts: 846
  • Thank you received: 92
11 years 4 months ago #137262

error orry

Last edit: 11 years 4 months ago by lionel75.

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

  • Posts: 100
  • Thank you received: 1
11 years 4 months ago #137297

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #137321

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.

  • Posts: 100
  • Thank you received: 1
11 years 4 months ago #137408

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.

  • Posts: 83674
  • Thank you received: 13545
  • MODERATOR
11 years 4 months ago #137602

You can add such code:

if($k && $this->type=='billing') break;
after:
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.

  • Posts: 100
  • Thank you received: 1
11 years 4 months ago #137925

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.

  • Posts: 83674
  • Thank you received: 13545
  • MODERATOR
11 years 4 months ago #137946

yes

The following user(s) said Thank You: PubSite

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

  • Posts: 100
  • Thank you received: 1
11 years 3 months ago #138075

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.

  • Posts: 100
  • Thank you received: 1
11 years 3 months ago #138077

thanks I fixed it.. :)

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

  • Posts: 11
  • Thank you received: 0
10 years 11 months ago #155853

Please tell me how to fix it???

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

Time to create page: 0.111 seconds
Powered by Kunena Forum