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.
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.
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.
In that case, instead of that modification, you should install and publish that small plugin.
That will unpublish the address once the order is finished.
This attachment is hidden for guests. Please log in or register to see it.
Now it's my turn to ask: can i use this plugin with the latest version of hikashop? I tried to install it, but i get the message:
Warning
JInstaller: :Install: Can't find Joomla XML setup file.