How to hide existing addresses?

  • Posts: 126
  • Thank you received: 2
13 years 2 months ago #7763

Hello,

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.

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
13 years 2 months ago #7771

Hi,

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.

  • Posts: 126
  • Thank you received: 2
13 years 2 months ago #7772

Unfortunately, it doesn't work like i need to do

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.

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
13 years 2 months ago #7774

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.

File Attachment:

File Name: hikashop.zip
File Size:1 KB

Attachments:

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

  • Posts: 126
  • Thank you received: 2
13 years 2 months ago #7783

Hip Hip Ouray! Thank you very much!

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

  • Posts: 126
  • Thank you received: 2
13 years 2 months ago #7798

I think i spoke too soon. For some reason, payment methods radio buttons dissapear after i add a new address and cannot submit the order

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.

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
13 years 2 months ago #7800

Did you revert the modification I was talking about in my first post ?

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

  • Posts: 126
  • Thank you received: 2
13 years 2 months ago #7806

Yes, i did

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

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
13 years 2 months ago #7807

Then it's not related.

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.

  • Posts: 126
  • Thank you received: 2
13 years 2 months ago #7815

Yep, that was the problem. Thank you again!

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

  • Posts: 38
  • Thank you received: 0
11 years 8 months ago #60609

Hi,

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.

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
11 years 8 months ago #60685

Yes.

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

  • Posts: 126
  • Thank you received: 2
8 years 11 months ago #201266

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.

Thank you

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
8 years 11 months ago #201267

Hi,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.094 seconds
Powered by Kunena Forum