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

#   Adding to wishlist from Product listing

##

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

Less More

- Posts: 51
- Thank you received: 0
-
-

10 years 4 months ago [\#244828](#244828) by [Bower](/forum/user/31321-bower "View Bower's Profile")  *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#244828 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")* was created by *[Bower](/forum/user/31321-bower "View Bower's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.5

Hi

I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.

Any ideas?

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 4 months ago -  10 years 4 months ago [\#244832](#244832) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#244832 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hello,

Hard to tell, can you provide an **Url link** in order to see it by ourself ? Some **Screenshot** of your **Item Menu Configuration** can be useful to.

**Note :** You can provide these elements if needed thanks to our [ **Contact us**](https://www.hikashop.com/support/contact-us.html) form, just don't forget to add an **Url link** to this topic.

Awaiting news from you.

Regards

Last edit: 10 years 4 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

10 years 4 months ago [\#244845](#244845) by [Bower](/forum/user/31321-bower "View Bower's Profile")  Replied by *[Bower](/forum/user/31321-bower "View Bower's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#244845 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

I've sent an email too!

[ ![Screen&#95;Shot&#95;2016-07-05&#95;at&#95;15&#95;07&#95;08.png](/forum/attachment/32507) ](/forum/attachment/32507 "...t&#95;15&#95;07&#95;08.png")

- [ ![Screen&#95;Shot&#95;2016-07-05&#95;at&#95;15&#95;07&#95;08.png](/forum/attachment/32507) ](/forum/attachment/32507 "...t&#95;15&#95;07&#95;08.png") [ ](/forum/attachment/32507?download=1 "...t&#95;15&#95;07&#95;08.png")

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

10 years 4 months ago [\#244847](#244847) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#244847 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hi,

If you switch the state of the option "Use AJAX when possible for add to cart buttons" in Configuration &gt; Main &gt; Advanced settings, does that solve the issue ?

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

10 years 4 months ago -  10 years 4 months ago [\#244906](#244906) by [Bower](/forum/user/31321-bower "View Bower's Profile")  Replied by *[Bower](/forum/user/31321-bower "View Bower's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#244906 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Thanks for that - it seemed to do the trick!

Last edit: 10 years 4 months ago by [Bower](/forum/user/31321-bower "View Bower's Profile"). Reason: was a bit hasty in my reply!

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

10 years 4 months ago [\#245968](#245968) by [Bower](/forum/user/31321-bower "View Bower's Profile")  Replied by *[Bower](/forum/user/31321-bower "View Bower's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#245968 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hi

I thought this had solved the problem but unfortunately it hasn't entirely fixed it!

On visiting this url [ 185.123.96.101/~ewga9996/index.php/glassware](http://185.123.96.101/~ewga9996/index.php/glassware) I click "add to favourites" on any product and the popup appears saying it's been successfully added to the cart - however I'm not logged in!

If I then click on another "Add to favourites" button the popup appears telling me I must be logged in to "add to favourites".

I also noticed that after the first click "?popup=1" gets appended to the URL.

Would you mind checking this out as this doesn't seem to work correctly!

Thanks

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 4 months ago -  10 years 4 months ago [\#245990](#245990) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#245990 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hello,

Do you have some **override views** ? And especially, in **product/listing\_div** view because, the first thing that is strange is that **by default** in HikaShop, If you're **not** logged, "**Add to Whishlist**" (*Add to favorite* in your case) button **won't be** display.
If you have some override (save and keep the file aside) can you try to remove it, and see if that solve your last issue ?

Note : To check your override view :
- Go to **Components** =&gt; **HikaShop** =&gt; **Configuration**
- On **Display** dropdown select **Views**
- Use the three filter dropdown to find your view **product**, in your **front-end template**

[ ![Viewprdct&#95;2016-07-21.png](/forum/attachment/32722) ](/forum/attachment/32722 "...2016-07-21.png")

To learn more about override system, check this tutorial, [ **here**](https://www.hikashop.com/support/documentation/153-customize-the-display.html)

Awaiting news from you.

Regards

- [ ![Viewprdct&#95;2016-07-21.png](/forum/attachment/32722) ](/forum/attachment/32722 "...2016-07-21.png") [ ](/forum/attachment/32722?download=1 "...2016-07-21.png")

Last edit: 10 years 4 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

10 years 2 months ago [\#248754](#248754) by [Bower](/forum/user/31321-bower "View Bower's Profile")  Replied by *[Bower](/forum/user/31321-bower "View Bower's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#248754 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hi Philip

Thanks for the reply. I initially thought the overrides could be the problem once you had pointed it out however I have deleted all the template overrides and customisation, used the default protostar template and reinstalled Hikashop but the issue still remains where the "Add to Wishlist" button appears if you are not logged in, on first click appears to add the item to the cart then on subsequent clicks you are told "you must be logged in to add items to the wishlist".

Any further help would be much appreciated!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NTQzMS1hZGRpbmctdG8td2lzaGxpc3QtZnJvbS1wcm9kdWN0LWxpc3Rpbmc/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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: 86586
- Thank you received: 14325
-
-

10 years 2 months ago -  10 years 2 months ago [\#248780](#248780) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#248780 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hi,

I was able to reproduce the issue.

**in media/com\_hikashop/js/hikashop.js**
Try changing the code Code:

var varform = document[form];

to: Code:

var varform = null; if(typeof(form) == 'object' &amp;&amp; form.form) varform = form.form; else if(typeof(form) == 'string') varform = document[form];

**in the file "quantity" of the view "product" via the menu display&gt;Views.**
Replace : Code:

$formName = ',hikashop_product_form'; $cleanFormName = str_replace(array('\'',','),'',$formName); $wishlistAjax = 'if(hikashopCheckChangeForm(\'item\''.$formName.')){ var typeField = document.querySelector(\'form[name='.$cleanFormName.'] input[name=cart_type]\'); if(typeField !== null){typeField.value = \'wishlist\';} return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';

to Code:

$formName = ',\'hikashop_product_form\''; $cleanFormName = str_replace(array('\'',','),'',$formName); $module_id = $this-&gt;params-&gt;get('from_module', 0); $wishlistAjax = 'if(hikashopCheckChangeForm(\'item\',this)){ var typeField = document.getElementById(\'hikashop_cart_type_'.$this-&gt;row-&gt;product_id.'_'.$module_id.'\'); if(!typeField){typeField = document.getElementById(\'cart_type\'); } if(typeField){typeField.value = \'wishlist\'; console.log(typeField); } return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';

and the code: Code:

$wishlistAjax = 'if(hikashopCheckChangeForm(\'item\''.$formName.')){ return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';

to: Code:

$wishlistAjax = 'if(hikashopCheckChangeForm(\'item\',this)){ return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';

That makes it work properly on my end.

Last edit: 10 years 2 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

10 years 2 months ago [\#248832](#248832) by [Bower](/forum/user/31321-bower "View Bower's Profile")  Replied by *[Bower](/forum/user/31321-bower "View Bower's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#248832 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hi Nicolas

Where do I find this code? - couldn't find it in

media/com_hikashop/js/hikashop.js
or
in the file "quantity" of the view "product" via the menu display&gt;Views.

> nicolas wrote: and the code:
>
> Code:
>
> $formName = ',hikashop_product_form'; $cleanFormName = str_replace(array('\'',','),'',$formName); $wishlistAjax = 'if(hikashopCheckChangeForm(\'item\''.$formName.')){ var typeField = document.querySelector(\'form[name='.$cleanFormName.'] input[name=cart_type]\'); if(typeField !== null){typeField.value = \'wishlist\';} return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';
>
>
>
> to Code:
>
> $formName = ',\'hikashop_product_form\''; $cleanFormName = str_replace(array('\'',','),'',$formName); $module_id = $this-&gt;params-&gt;get('from_module', 0); $wishlistAjax = 'if(hikashopCheckChangeForm(\'item\',this)){ var typeField = document.getElementById(\'hikashop_cart_type_'.$this-&gt;row-&gt;product_id.'_'.$module_id.'\'); if(!typeField){typeField = document.getElementById(\'cart_type\'); } if(typeField){typeField.value = \'wishlist\'; console.log(typeField); } return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NTQzMS1hZGRpbmctdG8td2lzaGxpc3QtZnJvbS1wcm9kdWN0LWxpc3Rpbmc/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 2 months ago [\#248833](#248833) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#248833 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hi,

Please re-read the Nicolas' message ; I made it a little more explicit about the files.

Regards;

---

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

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

10 years 2 months ago [\#248848](#248848) by [Bower](/forum/user/31321-bower "View Bower's Profile")  Replied by *[Bower](/forum/user/31321-bower "View Bower's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#248848 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hi
I found the code but I still can't find this bit in that file
Code:

$formName = ',hikashop_product_form';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NTQzMS1hZGRpbmctdG8td2lzaGxpc3QtZnJvbS1wcm9kdWN0LWxpc3Rpbmc/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 2 months ago [\#248877](#248877) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#248877 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hi,

I am afraid that I don't understand your message.

Regards,

---

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

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

10 years 2 months ago [\#248887](#248887) by [Bower](/forum/user/31321-bower "View Bower's Profile")  Replied by *[Bower](/forum/user/31321-bower "View Bower's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#248887 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

> nicolas wrote: and the code:
>
> Code:
>
> $formName = ',hikashop_product_form'; $cleanFormName = str_replace(array('\'',','),'',$formName); $wishlistAjax = 'if(hikashopCheckChangeForm(\'item\''.$formName.')){ var typeField = document.querySelector(\'form[name='.$cleanFormName.'] input[name=cart_type]\'); if(typeField !== null){typeField.value = \'wishlist\';} return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';
>
>
>
> to Code:
>
> $formName = ',\'hikashop_product_form\''; $cleanFormName = str_replace(array('\'',','),'',$formName); $module_id = $this-&gt;params-&gt;get('from_module', 0); $wishlistAjax = 'if(hikashopCheckChangeForm(\'item\',this)){ var typeField = document.getElementById(\'hikashop_cart_type_'.$this-&gt;row-&gt;product_id.'_'.$module_id.'\'); if(!typeField){typeField = document.getElementById(\'cart_type\'); } if(typeField){typeField.value = \'wishlist\'; console.log(typeField); } return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';

I found this code to be able to replace
Code:

$cleanFormName = str_replace(array('\'',','),'',$formName); $wishlistAjax = 'if(hikashopCheckChangeForm(\'item\''.$formName.')){ var typeField = document.querySelector(\'form[name='.$cleanFormName.'] input[name=cart_type]\'); if(typeField !== null){typeField.value = \'wishlist\';} return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';

but I wasn't able to find this code in the file
Code:

$formName = ',hikashop_product_form';

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 2 months ago -  10 years 2 months ago [\#248900](#248900) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#248900 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hello,

That's quite strange, this line **have to be there**, and especially if your on HikaShop **2.6.3**.

See this screenshot :

[ ![quantityView&#95;2016-09-01.png](/forum/attachment/33283) ](/forum/attachment/33283 "...2016-09-01.png")

So, I suggest you to **add** this missing line, more precisely (if I use **your** code), remove this : Code:

... if($formName == ',0') $cleanFormName = str_replace(array('\'',','),'',$formName); $wishlistAjax = 'if(hikashopCheckChangeForm(\'item\''.$formName.')){ var typeField = document.querySelector(\'form[name='.$cleanFormName.'] input[name=cart_type]\'); if(typeField !== null){typeField.value = \'wishlist\';} return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }'; ...

For this : Code:

... if($formName == ',0') $formName = ',\'hikashop_product_form\''; $cleanFormName = str_replace(array('\'',','),'',$formName); $module_id = $this-&gt;params-&gt;get('from_module', 0); $wishlistAjax = 'if(hikashopCheckChangeForm(\'item\',this)){ var typeField = document.getElementById(\'hikashop_cart_type_'.$this-&gt;row-&gt;product_id.'_'.$module_id.'\'); if(!typeField){typeField = document.getElementById(\'cart_type\'); } if(typeField){typeField.value = \'wishlist\'; console.log(typeField); } return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }'; ...

Hope that's will help you.

Regards

- [ ![quantityView&#95;2016-09-01.png](/forum/attachment/33283) ](/forum/attachment/33283 "...2016-09-01.png") [ ](/forum/attachment/33283?download=1 "...2016-09-01.png")

Last edit: 10 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

10 years 2 months ago [\#249689](#249689) by [Bower](/forum/user/31321-bower "View Bower's Profile")  Replied by *[Bower](/forum/user/31321-bower "View Bower's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#249689 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hi

I found that the quantity.php file was from hikashop 2.6.1 - must have been an override still there from when I updated to 2.6.3 which is why I couldn't find the code!

Anyhow - I decided to take a backup - update all the software locally - so am now on joomla 3.6.2 and hikashop 2.6.4 - I'm also using the protostar default template with no overrides or customisation and the issue still exists. ![:(](/media/kunena/emoticons/22.png ":(")

Any help greatly appreciated - Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NTQzMS1hZGRpbmctdG8td2lzaGxpc3QtZnJvbS1wcm9kdWN0LWxpc3Rpbmc/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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: 86586
- Thank you received: 14325
-
-

10 years 2 months ago [\#249734](#249734) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#249734 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hi,

I've checked your website and I don't see the modifications that I talked about in [ www.hikashop.com/forum/wishlist/885431-a...-listing.html#248780](https://www.hikashop.com/forum/wishlist/885431-adding-to-wishlist-from-product-listing.html#248780)
Cna you please make sure that you made these changes ?

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

10 years 2 months ago [\#249834](#249834) by [Bower](/forum/user/31321-bower "View Bower's Profile")  Replied by *[Bower](/forum/user/31321-bower "View Bower's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#249834 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hi

I did the changes locally and have now uploaded them here

[ 185.123.96.101/~ewga9996/test/index.php/glassware](http://185.123.96.101/~ewga9996/test/index.php/glassware)

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NTQzMS1hZGRpbmctdG8td2lzaGxpc3QtZnJvbS1wcm9kdWN0LWxpc3Rpbmc/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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: 86586
- Thank you received: 14325
-
-

10 years 2 months ago [\#249910](#249910) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#249910 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Hi,

I wanted to look at the issue but I'm not receiving the activation link for the user account I had to create to be able to test the wishlist.

Could you activate the account ?

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

10 years 2 months ago [\#249911](#249911) by [Bower](/forum/user/31321-bower "View Bower's Profile")  Replied by *[Bower](/forum/user/31321-bower "View Bower's Profile")* on topic *[Adding to wishlist from Product listing](/forum/41-wishlist/885431-adding-to-wishlist-from-product-listing#249911 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi  I dont seem to be able to add to the wishlist (favourites) from the product listing page but clicking through to the product item I can add to wishlist there - am wanting to omit the extra step.  Any ideas?")*

Have activated the account for you

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

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