PrestaShop icon

PrestaShop

Interact with PrestaShop API

Product → Update

AI-generated

Overview

This node integrates with the PrestaShop API to update product information in a PrestaShop store. It allows users to modify various attributes of an existing product, such as its name, price, quantity, descriptions, images, and other metadata. This is useful for automating inventory management, updating product details in bulk, or synchronizing product data from other systems.

Typical use cases include:

  • Automatically updating product stock levels based on sales or warehouse data.
  • Changing prices or descriptions during promotions or seasonal changes.
  • Adding or updating product images programmatically.
  • Managing product visibility and SEO metadata.

Properties

Name Meaning
Product ID The unique identifier of the product to update (required).
Update Fields Collection of fields to update for the product:
- Name: Product name
- Reference: SKU or product reference
- Price: Product price excluding tax
- Quantity: Stock quantity
- Active: Whether product is active
- Description: Full product description
Additional Product Fields Additional optional fields to update, including:
- Reference (SKU)
- Price (tax excluded)
- Wholesale Price
- Weight (kg)
- Width, Height, Depth (cm)
- Quantity in stock
- Minimal quantity for sale
- Active status
- Available for order
- Show price
- Online only flag
- Categories (comma-separated IDs)
- Tax rules group ID
- Manufacturer ID
- Supplier ID
- Description and short description
- Meta title, description, keywords for SEO
- Friendly URL (link rewrite)
- Product state (New, Used, Refurbished)
- Images: multiple images can be uploaded with options for URL or binary data, cover image flag, and position
Advanced Options Additional control options:
- Output Format: JSON or XML response
- Language ID: Filter localized fields by language
- Display Fields: Full or custom list of fields to return
- Custom Fields: Comma-separated list of fields to display if custom selected
- Shop Context: All shops, specific shop, or shop group
- Shop ID or Shop Group ID depending on context
- Enable Debug Mode: Include debug info in response

Output

The node outputs the updated product data in the specified format (JSON by default, or XML if chosen). The output includes the fields requested via the display options, reflecting the current state of the product after the update.

If images are included, the node handles uploading them either from URLs or base64/binary data, associating them with the product accordingly.

No binary output is produced by this node; all data is returned as structured JSON or XML.

Dependencies

  • Requires connection to a PrestaShop instance via its REST API.
  • Needs an API key credential configured in n8n for authentication.
  • The node supports multi-shop contexts, so appropriate shop or shop group IDs may be required depending on the PrestaShop setup.

Troubleshooting

  • Invalid Product ID: If the provided product ID does not exist, the API will return an error. Verify the product ID before running the node.
  • Permission Errors: Ensure the API key has sufficient permissions to update products.
  • Image Upload Failures: When providing image URLs or binary data, ensure URLs are accessible and binary data is correctly encoded.
  • Field Validation Errors: Some fields have constraints (e.g., max length for strings, minimum values for numbers). Invalid values will cause errors.
  • Language or Shop Context Issues: Using invalid language IDs or shop context parameters may result in incomplete or failed updates.
  • Enabling debug mode can help identify request parameters and API responses for troubleshooting.

Links and References

Discussion