PrestaShop icon

PrestaShop

Interact with PrestaShop API

Overview

This node integrates with the PrestaShop API to manage products within a PrestaShop e-commerce environment. Specifically, the Delete Product operation allows users to remove a product by its ID from their store. This is useful for automating inventory management, cleaning up outdated or discontinued products, or synchronizing product catalogs between systems.

Practical examples include:

  • Automatically deleting products that are no longer available or out of stock.
  • Removing test or placeholder products after import.
  • Integrating with external systems to keep the PrestaShop catalog in sync by deleting products remotely.

Properties

Name Meaning
Product ID The unique identifier of the product to delete. Must be a positive integer (minimum 1).
Output Format Choose the format of the response data: JSON (recommended) or XML.
Language ID Filter localized fields by language ID (default is 1, which is the default language). Useful if you want responses tailored to a specific language.
Display Fields Control which fields are returned in the response: Full (All Fields) or Custom Fields.
Custom Fields If Custom Fields is selected above, specify a comma-separated list of fields to return (e.g., "id,name,price,reference").
Shop Context Define the shop context for multishop environments: All Shops, Specific Shop, or Shop Group.
Shop ID When Specific Shop is selected as the shop context, specify the ID of that shop (minimum 1).
Shop Group ID When Shop Group is selected as the shop context, specify the ID of the shop group (minimum 1).
Enable Debug Mode Enable debug information in the response, including URL, HTTP method, and parameters used. Helpful for troubleshooting API requests.

Output

The node outputs JSON or XML data depending on the selected output format. For the Delete operation, the output typically contains confirmation of the deletion or relevant status messages from the PrestaShop API.

  • The json output field will contain the API response parsed into an object or array.
  • If debug mode is enabled, additional metadata about the request (such as URL, method, and parameters) will be included.
  • No binary data is produced by this operation.

Dependencies

  • Requires connection to a PrestaShop instance via its REST API.
  • Needs an API key credential configured in n8n for authentication.
  • The node depends on the PrestaShop API being accessible and properly configured to allow product deletions.
  • Multishop contexts require correct shop or shop group IDs if not working across all shops.

Troubleshooting

  • Common issues:

    • Invalid or missing Product ID: Ensure the Product ID is provided and is a positive integer.
    • Insufficient permissions: The API key must have rights to delete products.
    • Incorrect shop context: Verify the shop or shop group IDs when using multishop options.
    • Network or connectivity problems with the PrestaShop API endpoint.
  • Error messages:

    • "Product not found": The specified Product ID does not exist.
    • "Unauthorized" or "Forbidden": Check API credentials and permissions.
    • "Invalid shop context": Confirm the shop or shop group IDs are valid.
    • "API request failed": Review debug info if enabled; check network and API availability.

Enabling debug mode can help identify request details and pinpoint issues.

Links and References

Discussion