Jump to content

How add new order, in only one post/get request.


Recommended Posts

Hi, i'm find solution for this.

To add an order entry into your database, you can initialize an order object as follows:

$order = new Order(); 
$order->id_shop = 1; 
$order->id_cart = 12; 
$order->id_customer = 23; 
$order->payment = "COD"; 
$order->total_paid = 24500; $order->add();

 

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