Problems editing customer address

  • Posts: 69
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
1 week 2 days ago #366780

-- HikaShop version -- : 5.1.5
-- HikaMarket version -- : 5.0.0
-- Joomla version -- : 4.4.12
-- PHP version -- : 8.2.28
-- Browser(s) name and version -- : Firefox 137.0.2

I'm trying to edit the customer shipping address using Hikamarket frontend management, on clicking save it displays 0 in the address details section, screenshot is attached

I have done some debugging and found these lines (321 to 323) in the the save function of the Hikamarket address class:

if(!hikashop_isClient('administrator') && (!in_array($oldData->address_user_id, $allowed) || !$oldData->address_published)) {
   $do = false;
}
I think this is disabling the action of editing the customer address on frontend. if yes, why can I see the edit option?

Thanks,

Dave

Attachments:
Last edit: 1 week 2 days ago by Jerome. Reason: fixing code

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

  • Posts: 26226
  • Thank you received: 4035
  • MODERATOR
1 week 1 day ago #366802

Hello,

To re-define the context: you're trying to edit the shipping address of a customer order.
Can you please tell me with which account you're trying to do so ? Is that an account associated to your main vendor ?

The action of address edition in an order has some "particularities"; you can't affect other orders.
But the code you're referring to, is not HikaMarket code, but HikaShop one.
I don't use "hikashop_isClient()" in HikaMarket but the function "hikamarket::isAdmin()".

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.

  • Posts: 69
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
1 week 1 day ago #366803

thanks Jerome

yes, both the editing account and the address we are editing are associated with the main vendor.

i tried editing a shipping address of a non-admin account and got the same problem.

: D

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

Moderators: Obsidev
Time to create page: 0.064 seconds
Powered by Kunena Forum