Jump to content

Using VBA to update a Prestashop order status?


peskywinnets

Recommended Posts

Hello,

I've managed to pull in order information using VBA and a GET command  ...but what I seek now is the VBA syntax to update a Prestashop order status (e.g. from "Processing in progress" to "Shipped")

Has anyone got either a PUT or POST command working in VBA with the Prestashop webservice?

I'd be grateful for any input 🙂

Edited by peskywinnets (see edit history)
Link to comment
Share on other sites

  • 1 year later...

But if i change

if (!empty($tracking_number)) { Db::getInstance()->Execute("UPDATE "._DB_PREFIX_."order_carrier SET tracking_number = '".$tracking_number."' WHERE id_order = ".$get_order); Db::getInstance()->Execute("UPDATE "._DB_PREFIX_."orders SET shipping_number = '".$tracking_number."' WHERE id_order = ".$get_order); }

to

Db::getInstance()->Execute("UPDATE "._DB_PREFIX_."order_carrier SET tracking_number = '".$tracking_number."' WHERE id_order = ".$get_order);

Db::getInstance()->Execute("UPDATE "._DB_PREFIX_."orders SET shipping_number = '".$tracking_number."' WHERE id_order = ".$get_order); 

it does DELETE the old tracking number, but it doesn't write a new one into tha databases.

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