Shopware icon

Shopware

Shopware

Actions778

Product Sorting → Update Product Sorting

AI-generated

Overview

This node operation updates an existing product sorting configuration in the Shopware system. It is useful for managing how products are sorted in an e-commerce platform, allowing users to modify sorting criteria such as priority, active status, and sorting fields. For example, an e-commerce manager can update the sorting priority or lock status of a product sorting method to influence product display order on the storefront.

Use Case Examples

  1. Updating the priority and active status of a product sorting method to change product display order.
  2. Locking a product sorting configuration to prevent further changes.
  3. Modifying the sorting fields to customize how products are sorted based on different attributes.

Properties

Name Meaning
Id Identifier for the product_sorting to update, required to specify which product sorting to modify.
_response Data format for the response, used to specify the desired response format from the API call.
locked Boolean flag indicating whether the product sorting is locked from changes.
key Key identifier for the product sorting configuration.
priority Numeric priority value determining the order of the product sorting.
active Boolean flag indicating whether the product sorting is active.
fields JSON object defining the fields used for sorting products.
label Label or name for the product sorting configuration.
createdAt Timestamp string indicating when the product sorting was created.
updatedAt Timestamp string indicating when the product sorting was last updated.
translated JSON object containing translated labels or fields for localization purposes.

Output

JSON

  • id - The identifier of the updated product sorting.
  • locked - Indicates if the product sorting is locked.
  • key - The key of the product sorting configuration.
  • priority - The priority value of the product sorting.
  • active - Indicates if the product sorting is active.
  • fields - The fields used for sorting in JSON format.
  • label - The label of the product sorting.
  • createdAt - Creation timestamp of the product sorting.
  • updatedAt - Last update timestamp of the product sorting.
  • translated - Translated fields for localization.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is correctly set to the product sorting identifier to avoid update failures.
  • Verify that the JSON format for 'fields' and 'translated' properties is valid to prevent parsing errors.
  • Check API credentials and base URL configuration to ensure successful authentication and connection.
  • Common error messages may include authentication failures, invalid JSON format, or missing required fields. Resolving these involves verifying credentials, correcting JSON syntax, and providing all required properties.

Discussion