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

#   Is It possible remove the product from wishlist through wishlist button?

##

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

Less More

- Posts: 31
- Thank you received: 0
-
-

7 years 6 months ago [\#306672](#306672) by [Coluccini](/forum/user/58058-coluccini "View Coluccini's Profile")  *[Is It possible remove the product from wishlist through wishlist button?](/forum/41-wishlist/897487-is-it-possible-remove-the-product-from-wishlist-through-wishlist-button#306672 "-- HikaShop version -- : HikaShop Business: 4.0.3  Hello! I would like to customize the functionality of the wishlist. Is it possible with second click remove the product from wishlist? I'll explain myself better. Now if user click the wishlist buttom, he will add the product to the wishlist. If he wants remove the product he must go inside the wishlist. Is it possible with second click on wishlist button remove the product? if is this possible, where I have to put my script? Thank you!")* was created by *[Coluccini](/forum/user/58058-coluccini "View Coluccini's Profile")*

-- HikaShop version -- : HikaShop Business: 4.0.3

Hello! I would like to customize the functionality of the wishlist. Is it possible with second click remove the product from wishlist? I'll explain myself better. Now if user click the wishlist buttom, he will add the product to the wishlist. If he wants remove the product he must go inside the wishlist. Is it possible with second click on wishlist button remove the product? if is this possible, where I have to put my script? Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg5NzQ4Ny1pcy1pdC1wb3NzaWJsZS1yZW1vdmUtdGhlLXByb2R1Y3QtZnJvbS13aXNobGlzdC10aHJvdWdoLXdpc2hsaXN0LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

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

7 years 6 months ago [\#306675](#306675) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Is It possible remove the product from wishlist through wishlist button?](/forum/41-wishlist/897487-is-it-possible-remove-the-product-from-wishlist-through-wishlist-button#306675 "-- HikaShop version -- : HikaShop Business: 4.0.3  Hello! I would like to customize the functionality of the wishlist. Is it possible with second click remove the product from wishlist? I'll explain myself better. Now if user click the wishlist buttom, he will add the product to the wishlist. If he wants remove the product he must go inside the wishlist. Is it possible with second click on wishlist button remove the product? if is this possible, where I have to put my script? Thank you!")*

Hi,

If you customize the view displaying the add to wishlist button, you sure can do that. You'll have to set the qty parameter of the button to 0 and add a parameter add=0 to the URL. That will override the quantity in the cart instead of adding to it.
To know which view file you want to edit, you can activate the "Display view files" setting of the HikaShop configuration and then look at a page with that add to wishlist button. It will tell you which view file is used there and then you can edit it via the menu Display&gt;Views in the backend of HikaShop.

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

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

Less More

- Posts: 31
- Thank you received: 0
-
-

7 years 6 months ago -  7 years 6 months ago [\#306702](#306702) by [Coluccini](/forum/user/58058-coluccini "View Coluccini's Profile")  Replied by *[Coluccini](/forum/user/58058-coluccini "View Coluccini's Profile")* on topic *[Is It possible remove the product from wishlist through wishlist button?](/forum/41-wishlist/897487-is-it-possible-remove-the-product-from-wishlist-through-wishlist-button#306702 "-- HikaShop version -- : HikaShop Business: 4.0.3  Hello! I would like to customize the functionality of the wishlist. Is it possible with second click remove the product from wishlist? I'll explain myself better. Now if user click the wishlist buttom, he will add the product to the wishlist. If he wants remove the product he must go inside the wishlist. Is it possible with second click on wishlist button remove the product? if is this possible, where I have to put my script? Thank you!")*

Thank you, Nicolas. I understood which files I have to edit, but I don't uderstand what I would have to do. Can you explain to me more clearly ? And if can you give me a short example? I don't have much experience. Thank you for your patience. Thanks in advance!

Last edit: 7 years 6 months ago by [Coluccini](/forum/user/58058-coluccini "View Coluccini's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg5NzQ4Ny1pcy1pdC1wb3NzaWJsZS1yZW1vdmUtdGhlLXByb2R1Y3QtZnJvbS13aXNobGlzdC10aHJvdWdoLXdpc2hsaXN0LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

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

7 years 6 months ago [\#306720](#306720) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Is It possible remove the product from wishlist through wishlist button?](/forum/41-wishlist/897487-is-it-possible-remove-the-product-from-wishlist-through-wishlist-button#306720 "-- HikaShop version -- : HikaShop Business: 4.0.3  Hello! I would like to customize the functionality of the wishlist. Is it possible with second click remove the product from wishlist? I'll explain myself better. Now if user click the wishlist buttom, he will add the product to the wishlist. If he wants remove the product he must go inside the wishlist. Is it possible with second click on wishlist button remove the product? if is this possible, where I have to put my script? Thank you!")*

Hi,

This would require some proper development if you wanted me to give you all the code you need to add.
I can only give some hints here.
In the view file which displays the add to wishlist button, you should find some code like this: Code:

&lt;a class="&lt;?php echo $css_button . ' ' . $css_button_wishlist; ?&gt;" rel="nofollow" href="&lt;?php echo hikashop_completeLink($classical_url); ?&gt;" onclick="if(window.hikashop.addToWishlist) { return window.hikashop.addToWishlist(this); }" data-addToWishlist="&lt;?php echo $this-&gt;row-&gt;product_id; ?&gt;" data-addTo-div="hikashop_product_form" data-addTo-class="add_in_progress"&gt;&lt;span&gt;&lt;?php if(!empty($this-&gt;row-&gt;product_addtowishlist_message)) echo JText::_($this-&gt;row-&gt;product_addtowishlist_message); else echo JText::_('ADD_TO_WISHLIST'); ?&gt;&lt;/span&gt;&lt;/a&gt;

So that's the code you would have to change to change the javascript in the onclick with your own code and change the href with a custom add to cart URL link with the parameters as I talked about.

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