Jump to content

Post order details to third party application when order statut changes to “shipped”


wajdikick

Recommended Posts

I need to get order details when order statut is changed to "shipped" by admin in the back office, to post them to a third party application with api.

I am using Prestashop V 1.7.7.0
I need help please. Thanks

 $name_lastname_cl = $_GET['????????'];
    $city_cl = $_GET['????????'];
    $state_cl = $_GET['????????'];
    $address_cl = $_GET['????????'];
    $tel_2_cl = $_GET['????????'];
    $products = $_GET['????????'];
    $Quantity = $_GET['????????'];
    $cod = $_GET['????????'];
    $note = $_GET['????????'];

    $Url_str = 'http://example.com/api/set_parcel_post.php?id=123&tel_cl='.$tel_cl.'&name_lastname_cl='.$name_lastname_cl.'&city_cl='.$city_cl.'&state_cl='.$state_cl.'&address_cl='.$address_cl.'&tel_2_cl='.$tel_2_cl.'&products='.$products.'&cod='.$cod.'&Quantity='.$Quantity.'&note='.$note;

    $json = file_get_contents($Url_str);
    $result = json_decode($json);

I need help please. Thanks

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