Jump to content

[SOLVED] How I can direct purchase from my custom module?


mirkos90

Recommended Posts

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 by mirkos90 (see edit history)
Link to comment
Share on other sites

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

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...