hishikdi Posted December 31, 2014 Share Posted December 31, 2014 I have been looking for this for a while but i can't find a solution about this problem. My website works on Prestashop 1.4.8.2. I would like to add a solution that take the reference, the quantity and a button "Add To Cart" directly on the "Shopping-Cart.tpl".When the customer enter a reference, quantity and click on "Add To Cart" the product is added to the shopping cart and the shopping-cart is refreshed to see the new added product. If someone has an idea it would be great. Sorry by the way for my poor english. Thanks Link to comment Share on other sites More sharing options...
hishikdi Posted January 9, 2015 Author Share Posted January 9, 2015 Just a little up, to know if someone have an idea. Link to comment Share on other sites More sharing options...
fred-vinapresta Posted January 9, 2015 Share Posted January 9, 2015 Hi, not sure there is an existing solution for that. The best way would be to create a module that hooks on {$HOOK_SHOPPING_CART} Maybe try to adapt the existing search system by ajax. Link to comment Share on other sites More sharing options...
vekia Posted January 10, 2015 Share Posted January 10, 2015 you need custom controller that will handle this "action". 1) you have to add this custom form manually to .tpl file. Form with action="" to send form datas to controller 2) controller will have to to search product id based on reference. 3) then spawn add to cart action with quantity from form, and product id from search function from point 2 you can do it with front controller (new controller) or with module associated with hook shoppingCart 1 Link to comment Share on other sites More sharing options...
hishikdi Posted January 12, 2015 Author Share Posted January 12, 2015 Thanks for the answer, I'll definitely try to create a module I think. 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