Jump to content

update order status and add tracking number with php


Turiddu8686

Recommended Posts

Hi 

 

I created an external page that loads the orders in a bootstrap grid from an xml file, I would like to be able to add a button in each line, which allows me to add and update the order status and tracking on prestashop.

is there a way via php to add these buttons?

 

Link to comment
Share on other sites

On 30/12/2022 at 17:00, Nickz said:

è necessario disporre di un'estensione .php per far funzionare php.

https://www.geeksforgeeks.org/how-to-use-php-in-html/

i know how to work in php with html i don't know how to connect to prestashop order by id of order and update this field

possible with webservice api of prestashop but i'am not practice whit this 

Link to comment
Share on other sites

2 hours ago, Turiddu8686 said:

i know how to work in php with html i don't know how to connect to prestashop order by id of order and update this field

possible with webservice api of prestashop but i'am not practice whit this 

If you need the php page to read data from the database you need to connect to the DB (Database)

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 years later...

Yes, you can add a button in each row of your Bootstrap grid to update the order status and tracking in PrestaShop using PHP. This can be done through PrestaShop’s Webservice API or by directly updating the database. First, you need to enable the PrestaShop Webservice from the admin panel and generate an API key with the necessary permissions to modify orders. Then, modify your Bootstrap grid by adding an update button for each order, which will send the order ID and tracking details to a PHP script via a form or AJAX. In the PHP script, you can use the API to update the order status and tracking information, ensuring that changes reflect in PrestaShop. This method allows seamless order management while keeping the interface user-friendly and efficient.

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