- Posts: 126
- Thank you received: 2
How to hide existing addresses?
Let me congratulate you for this amazing script, it's great! I would like to customize it a little for our needs and here what i would like to achieve:
we need to use hikashop for our dealers, so they can order products from our stock for their clients. In checkout area - where user will add delivery address - it is possible to hide existing (previous) addresses every time user will make an order? So he have to add a new address for each new order?
I tried to remove existing addresses every time when user visit the store, but he will lost order history.
Thank you
Please Log in or Create an account to join the conversation.
You can edit the file amdinistrator/components/com_hikashop/classes/address.php and add the line:
$addressData->address_published=0;
before the line:
return parent::save($addressData);
That way, the addresses will always unpublished and the user won't have access to them and they will only be added in the order information.
Please Log in or Create an account to join the conversation.
Now the address is hidden, that's ok. But, there is a problem: there is no "sign" for user that he added an address. User should see the address he just added (maybe he need to edit it), but only for this order.
Let me explain more clear, sorry, english is not my native language:
User make an order today for Client X. In checkout page, will add customer address and press submit. Order is send etc...
After few days, same user will make a new order for a new client. In checkout page, he will not see any existing address, so he have to add a new one for this new customer.
Please Log in or Create an account to join the conversation.
That will unpublish the address once the order is finished.
This attachment is hidden for guests.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
If i remove the address, payment methods are visible again
Tested in Firefox, Chrome with 2 different users..same problem
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
It's probably because you set a zone restriction in your payment/shipping methods options but the address is outside the zone restriction.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 38
- Thank you received: 0
Will the attached plugin shown above still work correctly in the latest version of HikaShop?
Thank you!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Warning
JInstaller: :Install: Can't find Joomla XML setup file.
Thank you
Please Log in or Create an account to join the conversation.
This error message means that you have an upload limitation.
Please use the install by FTP : www.hikashop.com/support/support/documen...-how-to-install.html
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.