mirkos90 Posted July 1, 2014 Share Posted July 1, 2014 (edited) Hello, my question is simple and i hope that anyone can help me : can I make an purchase with a Prestashop class in my custom module? Considering that I have 2 variables: $product_id and $selected_quantity, I would then be able to enter a sale in prestashop. How I can do it? Thank you! Edited July 2, 2014 by mirkos90 (see edit history) Link to comment Share on other sites More sharing options...
mirkos90 Posted July 2, 2014 Author Share Posted July 2, 2014 Help?? Link to comment Share on other sites More sharing options...
bellini13 Posted July 2, 2014 Share Posted July 2, 2014 so you just want to create a Prestashop order? if so, then review the bankwire module to see how it is done Link to comment Share on other sites More sharing options...
vekia Posted July 2, 2014 Share Posted July 2, 2014 1) you have to create cart, 2) add products to this cart, 3) assign customer to cart (you want to create customer too?) 4) and then, assign order to database as bellini said above, bankwire is great example. Link to comment Share on other sites More sharing options...
mirkos90 Posted July 2, 2014 Author Share Posted July 2, 2014 Perfect! Thank you very much guys! Mirko 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