Group by rules in GoDataFeed allow you to apply conditional logic to product groups—such as variants or families—based on shared attributes. This is particularly useful when you want to control product visibility based on the collective inventory status of related items.
Use Case: Managing Variant Availability
Consider a scenario where you sell apparel with multiple size variants. If only the XXXL size is in stock while popular sizes like S, M, and L are unavailable, advertising the product could lead to a poor customer experience. Shoppers might click on the ad expecting a range of sizes, only to find limited availability.
To prevent this, you can use a group by rule to assess the stock levels across all variants and suppress the product listing if insufficient options are available.
Creating a Group by Rule
-
Navigate to the Feed Rules Section
In your desired feed, go to the Rules page. -
Create a New Rule
Click the blue "+" button to add a new rule.
Name your rule (e.g., "Limit Variants Availability"). -
Click the three dots to the right of the save button and select Group By Rule to expand the Group By Rule editor.
-
Define the Rule Conditions
-
SET: Choose the field you want to update (e.g.,
availability). -
TO: Set the desired value (e.g.,
out of stock). -
WHERE:
quantity 0- Group by
custom_label_0(or another appropriate field) - Target groups where the count of products with
quantity 0is less than or equal to 2
-
SET: Choose the field you want to update (e.g.,
-
Save the Rule
Click Save to apply the rule.
Dynamic guide
Example Scenario
Let's say you have the following product groups:
-
P160: 12 variants total, only 1 variant has
quantity 0 -
YOGA: 5 variants total, 4 variants have
quantity 0 -
BRA: 4 variants total, all 4 variants have
quantity 0
Applying the group by rule will identify the P160 group as having insufficient in-stock variants. The rule will update the availability field to out of stock for the in-stock variant in the P160 group, effectively suppressing the product listing.
Benefits
- Enhanced Customer Experience: Avoid advertising products with limited variant availability, reducing customer frustration.
- Improved Ad Spend Efficiency: Prevent clicks on products unlikely to convert due to stock limitations.
- Dynamic Inventory Management: Automate the process of monitoring and updating product availability based on real-time stock levels.
Additional Resources
- How to create feed rules to customize your product data
- How to use feed rule operators to optimize your feed
For further assistance or to explore more advanced use cases, please refer to our comprehensive Feed Rules Documentation.
Comments
0 comments
Please sign in to leave a comment.