Button Add to wishlist is visible during guest checkout

  • Posts: 167
  • Thank you received: 4
  • Hikashop Business
3 months 1 week ago #306419

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.9.5
-- PHP version -- : 7.1.24

Hi,

In my configuration the 'Add to wishlist' button is hidden when not logged-in
That works fine, only registered users see the button on the product pages - except for a special situation.

This situation is: a customer selects guest checkout, and then before finalizing the checkout returns to the shop.
Then he sees the Add to wishlist button on the product pages.

After clicking this button the popup 'Succesfully added to wishlist' is displayed.
However this customer can't see the Wishlist module. The wishlist module is only shown to registered users, as it should be.

How to prevent that during an active guest checkout the customer sees the Add to wishlist button?

Kind regards,
Udo

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

  • Posts: 66593
  • Thank you received: 9792
  • MODERATOR
3 months 1 week ago #306425

Hi,

Thank you for your feedback. That's a really good point we had overlooked.
I've added a few patchs on our end to handle that properly. The patchs have been added to the install package available on our website for the 4.1.0 of HikaShop. So if you update to that version, you'll automatically get the patchs and it should then work properly.

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

  • Posts: 167
  • Thank you received: 4
  • Hikashop Business
3 months 5 days ago #306609

Hi,
Thanks a lot for your patch.

Alas updating to version 4.1.0 requires some preparation.
For a quick fix I created an override of the view product/quantity.php

Version 4.1.0 of this file contains some changes in the conditions for getting add_to_wishlist (line 18/19).
I've applied these changes to product/quantity.php in version 3.5.1 and now the problem is solved.

Kind regards,
Udo

Last edit: 3 months 5 days ago by Udo. Reason: Slight improvement in the text

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

  • Posts: 66593
  • Thank you received: 9792
  • MODERATOR
3 months 4 days ago #306614

Hi,

Yes.
Actually the add_to_cart_ajax.php view file also required to be modified but that only applies to you if you have the add to wishlist buttons on the listings, which I suppose is not the case on your end.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum