error after order edit

  • Posts: 515
  • Thank you received: 22
  • Hikashop Business
6 years 1 month ago #306757

-- 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.

Attachments:

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

  • Posts: 84077
  • Thank you received: 13627
  • MODERATOR
6 years 1 month ago #306758

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.

  • Posts: 515
  • Thank you received: 22
  • Hikashop Business
6 years 1 month ago #306863

Hi Nicolas,

Here the screenshot with the debugmode activated.

Attachments:

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

  • Posts: 84077
  • Thank you received: 13627
  • MODERATOR
6 years 1 month ago #306867

Hi,

Thank you.

Change the line:

$order->product[] = $order_product;
to:
$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.

  • Posts: 515
  • Thank you received: 22
  • Hikashop Business
6 years 1 month ago #306899

Hi Nicolas,

Yes, thank you. That solved it.

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

  • Posts: 84077
  • Thank you received: 13627
  • MODERATOR
6 years 1 month ago #306903

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.063 seconds
Powered by Kunena Forum