j10 Posted March 31, 2013 Share Posted March 31, 2013 Hi! In my shop I see buttons "add to cart" in the product's view and in the products in the home, but I would like add this button in each product in the wishlist. is it possible? Link to comment Share on other sites More sharing options...
vekia Posted March 31, 2013 Share Posted March 31, 2013 which version of prestashop? AJAX cart enabled? Link to comment Share on other sites More sharing options...
j10 Posted March 31, 2013 Author Share Posted March 31, 2013 which version of prestashop? AJAX cart enabled? Yes, Ajax cart is enabled and works correctly in product's view and in the products showed in the home. The version of prestashop is 1.5.3.1 Link to comment Share on other sites More sharing options...
j10 Posted April 1, 2013 Author Share Posted April 1, 2013 Finally, I have adapted this button with my own code, I have modified ajax-cart.js ajax-wishlist.js and the CartController, with specific code for this case. Link to comment Share on other sites More sharing options...
vekia Posted April 2, 2013 Share Posted April 2, 2013 thanks for information, if you want, you can share your solution with other forum members, just write what you exactly modified i marked this topic as solved Link to comment Share on other sites More sharing options...
j10 Posted April 2, 2013 Author Share Posted April 2, 2013 Are several things, but basically I have modified the method add_product in ajax-cart.js to suit the new button, and add a condition in CartController with an especial and different token for this case and check the comparation in this controller. If someone have this problem, can ask me. But I think that there is another solution easier, because I think that it's a single problem. Link to comment Share on other sites More sharing options...
vekia Posted April 2, 2013 Share Posted April 2, 2013 thanks for your info :-) regards 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