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

#   Button Add to wishlist is visible during guest checkout

##

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

Less More

- Posts: 220
- Thank you received: 8
-
-
-

7 years 6 months ago [\#306419](#306419) by [Udo](/forum/user/29928-udo "View Udo's Profile")  *[Button Add to wishlist is visible during guest checkout](/forum/41-wishlist/897437-button-add-to-wishlist-is-visible-during-guest-checkout#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")* was created by *[Udo](/forum/user/29928-udo "View Udo's Profile")*

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

7 years 6 months ago [\#306425](#306425) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Button Add to wishlist is visible during guest checkout](/forum/41-wishlist/897437-button-add-to-wishlist-is-visible-during-guest-checkout#306425 "-- 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")*

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

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

Less More

- Posts: 220
- Thank you received: 8
-
-
-

7 years 6 months ago -  7 years 6 months ago [\#306609](#306609) by [Udo](/forum/user/29928-udo "View Udo's Profile")  Replied by *[Udo](/forum/user/29928-udo "View Udo's Profile")* on topic *[Button Add to wishlist is visible during guest checkout](/forum/41-wishlist/897437-button-add-to-wishlist-is-visible-during-guest-checkout#306609 "-- 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")*

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: 7 years 6 months ago by [Udo](/forum/user/29928-udo "View Udo's Profile"). Reason: Slight improvement in the text

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

7 years 6 months ago [\#306614](#306614) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Button Add to wishlist is visible during guest checkout](/forum/41-wishlist/897437-button-add-to-wishlist-is-visible-during-guest-checkout#306614 "-- 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg5NzQzNy1idXR0b24tYWRkLXRvLXdpc2hsaXN0LWlzLXZpc2libGUtZHVyaW5nLWd1ZXN0LWNoZWNrb3V0P3RtcGw9bWFya2Rvd24=) 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.051 seconds

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