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

#   add to wishlist button in module not working

##

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

Less More

- Posts: 28
- Thank you received: 2
-
-

9 years 2 months ago [\#276323](#276323) by [Ph](/forum/user/49104-ph "View Ph's Profile")  *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#276323 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")* was created by *[Ph](/forum/user/49104-ph "View Ph's Profile")*

-- url of the page with the problem -- : [ lescomplementsnaturels.fr](https://lescomplementsnaturels.fr)
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.5
-- PHP version -- : 7.0
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : none

Hello,

The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.

Could you help me to get the add to wish list button in module working again?

This might be related to the joomla 3.7.5 upgrade,

Thanks,
Ph

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

9 years 2 months ago [\#276332](#276332) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#276332 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Hello,

Which module are you talking about ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 28
- Thank you received: 2
-
-

9 years 2 months ago [\#276364](#276364) by [Ph](/forum/user/49104-ph "View Ph's Profile")  Replied by *[Ph](/forum/user/49104-ph "View Ph's Profile")* on topic *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#276364 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Hello,

Thank you for you reply.

I am using mod_hikashop. the problem also occurs when using category listing menu item.

both catégory listing and module are using the listing image and title div layout wich I have customized and attached. Also, I have surrounded in red the hear icon that is not working on the attached picture.

The cart icon works ok but not the heart

Thank you for your help.
Ph

- [ ![wishlisticon.png](/forum/attachment/39828) ](/forum/attachment/39828 "wishlisticon.png") [ ](/forum/attachment/39828?download=1 "wishlisticon.png")

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

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

Less More

- Posts: 28
- Thank you received: 2
-
-

9 years 2 months ago [\#276368](#276368) by [Ph](/forum/user/49104-ph "View Ph's Profile")  Replied by *[Ph](/forum/user/49104-ph "View Ph's Profile")* on topic *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#276368 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Please find below the code that is generated for those two buttons (cart and heart). I havent found yet which file is used to generate this

---

&lt;div class="hikashop_product_stock"&gt;
&lt;a rel="nofollow" class="hikashop_cart_button" href="#" onclick="var field=document.getElementById('hikashop_product_quantity_field_2');return hikashopModifyQuantity('2355',field,1,0,'cart',154)"&gt;ajouter au panier&lt;/a&gt;
&lt;input id="hikashop_product_quantity_field_2" type="hidden" value="1" class="hikashop_product_quantity_field" name="quantity"&gt;
&lt;div id="hikashop_add_wishlist"&gt;
&lt;a rel="nofollow" class="hikashop_cart_button" href="#" onclick="var field=document.getElementById('hikashop_product_quantity_field_2');if(hikashopCheckChangeForm('item',hikashop_product_form)){ var typeField = document.querySelector('form[name=hikashop_product_form] input[name=cart_type]'); if(typeField !== null){typeField.value = 'wishlist';} return hikashopModifyQuantity('2355',field,1,hikashop_product_form,'wishlist',154); } else { return false; }"&gt;ajouter à vos souhaits&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;

---

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3dpc2hsaXN0Lzg5MTU4NC1hZGQtdG8td2lzaGxpc3QtYnV0dG9uLWluLW1vZHVsZS1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) 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: 86540
- Thank you received: 14300
-
-

9 years 2 months ago [\#276503](#276503) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#276503 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Hi,

You're apparently using outdated view overrides.
And there is a bug in one of them as far as I can see.
I think that the issue either comes from the file "quantity" or "quantity_legacy" of the view "product" where you must have the line: Code:

$formName = ',hikashop_product_form';

instead: Code:

$formName = ',\'hikashop_product_form\'';

So please try changing that via the menu Display&gt;Views and it should help.

The following user(s) said Thank You: [Ph](/forum/user/49104-ph "View Ph's Profile")

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

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

Less More

- Posts: 28
- Thank you received: 2
-
-

9 years 2 months ago [\#276621](#276621) by [Ph](/forum/user/49104-ph "View Ph's Profile")  Replied by *[Ph](/forum/user/49104-ph "View Ph's Profile")* on topic *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#276621 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Thank you very much, I changed the line in the quantity legacy file and the wishlist button is working !
but now when I click on add to wish list from the product page it adds the product to the cart and not the wishlist... I will try to find what is going wrong and get back

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

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

Less More

- Posts: 28
- Thank you received: 2
-
-

9 years 2 months ago [\#276653](#276653) by [Ph](/forum/user/49104-ph "View Ph's Profile")  Replied by *[Ph](/forum/user/49104-ph "View Ph's Profile")* on topic *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#276653 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Hello,

When I revert the quantity legacy file to $formName = ',hikashop_product_form'; (wich seems to be the last version 3.1.1)
both the product pane wishlist icon and the module wishlist icon works on the product age but not the wishlist icon of module on the home page

When I put the quantity legacy file to $formName = ',\'hikashop_product_form\'';
both the product pane wishlist icon and the module wishlist icon do not work on the product age but the wishlist icon of module on the home page works

I have been playing around with the listing_img_title.php (for the mudole) the show_tabular.php (for the product page) and the quantity legacy files but did not succeed in having all wishlist icons to work.

Do you have an idea where I should look ?

Best regards,
Ph

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3dpc2hsaXN0Lzg5MTU4NC1hZGQtdG8td2lzaGxpc3QtYnV0dG9uLWluLW1vZHVsZS1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) 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: 86540
- Thank you received: 14300
-
-

9 years 2 months ago [\#276745](#276745) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#276745 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Hi,

Hard to say witohut being able to look at the issue. I still believe that the modification I proposed is neccessary.
However, I don't have the issue you're talking about on the product page when doing that on my end.
So there must be another issue in another view override on your end.
Could you provide a way of look at the issue on the product page (like a copy of the website in a subfolder or a test domain) ?

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

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

Less More

- Posts: 28
- Thank you received: 2
-
-

9 years 2 months ago [\#276753](#276753) by [Ph](/forum/user/49104-ph "View Ph's Profile")  Replied by *[Ph](/forum/user/49104-ph "View Ph's Profile")* on topic *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#276753 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Hello,

Thank you very much for your help. I will put the dev site up to date and send you the info to log in as an admin.

Great thanks,
Ph

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

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

Less More

- Posts: 28
- Thank you received: 2
-
-

9 years 2 months ago [\#276854](#276854) by [Ph](/forum/user/49104-ph "View Ph's Profile")  Replied by *[Ph](/forum/user/49104-ph "View Ph's Profile")* on topic *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#276854 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Hello,

I sent you the infor to log in the development site through PV.

The main files that I have overriden are show tabular and listing_img_title

sincerely,
Ph

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

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

Less More

- Posts: 28
- Thank you received: 2
-
-

9 years 2 months ago [\#277008](#277008) by [Ph](/forum/user/49104-ph "View Ph's Profile")  Replied by *[Ph](/forum/user/49104-ph "View Ph's Profile")* on topic *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#277008 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Hello,

The module uses the file templates/rnshop/html/com_hikashop/product/listing_img_title.php
The product page uses the file templates/rnshop/html/com_hikashop/product/show_tabular.php

What i cant figure is why the module add to wishlist button is woking on the product page but not on other pages also it use that same file (listing_img_title.php) on evry pages (working and not working pages).

Does anybody could help me to understand this ?

Thank you for your help,
Ph

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

9 years 2 months ago [\#277319](#277319) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#277319 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Hello,

Since you're using the legacy add to cart and you have overrides which are based on old HikaShop views (and we don't know which versions), it's very complicated to understand and analyze the situation.
The patch that Nicolas proposed looks good regarding the current views, since the content can be used directly in some JS and there is no variable with the name..
You can see it directly in your website by clicking on the button you got the message Code:

Uncaught ReferenceError: hikashop_product_form is not defined

So the patch would fix the issue we can see in your homepage.

Now, because the add to cart system had problems and couldn't evolved like we wanted, we made the new cart system in HikaShop 3. That system has been made to avoid the issue you're currently having (not more inline JS).

So my first advice would be to try to use the new HikaShop cart system.
And my second point would be to try to use the default HikaShop views in order to have a fixed context. Because you have customization we can't know what code you have and if you use the official content ; we could have that knowledge and know what is happening exactly.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 28
- Thank you received: 2
-
-

9 years 1 month ago [\#279279](#279279) by [Ph](/forum/user/49104-ph "View Ph's Profile")  Replied by *[Ph](/forum/user/49104-ph "View Ph's Profile")* on topic *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#279279 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Hello,

I stil have not found any solution, how could I get some support ?

Thank you for your help

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3dpc2hsaXN0Lzg5MTU4NC1hZGQtdG8td2lzaGxpc3QtYnV0dG9uLWluLW1vZHVsZS1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) 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: 86540
- Thank you received: 14300
-
-

9 years 1 month ago [\#279315](#279315) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#279315 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Hi,

So did you try to deactivate the "add to cart legacy" setting of the HikaShop configuration in order to use the new cart system like Jerome proposed ?
Also, updating to the new version of HikaShop might help.

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

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

Less More

- Posts: 28
- Thank you received: 2
-
-

9 years 1 month ago [\#279449](#279449) by [Ph](/forum/user/49104-ph "View Ph's Profile")  Replied by *[Ph](/forum/user/49104-ph "View Ph's Profile")* on topic *[SOLVED : add to wishlist button in module not working](/forum/41-wishlist/891584-add-to-wishlist-button-in-module-not-working#279449 "-- url of the page with the problem -- :   lescomplementsnaturels.fr  -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  Hello,  The add to wish list button in the product page is working but not in the modules. Strangely (and hopefully) the add to cart button wich seems to use the same coding works in both the product page and the module.  Could you help me to get the add to wish list button in module working again?  This might be related to the joomla 3.7.5 upgrade,  Thanks, Ph")*

Hello,

"No" for checkout legacy did the job. All cart and wishlists button are ok now.

Thank you very very much for your time and expertise.
Ph

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

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