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

#   Already in wishlist option

##

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

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 2 months ago [\#211248](#211248) by [bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")  *[Already in wishlist option](/forum/41-wishlist/878706-already-in-wishlist-option#211248 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.1  I want to ask if I added an item to wishlist after log in, and I tried to add it again, can I stop adding an item to wishlist, for example can i change the bottom color to red if its already in the wishlist?")* was created by *[bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")*

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.1

I want to ask if I added an item to wishlist after log in, and I tried to add it again, can I stop adding an item to wishlist, for example can i change the bottom color to red if its already in the wishlist?

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

11 years 2 months ago [\#211266](#211266) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Already in wishlist option](/forum/41-wishlist/878706-already-in-wishlist-option#211266 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.1  I want to ask if I added an item to wishlist after log in, and I tried to add it again, can I stop adding an item to wishlist, for example can i change the bottom color to red if its already in the wishlist?")*

Hi,

Yes you can potentially create a little plugin based on the function "onBeforeCartUpdate(&amp;$cartClass,&amp;$cart,$product_id,$quantity,$add,$type,$resetCartWhenUpdate,$force,&amp;$do)".

Do the checks on the product and on the current cart content, and based on these informations set the vairable $do to false to not add the product to the wishlist. You can too use that kind of code to display a message to the customer: Code:

// The code to check if it is a wishlist // The code to check if the product is already in the wishlist // The code to set $do to false if conditions are met if($do == false){ $app = JFactory::getApplication(); $app-&gt;enqueueMessage('Product already in the wishlist !'); }

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

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

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

[](#top)
