- Posts: 97
- Thank you received: 8
Problems editing customer address
1 year 5 months ago - 1 year 5 months ago #366780
by daduts
Problems editing customer address was created 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:
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
-- 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;
}
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.
1 year 5 months ago #366802
by Jerome
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.
Replied by Jerome on topic Problems editing customer address
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,
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.
1 year 5 months ago #366803
by daduts
Replied by daduts on topic Problems editing customer address
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
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.232 seconds