Variations in products signify minor distinctions in their features, such as a T-shirt available in different colors and sizes. In Venddor IO, these similar products can be grouped together for a seamless browsing experience. Each variation group allows customers to easily switch between product variations on the storefront. Although a product can belong to only one variation group at any given time, it can easily be moved to a different group. Removing a variation from a group transforms it back to a regular product.
Access: http://example.com/api/product_variations
Supported Methods: GET and POST
Access: http://example.com/api/product_variations/:id
Supported Methods: GET, PUT, and DELETE
Access: http://example.com/api/product_variations_groups/:id/product_variations
Specifically, you can also refer to variations using either the ID or the symbolic code of the group.
Venddor IO allows the following nested operations for product variations:
Both pagination and sorting functionalities are derived from the primary Products module. Furthermore, Venddor IO offers advanced filters for product variations, such as filtering by product type, variation group, and product ID.
The Product Variations module in Venddor IO introduces several additional parameters that help enrich product data. These parameters can be invoked to retrieve intricate details about product variations, such as feature variants, variation groups, and more.
Although many fields are inherited from the primary Products module, the Product Variations module also contributes its own unique fields. These include fields like variation_group_id, variation_group_code, and variation_feature_ids.
For practical interaction with Venddor IO's product variation functionalities, various curl commands can be utilized. For instance, to retrieve the list of products by variation group, the following can be executed:
curl -X GET "http://example.com/api/product_variations?variation_group_id=:id" \
-H "Content-Type: application/json" \
-H "Authorization: Basic ******"
In addition, there are other examples provided that demonstrate operations like adding a product to a variation group, generating new product variations, detaching a product from its group, and more.