Display "Add to Wishlist" button

  • Posts: 48
  • Thank you received: 0
12 years 2 months ago #62700

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




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

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

  • Posts: 13201
  • Thank you received: 2322
12 years 2 months ago #62748

Hi jackpotwinner,

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

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

Last edit: 12 years 2 months ago by Xavier.

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

  • Posts: 48
  • Thank you received: 0
12 years 2 months ago #62877

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.

<?php
if(!isset($this->cart))
$this->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

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

  • Posts: 13201
  • Thank you received: 2322
12 years 2 months ago #62941

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

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

Time to create page: 0.080 seconds
Powered by Kunena Forum