Error after checkout

  • Posts: 159
  • Thank you received: 2
9 years 7 months ago #196507

-- url of the page with the problem -- : 5-elemente.org
-- HikaShop version -- : 2.4.0
-- HikaMarket version -- : 1.6.2
-- Joomla version -- : 3.4.1
-- Error-message(debug-mod must be tuned on) -- : Notice: Trying to get property of non-object in /www/htdocs/w00a755c/33/administrator/components/com_hikamarket/classes/order.php on line 1930

Warning: Invalid argument supplied for foreach() in /www/htdocs/w00a755c/33/administrator/components/com_hikamarket/classes/order.php on line 1930

Hi,
I updated Hikashop and Hikamarket to the current versions. After checkout I see the following errors:

Notice: Trying to get property of non-object in /www/htdocs/w00a755c/33/administrator/components/com_hikamarket/classes/order.php on line 1930

Warning: Invalid argument supplied for foreach() in /www/htdocs/w00a755c/33/administrator/components/com_hikamarket/classes/order.php on line 1930

How can I get rid of it? It is the second time, that I run into error messages after updating...
Best
Roger

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 7 months ago #196516

Hi,

Thanks for the report ; we will see to update the package as soon as possible.

For the moment, please edit the file "administrator/components/com_hikamarket/classes/order.php" and replace the code (start on line 1930)

foreach($vendor_order->order_shipping_params->prices as $shipping_price) {
	if(empty($shipping_price->taxes))
		continue;
	foreach($shipping_price->taxes as $tax_namkey => $tax_value) {
		$vendor_order->order_tax_info[$tax_namkey]->tax_amount_for_shipping += $tax_value;
	}
}
By
if(!empty($vendor_order->order_shipping_params) && !empty($vendor_order->order_shipping_params->prices)) {
	foreach($vendor_order->order_shipping_params->prices as $shipping_price) {
		if(empty($shipping_price->taxes))
			continue;
		foreach($shipping_price->taxes as $tax_namkey => $tax_value) {
			$vendor_order->order_tax_info[$tax_namkey]->tax_amount_for_shipping += $tax_value;
		}
	}
}
It will fix your issue.

Sorry for the inconvenient.

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.

  • Posts: 159
  • Thank you received: 2
9 years 7 months ago #196531

Thanks,
the fix worked.
Best
Roger

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

Moderators: Obsidev
Time to create page: 0.058 seconds
Powered by Kunena Forum