Jump to content

Wishlist Module not working proper


Recommended Posts

Hi All,

 

I am facing wishlist module issue on product list page (category page). If login user have multiple wishlist and click on add to wishlist button of any products and try to add it any of wishlist.

 

Always last product of list added to wishlist.

 

This issue not occur on product page (Product Detail.). And it's happen only when user have multiple wishlist.

 

I checked it on fresh installation. And issue is there as well.

 

So, it's issue in block wishlist module.

 

Can you please some one help me to resolve this issue.

 

Prestashop v-1.6.1.6

 

Thanks in Advance.

Link to comment
Share on other sites

  • 1 year later...

Ok, I believe I've found a solution. For those still having this issue try this.

Locate the below code.

Default in: /themes/./js/global.js

Mine via function WishlistButton() in: /themes/./js/modules/blockwishlist/js/ajax-wishlist.js

Change from:

$('.wishlist').each(function () {
  current = $(this);
  $(this).children('.wishlist_button_list').popover({
    html: true,
    content: function () {
      return current.children('.popover-content').html();
    }
  });
});

To:

$('.wishlist').each(function(index, element) {
  $(element).children('.wishlist_button_list').popover({
    html: true,
    content: function () {
      return $(element).children('.popover-content').html();
    }
  });
});

I also added this script line to product-list.tpl to call the function and update the array with each pagination.

 <script> WishlistButton(); </script>

 

Edited by asapho (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

After more than a year this issue still persists unfortuntely, is the solution above correct? Sorry but I am afraid of touching code myself so I think being this a core module it should be fixed.

I'm on PS 1.6.1.16 and Wish List Block 1.3.2

Cheers

Link to comment
Share on other sites

One more thing I found is that the person receiving a wish list link via email can open it correctly but when clicking on "Add to cart" on any of the items in the list Quantity is always = 1 even if it was set to a different figure. Shouldnt the "Add to cart" button also transfer to cart correct quantities?

Cheers

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...