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

#   Display "Add to Wishlist" button

##

- **[jackpotwinner](/forum/user/4305-jackpotwinner "View jackpotwinner's Profile")**
- [![jackpotwinner's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4305.jpg)](/forum/user/4305-jackpotwinner "View jackpotwinner's Profile") Topic Author
- [ Offline](/forum/user/4305-jackpotwinner)

Less More

- Posts: 54
- Thank you received: 0
-
-
- [](http://www.seekwithinyou.com)
-

14 years 2 months ago [\#62700](#62700) by [jackpotwinner](/forum/user/4305-jackpotwinner "View jackpotwinner's Profile")  *[Display "Add to Wishlist" button](/forum/3-bug-report/62700-display-add-to-wishlist-button#62700 "I wanted to add a wishlist to my products so I clicked on display &quot;add to wishlist&quot; button. When I did this and clicked on my menu item I received this message:  Fatal error: Call to a member function displayButton() on a non-object in /home/seekwith/public&#95;html/components/com&#95;hikashop/views/product/tmpl/quantity.php on line 84  Also, as you can see from the picture, only the one item is available to view on a blank page.  The menu item is a hikashop product listing. I have the newest version of hikashop essential installed as of 8/29/2012.  Thanks for your help Nicolas!")* was created by *[jackpotwinner](/forum/user/4305-jackpotwinner "View jackpotwinner's Profile")*

I wanted to add a wishlist to my products so I clicked on display "add to wishlist" button. When I did this and clicked on my menu item I received this message:

Fatal error: Call to a member function displayButton() on a non-object in /home/seekwith/public_html/components/com_hikashop/views/product/tmpl/quantity.php on line 84

[ ![wishlist.png](/forum/attachment/5441) ](/forum/attachment/5441 "wishlist.png")

Also, as you can see from the picture, only the one item is available to view on a blank page.

The menu item is a hikashop product listing. I have the newest version of hikashop essential installed as of 8/29/2012.

Thanks for your help Nicolas!

---

"The doctor of the future will give no medicine, but will interest his patients in the care of the human frame, in diet, and in the cause and prevention of disease." Thomas Edison

Meditation for Health
[ www.seekwithinyou.com](http://www.seekwithinyou.com)

- [ ![wishlist.png](/forum/attachment/5441) ](/forum/attachment/5441 "wishlist.png") [ ](/forum/attachment/5441?download=1 "wishlist.png")

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 months ago -  14 years 2 months ago [\#62748](#62748) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Display "Add to Wishlist" button](/forum/3-bug-report/62700-display-add-to-wishlist-button#62748 "I wanted to add a wishlist to my products so I clicked on display &quot;add to wishlist&quot; button. When I did this and clicked on my menu item I received this message:  Fatal error: Call to a member function displayButton() on a non-object in /home/seekwith/public&#95;html/components/com&#95;hikashop/views/product/tmpl/quantity.php on line 84  Also, as you can see from the picture, only the one item is available to view on a blank page.  The menu item is a hikashop product listing. I have the newest version of hikashop essential installed as of 8/29/2012.  Thanks for your help Nicolas!")*

Hi jackpotwinner,

Try to edit the file "product / quantity" in HikaShop &gt; Display &gt; View.
Add the line at the top of the file: Code:

$this-&gt;cart = hikashop_get('helper.cart');

Last edit: 14 years 2 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

- **[jackpotwinner](/forum/user/4305-jackpotwinner "View jackpotwinner's Profile")**
- [![jackpotwinner's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4305.jpg)](/forum/user/4305-jackpotwinner "View jackpotwinner's Profile") Topic Author
- [ Offline](/forum/user/4305-jackpotwinner)

Less More

- Posts: 54
- Thank you received: 0
-
-
- [](http://www.seekwithinyou.com)
-

14 years 2 months ago [\#62877](#62877) by [jackpotwinner](/forum/user/4305-jackpotwinner "View jackpotwinner's Profile")  Replied by *[jackpotwinner](/forum/user/4305-jackpotwinner "View jackpotwinner's Profile")* on topic *[Re: Display "Add to Wishlist" button](/forum/3-bug-report/62700-display-add-to-wishlist-button#62877 "I wanted to add a wishlist to my products so I clicked on display &quot;add to wishlist&quot; button. When I did this and clicked on my menu item I received this message:  Fatal error: Call to a member function displayButton() on a non-object in /home/seekwith/public&#95;html/components/com&#95;hikashop/views/product/tmpl/quantity.php on line 84  Also, as you can see from the picture, only the one item is available to view on a blank page.  The menu item is a hikashop product listing. I have the newest version of hikashop essential installed as of 8/29/2012.  Thanks for your help Nicolas!")*

Thanks Xavier, it worked, however there are still issues! Now when I click on the add to wish list button, the window either does not load or if it loads I receive an error message "an error occurred". Despite this, when I refresh my screen, I can see that the product was added to my wishlist module.

Just to be clear for anyone else with the previous issue, you have to place the code within the php tag.

&lt;?php
if(!isset($this-&gt;cart))
$this-&gt;cart = hikashop_get('helper.cart');

---

"The doctor of the future will give no medicine, but will interest his patients in the care of the human frame, in diet, and in the cause and prevention of disease." Thomas Edison

Meditation for Health
[ www.seekwithinyou.com](http://www.seekwithinyou.com)

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 months ago [\#62941](#62941) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Display "Add to Wishlist" button](/forum/3-bug-report/62700-display-add-to-wishlist-button#62941 "I wanted to add a wishlist to my products so I clicked on display &quot;add to wishlist&quot; button. When I did this and clicked on my menu item I received this message:  Fatal error: Call to a member function displayButton() on a non-object in /home/seekwith/public&#95;html/components/com&#95;hikashop/views/product/tmpl/quantity.php on line 84  Also, as you can see from the picture, only the one item is available to view on a blank page.  The menu item is a hikashop product listing. I have the newest version of hikashop essential installed as of 8/29/2012.  Thanks for your help Nicolas!")*

Hi jackpotwinner,

Please try to install the last version of HikaShop from our website.
And install it over the other version.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjcwMC1kaXNwbGF5LWFkZC10by13aXNobGlzdC1idXR0b24/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)
