chirag_0110 Posted September 5, 2016 Share Posted September 5, 2016 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 More sharing options...
asapho Posted November 12, 2017 Share Posted November 12, 2017 I'm having the same issue. Did you find a solution? Link to comment Share on other sites More sharing options...
asapho Posted November 12, 2017 Share Posted November 12, 2017 (edited) 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 November 12, 2017 by asapho (see edit history) Link to comment Share on other sites More sharing options...
mehere Posted December 4, 2017 Share Posted December 4, 2017 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 More sharing options...
mehere Posted December 9, 2017 Share Posted December 9, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now