error after order edit

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
5 years 6 months 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: 82868
  • Thank you received: 13375
  • MODERATOR
5 years 6 months 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: 507
  • Thank you received: 21
  • Hikashop Business
5 years 6 months ago #306863

Hi Nicolas,

Here the screenshot with the debugmode activated.

Attachments:

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
5 years 6 months 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: michelpouli

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
5 years 6 months ago #306899

Hi Nicolas,

Yes, thank you. That solved it.

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
5 years 6 months 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.066 seconds
Powered by Kunena Forum