This article explains the steps to follow to configure the synchronization of products, stock and sales of your Prestashop ecommerce with your Stockagile account. In Stockagile we synchronize with Prestashop from version 8.1.
To learn more about how the synchronization between Stockagile and your ecommerce works you can read How the synchronization between Stockagile and ecommerce works.
If you wish to synchronize only the stock but not the products and their characteristics, please contact our Support through the corresponding section in the platform.
Steps to configure a Prestashop:
In Stockagile, pull down the Ecommerce menu on the side menu and go to the Channels view.
Enter the page that the Stockagile team will have configured for you. If you do not have any page configured, you can contact the Stockagile technical team from the support section of the platform so that they can create one for you.
Go to Prestashop, then to the left menu and in the settings, click on the advanced settings. You have to add this key provided by Stockagile team, in the Stockagile webservice key field.
As shown in the image, under Advanced Parameters > Webservice, enable access via Add new webservice key and create a new key.
The Key field has to be the same key that we find inside Channels in the Ecommerce module of our Stockagile, where it says Prestashop Webhook.
Inside Prestashop, the Enable webservice key field must be enabled and you will have to check all the permissions of all the checkboxes.
Step 4: inside Prestashop
Step 5: inside"Add new webservice key" in Prestashop
Steps to enable order entry from Prestashop to Stockagile.
Enter the Prestashop channel configuration screen in Stockagile.
Copy the "Key" field, you will need it later.
Log into Prestashop and open the Modules menu and click on Module manager.
Click on the Upload a module button and select the Stockagile Order Sync module for Prestashop, which you can download by clicking on this link.
Install the module and click on the configure button.
Paste the key copied in point 2 into the form and save.
Step 6: module configuration form
Step 6: Prestashop Module Management screen with Stockagile Order Sync module installed.
Once the channel is created and connected to Stockagile, you can configure certain Prestashop parameters within Stockagile, depending on your preferences, entering again in the Ecommerce module, you will find the page in the Channels section of the platform. These are the options shown:
Details
Name: will be used to identify the channel within Stockagile.
Synchronizations:
Enabled/Disabled: toggle the synchronization on or off.
Stock only: update only the stock information and quantities, not the entire product details.
Pending transfer stock: also synchronize stock from pending transfers.
Main Configuration
Stock warehouses: here you will determine from which warehouses the stock will be sourced.
Warehouse: this will be the main warehouse for the channel.
Default fulfillment creation policy: you can choose between the following options:
Assign order to channel warehouse: stock will be discounted, by default, from the main warehouse associated with the channel. If the assigned warehouse does not have enough stock to cover the order, this option may generate negative stock in some products. Later, you can regularize the stock through transfers from other warehouses.
Assign order to the warehouse that has more stocks: the stock will be discounted from the warehouse that has the most units available for the products in the order. If the assigned warehouse does not have enough stock to cover the order, this option may generate negative stock for some products. If you do not want to hold negative stock, you will need to make a transfer from another warehouse to compensate.
Assign Order by Warehouse identifier: automatically assign orders to the corresponding warehouse using the relationship between Shopify locations and warehouses configured in Stockagile. This functionality requires prior configuration. If you want to activate it, you can contact the support team.
Split the order among the warehouses with the most stock: distribute the units of the order among the warehouses with the greatest availability of stock for each product, always prioritizing those with the most stock.
Split order across warehouses by priority: assign the order to the warehouses that can cover all or most of the order, following the priority order defined for each warehouse in the LOCATIONS section. If no warehouse has enough stock to completely cover the order, it will be assigned according to the established priority order.
Default payment method.
Ticket configuration.
Order serial number: you can create a specific serial number under Settings > Inventory > Serial Number Types.
Price level: you can also create a specific one for this e-commerce under Settings > Inventory > Pricing.
Advanced Configuration
Website URL: if changed, it must include "https://" at the beginning to be valid.
Key: add the key configured in the previous step.
Composition attribute name in Prestashop: the composition attribute name in Prestashop is the attribute Stockagile uses to load compositions in Prestashop. If not specified, Stockagile will add "Composition" to the composition attribute.
Minimum stock threshold: when the sum of the stock for a product variant in the channel's stock warehouses is below this value, it will synchronize with 0 stock.
Once you have all the required fields defined, click the save button to update the changes.
Vouchers and giftcard with Prestashop
In the Cart Rules section of Prestashop itself you can decide whether or not you want the ecommerce vouchers to be integrated with Stockagile. This is limited by the Prestashop "Partial use" option: if the option is active they will not be integrated, while they will be integrated if it is inactive.
If the option is enabled and you wish to exclude certain codes from synchronization, you can contact support to set that those specific codes are not synchronized.
⚠️ Note: If you also want to synchronize giftcards to Prestashop tell us by support and we will set in in the admin site.


