Skip to content

PrestaShop - Update Product

This module allows updating fields of a product in PrestaShop, identifying it by its product_id or reference. Supports updating basic information, prices, dimensions, SEO, and product status.

Before using this module, you need to configure PrestaShop credentials:

  1. Access your PrestaShop admin panel
  2. Go to Advanced Settings > Web Services
  3. Enable the web service
  4. Create a new API key with read/write permissions on “products”
  5. Save the generated API key
FieldDescriptionExample
urlBasePrestaShop store base URL (without /api)https://my-store.com
apiKeyAPI key generated in the backofficeABCD1234567890XYZ
FieldTypeRequiredDescription
credentials_idstringYesPrestaShop credentials ID
product_idnumber/stringConditionalProduct ID to update
referencestringConditionalProduct reference (alternative to product_id)
namestringNoNew product name
pricenumberNoPrice without taxes
wholesale_pricenumberNoCost/wholesale price
descriptionstringNoLong product description
description_shortstringNoShort description
activebooleanNoActive status (true/false)
new_referencestringNoNew product reference
ean13stringNoEAN13 code
weightnumberNoWeight in kg
widthnumberNoWidth in cm
heightnumberNoHeight in cm
depthnumberNoDepth in cm
meta_titlestringNoSEO meta title
meta_descriptionstringNoSEO meta description
link_rewritestringNoSEO-friendly URL

Either product_id OR reference is required to identify the product.

{
"success": true,
"product_id": 123,
"fields_updated": ["name", "price", "active"],
"message": "Product 123 updated successfully"
}
{
"error": {
"message": "Error updating product: [error description]"
}
}
{
"credentials_id": "presta_tienda",
"product_id": 123,
"price": 29.99
}
{
"credentials_id": "presta_tienda",
"reference": "SKU-001",
"name": "Camiseta Premium Edicion 2024",
"price": 24.99,
"active": true
}
{
"credentials_id": "presta_tienda",
"product_id": 456,
"meta_title": "Camiseta Premium - Envio Gratis",
"meta_description": "Descubre nuestra camiseta premium de algodon 100%. Envio gratis en pedidos +50EUR",
"link_rewrite": "camiseta-premium-algodon"
}
{
"credentials_id": "presta_tienda",
"product_id": 789,
"weight": 0.5,
"width": 30,
"height": 40,
"depth": 5
}
{
"credentials_id": "presta_tienda",
"reference": "DISCONTINUED-001",
"active": false
}

You can use workflow data to dynamically update products:

// In a previous ExecuteScript node
ctx.data = {
product_id: ctx.data.producto.id,
price: ctx.data.nuevo_precio,
active: ctx.data.stock > 0
};
[HTTP Trigger] -> [Get CSV data] -> [Loop] -> [PrestaUpdateProduct] -> [Notification]
  1. HTTP Trigger: Receives webhook with price updates
  2. Get CSV data: Parses the price file
  3. Loop: Iterates over each product
  4. PrestaUpdateProduct: Updates price in PrestaShop
  5. Notification: Sends summary via email/Slack
  • The module first gets the current product and then applies the updates
  • Multilingual text fields (name, description) are updated in the default language
  • If no fields are specified for update, the node returns a message indicating this
  • The PrestaShop API uses XML internally, but the module handles the conversion automatically
ErrorCauseSolution
”Missing credentials”Empty urlBase or apiKeyVerify credential configuration
”Product not found”Incorrect ID or referenceVerify the product exists
”Authentication error”Invalid API KeyGenerate a new API Key
”No permissions”API Key without permissionsEnable product permissions in the backoffice
  • PrestaGetOrders - Get orders that include the product