[Skip to main content](#vessel-content)

#   wishlist undefined class error

##

- **[dlarge](/forum/user/7977-dlarge "View dlarge's Profile")**
- [![dlarge's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7977-dlarge "View dlarge's Profile") Topic Author
- [ Offline](/forum/user/7977-dlarge)

Less More

- Posts: 55
- Thank you received: 2
-
-

13 years 9 months ago [\#87181](#87181) by [dlarge](/forum/user/7977-dlarge "View dlarge's Profile")  *[wishlist undefined class error](/forum/3-bug-report/77770-wishlist-undefined-class-error#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&#95;hikashop/views/cart/tmpl/showcart.php on line 322 Crime Fiction : From Poe to the Present (2nd ed)  Can anyone help?  Dave")* was created by *[dlarge](/forum/user/7977-dlarge "View dlarge's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83Nzc3MC13aXNobGlzdC11bmRlZmluZWQtY2xhc3MtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[likandev](/forum/user/9788-likandev "View likandev's Profile")**
- [![likandev's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9788.png)](/forum/user/9788-likandev "View likandev's Profile")
- [ Offline](/forum/user/9788-likandev)

Less More

- Posts: 69
- Thank you received: 11
-
- [](http://likandevelopment.com)
-

13 years 9 months ago [\#87201](#87201) by [likandev](/forum/user/9788-likandev "View likandev's Profile")  Replied by *[likandev](/forum/user/9788-likandev "View likandev's Profile")* on topic *[wishlist undefined class error](/forum/3-bug-report/77770-wishlist-undefined-class-error#87201 "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&#95;hikashop/views/cart/tmpl/showcart.php on line 322 Crime Fiction : From Poe to the Present (2nd ed)  Can anyone help?  Dave")*

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

// Likan, fixed unset notice if (!(isset($cart -&gt; bought))) { echo $cart -&gt; product_name; } else { echo JHTML::tooltip(implode('&lt;br /&gt;', $cart -&gt; bought), JText::_('HIKA_BOUGHT_BY'), '', $cart -&gt; product_name); } if ($this -&gt; params -&gt; get('show_code')) { echo ' (' . $cart -&gt; product_code . ')'; } ?&gt;

---

Eduardo Chongkan - Likan Development
[ ](http://likandevelopment.com)[ likandevelopment.com](http://likandevelopment.com)

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile"), [dlarge](/forum/user/7977-dlarge "View dlarge's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83Nzc3MC13aXNobGlzdC11bmRlZmluZWQtY2xhc3MtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dlarge](/forum/user/7977-dlarge "View dlarge's Profile")**
- [![dlarge's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7977-dlarge "View dlarge's Profile") Topic Author
- [ Offline](/forum/user/7977-dlarge)

Less More

- Posts: 55
- Thank you received: 2
-
-

13 years 9 months ago [\#87222](#87222) by [dlarge](/forum/user/7977-dlarge "View dlarge's Profile")  Replied by *[dlarge](/forum/user/7977-dlarge "View dlarge's Profile")* on topic *[wishlist undefined class error](/forum/3-bug-report/77770-wishlist-undefined-class-error#87222 "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&#95;hikashop/views/cart/tmpl/showcart.php on line 322 Crime Fiction : From Poe to the Present (2nd ed)  Can anyone help?  Dave")*

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

Thanks again.

Dave

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83Nzc3MC13aXNobGlzdC11bmRlZmluZWQtY2xhc3MtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dlarge](/forum/user/7977-dlarge "View dlarge's Profile")**
- [![dlarge's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7977-dlarge "View dlarge's Profile") Topic Author
- [ Offline](/forum/user/7977-dlarge)

Less More

- Posts: 55
- Thank you received: 2
-
-

13 years 9 months ago [\#87225](#87225) by [dlarge](/forum/user/7977-dlarge "View dlarge's Profile")  Replied by *[dlarge](/forum/user/7977-dlarge "View dlarge's Profile")* on topic *[wishlist undefined class error](/forum/3-bug-report/77770-wishlist-undefined-class-error#87225 "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&#95;hikashop/views/cart/tmpl/showcart.php on line 322 Crime Fiction : From Poe to the Present (2nd ed)  Can anyone help?  Dave")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83Nzc3MC13aXNobGlzdC11bmRlZmluZWQtY2xhc3MtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 9 months ago [\#87230](#87230) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[wishlist undefined class error](/forum/3-bug-report/77770-wishlist-undefined-class-error#87230 "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&#95;hikashop/views/cart/tmpl/showcart.php on line 322 Crime Fiction : From Poe to the Present (2nd ed)  Can anyone help?  Dave")*

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 &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [dlarge](/forum/user/7977-dlarge "View dlarge's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83Nzc3MC13aXNobGlzdC11bmRlZmluZWQtY2xhc3MtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dlarge](/forum/user/7977-dlarge "View dlarge's Profile")**
- [![dlarge's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7977-dlarge "View dlarge's Profile") Topic Author
- [ Offline](/forum/user/7977-dlarge)

Less More

- Posts: 55
- Thank you received: 2
-
-

13 years 9 months ago [\#87231](#87231) by [dlarge](/forum/user/7977-dlarge "View dlarge's Profile")  Replied by *[dlarge](/forum/user/7977-dlarge "View dlarge's Profile")* on topic *[wishlist undefined class error](/forum/3-bug-report/77770-wishlist-undefined-class-error#87231 "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&#95;hikashop/views/cart/tmpl/showcart.php on line 322 Crime Fiction : From Poe to the Present (2nd ed)  Can anyone help?  Dave")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83Nzc3MC13aXNobGlzdC11bmRlZmluZWQtY2xhc3MtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
