- Posts: 69
- Thank you received: 1
Convert Cart in Wishlist Error
13 years 8 months ago #86127
by BasketBox
Convert Cart in Wishlist Error was created 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
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.
13 years 8 months ago #86142
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Convert Cart in Wishlist Error
Hi,
Please replace in the file "components/com_hikashop/views/cart/tmpl/showcart.php", the block
By
Regards,
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);
?>
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