wishlist undefined class error

  • Posts: 55
  • Thank you received: 2
11 years 9 months ago #87181

Hi,

I have enabled the wishlist feature on my book site but it comes up with the following error.

Notice: Undefined property: stdClass::$bought in /home/linweb16/w/writersandtheirwork.co.uk/user/htdocs/components/com_hikashop/views/cart/tmpl/showcart.php on line 322
Crime Fiction : From Poe to the Present (2nd ed)

Can anyone help?

Dave

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

  • Posts: 69
  • Thank you received: 11
11 years 9 months ago #87201

I did the following to get rid of it. ( I printed the product Name )

                // Likan, fixed unset notice

		if (!(isset($cart -> bought))) {
			echo $cart -> product_name;
		} else {
		        echo JHTML::tooltip(implode('<br />', $cart -> bought), JText::_('HIKA_BOUGHT_BY'), '', $cart -> product_name);
		}
		if ($this -> params -> get('show_code')) {
		        echo ' (' . $cart -> product_code . ')';
                }
								?>


Eduardo Chongkan - Likan Development
http://likandevelopment.com
The following user(s) said Thank You: Jerome, dlarge

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

  • Posts: 55
  • Thank you received: 2
11 years 9 months ago #87222

Thanks, its done the job and now working, though I dont understand it!

Thanks again.

Dave

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

  • Posts: 55
  • Thank you received: 2
11 years 9 months ago #87225

Not sure if I should open another topic but following on from the above fix, when I click the "show the wishlists" button i get the errors below.


Notice: Undefined property: stdClass::$prices in /home/linweb16/w/writersandtheirwork.co.uk/user/htdocs/components/com_hikashop/views/cart/view.html.php on line 340

Notice: Trying to get property of non-object in /home/linweb16/w/writersandtheirwork.co.uk/user/htdocs/components/com_hikashop/views/cart/view.html.php on line 340

Notice: Undefined variable: price_with_tax in /home/linweb16/w/writersandtheirwork.co.uk/user/htdocs/components/com_hikashop/views/cart/view.html.php on line 340

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 9 months ago #87230

Hi,

The cart/view.html.php file has been mainly modified for HikaShop 2.1.0 and we removed some notices.
Notices are not errors, it's just some notices.
In production, it is highly recommended to do not display PHP notices.

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: dlarge

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

  • Posts: 55
  • Thank you received: 2
11 years 9 months ago #87231

Ah yes thank you for that! I havent gone live with the site yes, but forgot about turning the reporting down.

Works fine now.

Thanks again for all your great support

Dave

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

Time to create page: 0.071 seconds
Powered by Kunena Forum