Shopware icon

Shopware

Shopware

Actions778

Product Cross Selling → Create Product Cross Selling

AI-generated

Overview

This node operation creates a new Product Cross Selling entry in the Shopware system. It is useful for e-commerce scenarios where you want to define cross-selling relationships between products to enhance product recommendations and increase sales. For example, you can create a cross-selling entry that links a main product to related products that customers might be interested in purchasing together.

Use Case Examples

  1. Creating a cross-selling entry for a product to suggest complementary items on the product page.
  2. Automating the creation of cross-selling relationships based on marketing campaigns or inventory changes.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id Unique identifier for the product cross selling entry.
Name Name of the product cross selling entry.
Position Position or order of the cross selling entry.
Sort By Field to sort the cross selling products by.
Sort Direction Direction of sorting (e.g., ascending or descending).
Type Type of the cross selling.
Active Whether the cross selling entry is active or not.
Limit Limit on the number of cross selling products.
Product Id Identifier of the main product for which cross selling is created.
Product Version Id Version identifier of the main product.
Product Stream Id Identifier for the product stream associated with the cross selling.
Created At Creation timestamp of the cross selling entry.
Updated At Last update timestamp of the cross selling entry.
Translated Translated fields for the cross selling entry in JSON format.
Product JSON object representing the main product details including prices, variations, categories, media, and related entities.
Product Stream JSON object representing the product stream details including filters, cross sellings, categories, and related entities.
Assigned Products JSON array of products assigned to this cross selling entry, including detailed product information and relationships.

Output

JSON

  • id - Unique identifier of the created product cross selling entry.
  • name - Name of the created product cross selling entry.
  • position - Position or order of the cross selling entry.
  • sortBy - Field used to sort the cross selling products.
  • sortDirection - Direction of sorting (ascending or descending).
  • type - Type of the cross selling.
  • active - Indicates if the cross selling entry is active.
  • limit - Limit on the number of cross selling products.
  • productId - Identifier of the main product.
  • productVersionId - Version identifier of the main product.
  • productStreamId - Identifier for the product stream.
  • createdAt - Timestamp when the cross selling entry was created.
  • updatedAt - Timestamp when the cross selling entry was last updated.
  • translated - Translated fields in JSON format.
  • product - Detailed JSON object of the main product including prices, categories, media, and related data.
  • productStream - Detailed JSON object of the product stream including filters and related data.
  • assignedProducts - Array of products assigned to this cross selling entry with detailed product information.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Name, Product Id) are provided to avoid validation errors.
  • Check the JSON format for complex fields like Translated, Product, Product Stream, and Assigned Products to prevent parsing errors.
  • Verify API credentials and endpoint URL to avoid authentication or connection issues.

Discussion