Skip to main content

Convert Cart in Wishlist Error

More
13 years 8 months ago #86127 by BasketBox
From checkout page I click convert cart in wishlist and get this error:

Notice: Undefined property: stdClass::$prices in /home/basket/public_html/components/com_hikashop/views/cart/tmpl/showcart.php on line 408

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

More
13 years 8 months ago #86142 by Jerome
Hi,

Please replace in the file "components/com_hikashop/views/cart/tmpl/showcart.php", the block
Code:
<?php echo $this->currencyHelper->format($this->total->prices[0]->price_value, $this->total->prices[0]->price_currency_id); ?>
By
Code:
<?php if(empty($this->total->prices)) { $this->total->prices[0] = new stdClass(); $this->total->prices[0]->price_value = 0; $this->total->prices[0]->price_currency_id = hikashop_getCurrency(); } echo $this->currencyHelper->format($this->total->prices[0]->price_value, $this->total->prices[0]->price_currency_id); ?>

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: BasketBox

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

Time to create page: 0.132 seconds
Powered by Kunena Forum