How to set shipping address ?

  • Posts: 64
  • Thank you received: 0
10 years 9 months ago #144183

I have a case where I need to force my user to not change/edit the default shipping address.So I need to first set default address using code.I used session to set shipping_address but it did not work.Could you please help me to figure out which code sets the shipping address?

Thanks,

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 9 months ago #144205

The selected shipping address is indeed stored in the session. So you're on the right track.
You can see an example of the address being set in the session in the after_shipping function of the file components/com_hikashop/controllers/checkout.php

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

Time to create page: 0.053 seconds
Powered by Kunena Forum