Shopware icon

Shopware

Shopware

Actions778

Product Cross Selling → Update Product Cross Selling

AI-generated

Overview

This node operation updates an existing Product Cross Selling entity in the Shopware system. It allows users to modify various attributes of a product cross selling, such as its name, position, sorting options, type, active status, limits, associated product IDs, timestamps, translations, and detailed nested JSON structures for product, product stream, and assigned products. This operation is useful for managing and customizing cross selling relationships between products to enhance product recommendations and sales strategies in an e-commerce environment.

Use Case Examples

  1. Updating the name and position of a product cross selling to improve product recommendations.
  2. Modifying the sorting direction and limit of cross selling products to control how related products are displayed on a storefront.
  3. Changing the active status of a product cross selling to enable or disable it without deleting it.

Properties

Name Meaning
Id Identifier for the product_cross_selling, used to specify which cross selling to update.
Response Data format for the response; can be empty if no specific format is provided.
Name The name of the product cross selling entity.
Position The position or order of the product cross selling in a list or display.
Sort By The field by which the cross selling products are sorted.
Sort Direction The direction (e.g., ascending or descending) for sorting the cross selling products.
Type The type/category of the product cross selling.
Active Boolean flag indicating whether the product cross selling is active or not.
Limit The maximum number of products to include in the cross selling.
Product Id Identifier of the product associated with the cross selling.
Product Version Id Version identifier of the product associated with the cross selling.
Product Stream Id Identifier for the product stream related to the cross selling.
Created At Timestamp indicating when the product cross selling was created.
Updated At Timestamp indicating when the product cross selling was last updated.
Translated JSON object containing translated fields for the product cross selling.
Product Complex JSON object representing detailed product information related to the cross selling.
Product Stream Complex JSON object representing the product stream details related to the cross selling.
Assigned Products JSON array of products assigned to this cross selling, including detailed nested product information.

Output

JSON

  • id - Identifier of the updated product cross selling.
  • name - Name of the updated product cross selling.
  • position - Position of the updated product cross selling.
  • sortBy - Sorting field used in the updated product cross selling.
  • sortDirection - Sorting direction used in the updated product cross selling.
  • type - Type of the updated product cross selling.
  • active - Active status of the updated product cross selling.
  • limit - Limit on the number of products in the updated cross selling.
  • productId - Product identifier associated with the updated cross selling.
  • productVersionId - Product version identifier associated with the updated cross selling.
  • productStreamId - Product stream identifier associated with the updated cross selling.
  • createdAt - Creation timestamp of the updated cross selling.
  • updatedAt - Last update timestamp of the updated cross selling.
  • translated - Translated fields of the updated cross selling.
  • product - Detailed product information related to the updated cross selling.
  • productStream - Detailed product stream information related to the updated cross selling.
  • assignedProducts - List of products assigned to the updated cross selling.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is correctly set to the existing product cross selling identifier to avoid update failures.
  • Verify that JSON fields like 'product', 'productStream', and 'assignedProducts' are correctly formatted JSON strings to prevent parsing errors.
  • Check API credentials and endpoint URL configuration to avoid authentication or connection errors.
  • If the update does not reflect, confirm that the Shopware instance supports the provided fields and versions.

Discussion