Convert Cart in Wishlist Error

  • Posts: 69
  • Thank you received: 1
11 years 10 months ago #86127

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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 10 months ago #86142

Hi,

Please replace in the file "components/com_hikashop/views/cart/tmpl/showcart.php", the block

<?php
	echo $this->currencyHelper->format($this->total->prices[0]->price_value, $this->total->prices[0]->price_currency_id);
?>
By
<?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.

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.
The following user(s) said Thank You: BasketBox

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

Time to create page: 0.050 seconds
Powered by Kunena Forum