Skip to main content

Problems editing customer address

More
1 year 5 months ago - 1 year 5 months ago #366780 by daduts
-- 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:
Code:
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
Last edit: 1 year 5 months ago by Jerome. Reason: fixing code

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

More
1 year 5 months ago #366802 by Jerome
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.

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

More
1 year 5 months ago #366803 by daduts
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.170 seconds
Powered by Kunena Forum