Jump to content

update order state and tracking number with php


kek83

Recommended Posts

Hi, my version of presta is 1.6.0.14

 

I have to update manually my orders. I did that and it works like a charm :

 

require_once('../config/config.inc.php');
$id_order=8;
$order = new Order($id_order);
$order->setCurrentState(4);

 

Now i would like to update the tracking number. Wath is the best way to do that ? I think i've to update the two tables : ps_order_carrier qnd ps_orders. Is there anything else to do to considere the order as "shipped" ? I've seen a field "is shipped" but i don't remenber where.

 

Thanks for your help !

 

Mathieu

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

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