Help Center

Feed Rules: Group by Rules

GoDataFeed Technical Team
GoDataFeed Technical Team
  • Updated

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.

1.png

Creating a Group by Rule

  1. Navigate to the Feed Rules Section
    In your desired feed, go to the Rules page.
  2. Create a New Rule
    Click the blue "+" button to add a new rule.
    Name your rule (e.g., "Limit Variants Availability").
  3. Click the three dots to the right of the save button and select Group By Rule to expand the Group By Rule editor. 
  4. 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 0 is less than or equal to 2
  5. Save the Rule
    Click Save to apply the rule.

2.png

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

3.png

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.

4.png

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

For further assistance or to explore more advanced use cases, please refer to our comprehensive Feed Rules Documentation.

Was this article helpful?

3 out of 3 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.