"Add to Wishlist" button on Carousel adds to Cart

  • Posts: 84
  • Thank you received: 1
11 years 8 months ago #93336

I have a carousel of products. I have disabled the "Add to Cart" button on this module via the Hikashop options and enabled the "Add to Wishlist" button. On the front end when I click the "add to wishlist" button on the carousel, it adds the item to the cart instead.

Please advise.

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

  • Posts: 84
  • Thank you received: 1
11 years 8 months ago #93340

Also, on all product listings pages, when I click "Add to Wishlist", it adds it to wishlist BUT it still displays the added to cart popup. I know I can disable the popup, but what if I want the popup enabled for "Add to Cart functions"?

So:

First problem is with Carousel, which adds to cart instead of wishlist, and displays cart popup.
Second problem is with all Product listings pages which add to wishlist correctly but display cart popup after clicking add to wishlist.

Please advise, thanks.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #93422

Hi,

Thanks for the report, we have corrected it on our end.

You can edit the file "components/com_hikashop/controllers/product.php" and in the function "updatecart()" in the "else if($cart_type == 'wishlist'){" condition add the line:

$app->setUserState( HIKASHOP_COMPONENT.'.popup_cart_type','wishlist');
Before:
						break;
					case 'stay':
						$stay = 1;

And edit the view "checkout / notice" and replace:
$cart_type = JRequest::getString('cart_type','cart');
$app = JFactory::getApplication();
$wishlist_id = $app->getUserState( HIKASHOP_COMPONENT.'.wishlist_id','0');
By:
$app = JFactory::getApplication();
$wishlist_id = $app->getUserState( HIKASHOP_COMPONENT.'.wishlist_id','0');
$cart_type = $app->getUserState( HIKASHOP_COMPONENT.'.popup_cart_type','cart');
$app->setUserState( HIKASHOP_COMPONENT.'.popup_cart_type','cart');

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

  • Posts: 84
  • Thank you received: 1
11 years 8 months ago #93474

Can I just download and install the latest version? Will that fix everything?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 8 months ago #93480

That has not been included yet. We are currently preparing a new release for next week which will include that fix.

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

  • Posts: 84
  • Thank you received: 1
11 years 8 months ago #93485

ok. I did the first part. where do I go to "edit the view "checkout / notice""???

What file is this?

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

  • Posts: 84
  • Thank you received: 1
11 years 8 months ago #93500

Ok, I did both of those things. I went through the backend Joomla panel and changed the view "checkout/notice" as you prescribed.

Only one problem is solved. When I add to wishlist now from the product listings pages, the popup notice says "successfully added to wishlist" and it does add to the wishlist.

However the carousel "add to wishlist" button still adds to cart and displays popup notice "successfully added to cart".

Please advise.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #93544

Hi,

I tried the carousel, and it's working fine on my local website.
I disabled the "add to cart" button and enabled the "add to wishlist" one and the product is added to the wishlist, and the wishlist popup is displayed.

Thanks to wait for the next release which should arrive soon as Nicolas said.

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

  • Posts: 84
  • Thank you received: 1
11 years 8 months ago #93968

I downloaded todays update. Was it not in todays update? Doesn't look like it was.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #94056

The new package is not yet released.

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

  • Posts: 84
  • Thank you received: 1
11 years 7 months ago #96196

Has this been fixed yet? How do I know when a new package is released?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #96209

Hi,

You can download. To know if a package is released, you can go in "Your subscriptions" on our website and download the package, the version is in the name of the archive.
Or you can too follow us on twitter.

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

  • Posts: 84
  • Thank you received: 1
11 years 7 months ago #96960

Guys, this is still not working, and I am starting to get frustrated. I have reinstalled the latest version downloaded 2013-03-27, and when I click on "add to wishlist" on the carousel it adds to the cart instead. Please advise.

Last edit: 11 years 7 months ago by goloon.

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

  • Posts: 84
  • Thank you received: 1
11 years 7 months ago #97002

I even replaced the 2 files mentioned above manually, but I still have the same problem. Apparently if I reinstall hika business it does not overwrite the Checkout/notice file. Do I need to uninstall the whole thing and reinstall it again? Please advise.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 7 months ago #97086

The modifications from Xavier were included in the latest version and it is now working fine on our end.

As we cannot reproduce the problem on our end, we will need to look directly at the problem on your website.
Please provide the necessary information via our contact form.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum