Skip to main content

error after order edit

More
7 years 4 months ago #306757 by jouwnaambord.nl
-- HikaShop version -- : 4.1.0
-- Joomla version -- : 3.9.5
-- PHP version -- : 7.2

Hi,

Every time I remove a product from an order I get an error and the sample image (custom_field)I wich is assigned to the order will disappear from the backend form. See the screenshots.

Could this be a bug?

Michel.

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

More
7 years 4 months ago #306758 by nicolas
Replied by nicolas on topic error after order edit
Hi,

Could you try again with the "error reporting" and "debug mode" settings activated ?
It should hopefully provide an error message with more information on what's going on, which will help us understand the situation better.

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

More
7 years 4 months ago #306863 by jouwnaambord.nl
Hi Nicolas,

Here the screenshot with the debugmode activated.

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

More
7 years 4 months ago #306867 by nicolas
Replied by nicolas on topic error after order edit
Hi,

Thank you.

Change the line:
Code:
$order->product[] = $order_product;
to:
Code:
$order->product = array($order_product);
in the file administrator/components/com_hikashop/classes/order.php and that should fix the problem.
The following user(s) said Thank You: jouwnaambord.nl

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

More
7 years 4 months ago #306899 by jouwnaambord.nl
Hi Nicolas,

Yes, thank you. That solved it.

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

More
7 years 4 months ago #306903 by nicolas
Replied by nicolas on topic error after order edit
We'll also add that patch on our end.

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

Time to create page: 0.211 seconds
Powered by Kunena Forum