Skip to main content

Error after checkout

More
11 years 6 months ago #196507 by Rokell
Error after checkout was created by Rokell
-- 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.

More
11 years 6 months ago #196516 by Jerome
Replied by Jerome on topic Error after checkout
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)
Code:
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
Code:
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.

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

More
11 years 6 months ago #196531 by Rokell
Replied by Rokell on topic Error after checkout
Thanks,
the fix worked.
Best
Roger

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

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