Skip to main content

Smart Collections: Merchandising Rules

Combine multiple product attributes in one rule and drag Boost and Demote rules into priority order to control which one wins on your collection pages.

Written by Christian Sokolowski

Merchandising Rules is a rule-based configuration feature within Smart Collections that controls which products rise to the top of your collection pages and which ones get pushed down or excluded entirely. You can boost, demote, or hide products based on product tags, metafields, vendor, inventory status, price, and more, combine several of those attributes into a single rule, and decide which rule wins when more than one could apply to the same product.

You configure Merchandising Rules from Search & Collections > Smart Collections > Template & Settings, and they apply globally across every collection on your store.


What You Can Do with Merchandising Rules

Merchandising Rules lets you influence product ranking across your collections using flexible, condition-based logic. Here is what you can accomplish:

  • Highlight key products. Combine multiple attributes in one rule, such as a product tag and inventory status together, to surface best-sellers or promotional items at the top of a collection.

  • Improve collection relevance so the most contextually appropriate products appear first for shoppers.

  • Control product visibility and reduce exposure of out-of-stock, less relevant, or undesirable products.

  • Decide exactly which rule wins when a product could match more than one Boost or Demote rule, by controlling the order your rules run in.


How to Access Merchandising Rules

To access Merchandising Rules in Smart Collections, follow these steps:

  1. From your Rebuy dashboard, navigate to Search & Collections > Smart Collections > Template & Settings.

  2. Scroll to the Merchandising Rules card.

  3. Click Edit to open the Merchandising Rules slideout panel.

Smart Collections Merchandising Rules, How to Access Merchandising Rules.


How to Create a Merchandising Rule

You create a Merchandising Rule from the Merchandising Rules slideout, and a single rule can combine more than one product attribute.

  1. Click Add New Rule, then choose Boost, Hide, or Demote from the menu that opens.

  2. Choose a Type, which is the product attribute the rule evaluates, such as Product Tag, Vendor, or Inventory Status.

  3. Choose an Operator, such as Equals, Contains, or Greater Than.

  4. Set the Value that the attribute has to match.

  5. To add another condition to the same rule, click And or Or below the condition you just built. A single rule holds up to 10 conditions.

  6. Click Save.

Finish and save a rule before you navigate away, since unsaved rules are discarded. Clicking Back to Merchandising Rules throws away any incomplete rule you were building. Leaving the Template & Settings page with unsaved changes prompts you with an Unsaved Changes modal first.

How to Combine Multiple Conditions in One Rule

You can combine multiple conditions in a single Merchandising Rule so that a product has to meet more than one requirement before the rule acts on it. A single rule holds up to 10 conditions. Once your first condition is complete, an And button and an Or button appear below it, and clicking either one adds another condition row.

  • And requires every condition in the rule to match. A Boost rule set to Product Tag equals body wash And Inventory Status equals In Stock boosts only the body wash products that are currently in stock. A body wash product that's out of stock fails the second condition, so the rule doesn't act on it.

  • Or requires any one condition to match. For example, a rule set to Vendor equals Acme Or Vendor equals Globex acts on products from either vendor.

A counter to the right of the And and Or buttons tracks your total. To remove a condition, click the trash icon at the end of its row. Adding conditions doesn't change how the rule is prioritized, since strength still comes from the rule's position in the Boost & Demote list.

Smart Collections Merchandising Rules, How to Combine Multiple Conditions in One Rule.


How to Manage Existing Rules

You can edit, delete, reorder, or toggle any existing rule from the Merchandising Rules table.

  • To edit or delete a rule, click the options menu () to the far right of the rule row. Editing opens the same rule builder used to create the rule, headed Edit Boost Rule, Edit Hide Rule, or Edit Demote Rule.

  • To enable or disable a rule without deleting it, use the toggle in the rules table.

  • To reorder rules, drag an active row in the Boost & Demote section by its drag handle. Reordering applies only to active Boost and Demote rows. Hidden rules have no drag handle, since Hide is absolute and unaffected by order.

  • If you re-enable a previously disabled rule, it's added to the bottom of the active list rather than returning to wherever it was positioned before it was disabled.

  • Disabled rules sit below a DISABLED divider, without a drag handle or position number.

  • Deleting a rule triggers a confirmation modal before the rule is permanently removed.

Every row carries an icon showing what the rule does. In the Boost & Demote section, a green up arrow marks a Boost rule and a red down arrow marks a Demote rule, sitting next to the position number on active rows. Disabled rows keep the arrow but lose the drag handle and the position number.


How Rule Order Determines Priority

When more than one rule could apply to the same product, the order you arrange your rules in determines which one actually applies. Understanding this order helps you build rules that behave as you expect.

Rules are applied in this order: Hide, then Featured, then Boost or Demote in your list order. Featured Products are configured per collection in the collection editor and per campaign in Smart Collection Campaigns, not on the global Template & Settings page. An info banner above your rules in the Merchandising Rules slideout states this same order.

  • Rules never stack. The first rule in your Boost & Demote list that a product matches is the rule that applies to it. Once a product matches, Smart Collections stops looking, so a second Boost rule further down the list does not add more lift, and a Demote rule further down does not cancel out a Boost rule above it.

  • Hide is absolute. If a Hide rule matches a product, that product is excluded from your collection pages entirely, regardless of any Boost or Demote rule that also matches it and regardless of list position.

  • Boost and Demote share one priority list. Reordering the Boost & Demote section is how you set rule strength. The rule at position #1 boosts hardest of all your active Boost rules, or if it's a Demote rule, sinks deepest of all your active Demote rules. There's no separate weight input, so reordering is the weighting. For example, dragging an "out of stock" Demote rule to the very top of the list guarantees it sinks matching products before any Boost rule further down the list can claim them.

  • Rules only act on products a collection already contains. Merchandising Rules reorder and filter the products Shopify has assigned to a collection. A Boost rule cannot pull a product into a collection it isn't a member of.

Important: Boost and Demote rules only affect product order on a collection page when Relevance is set as the Default Sort. They have no effect under any other sort option, such as Best Sellers, Highest Price, Lowest Price, or New Arrivals.


Rule Types, Condition Types, and Operators

Every Merchandising Rule is built from the parts covered in the sections below. The rule type sets what happens to a product the rule matches, the condition type sets which product attribute Smart Collections checks, and the operator sets how that attribute is compared to the value you enter. You choose all three in the rule builder when you create or edit a rule, and the available operators depend on the condition type you pick.

Merchandising Rules act on the whole product, not individual variants. Merchandising Rules evaluate their condition at the product level. When you use a value that lives on a variant, such as a variant Metafield or a Product Option, the rule matches the entire product if any one of its variants meets the condition. That whole product is then boosted, demoted, or hidden, even if only a single variant holds the matching value. Merchandising Rules cannot boost, demote, or hide one variant while leaving a product's other variants in place. For inventory-based control outside of Merchandising Rules, use the per-collection Out of Stock Products setting in the collection editor.

Rule Types

When you create a new rule, you select a rule type. Each rule type controls how matching products are treated in your collections. For Boost and Demote, the rule's position in the list sets its strength, not its type.

The following table names each rule type and describes what it does to matching products.

Rule Type

Description

Boost

Promotes matching products higher in the collection. Boosted products appear below Featured Products and above standard results. Strength is set by the rule's position in the Boost & Demote list.

Demote

Pushes matching products lower in the collection, reducing their visibility. Strength is set by the rule's position in the Boost & Demote list.

Hide

Completely excludes matching products from the collection. Hide rules are absolute and unaffected by list position.

Condition Types

The Type field in the rule builder defines which product attribute is evaluated. The following table names each available condition type and describes what it targets.

Type

Description

Product Tag

Target products by their Shopify product tags, for example new-arrival, sale, or best-seller.

Metafield

Target products by a specific product or variant metafield value. Metafields display their full namespace and name to distinguish between product and variant metafields.

Handle

Target products by their unique Shopify product handle.

Name

Target products by their product title.

Vendor

Target products by their vendor or brand name.

Product Option

Target products by a specific option name and value combination, for example an option named Size with the value Large. Because rules evaluate at the product level, this matches the whole product when any one of its variants has that option value, and the whole product is then boosted, demoted, or hidden from your collection pages.

Description

Target products by content in their product description.

Product Type

Target products by their Shopify product type.

Price

Target products based on their price.

Inventory Status

Target products based on their current inventory status, for example out of stock. A Hide rule built on Inventory Status suppresses matching products from your collection pages automatically and restores their visibility when inventory comes back in stock, with no manual updates required.

Operators

The Operator field defines how the condition is evaluated. Available operators may vary depending on which condition Type you select.

The following table names each operator and describes how it evaluates the condition.

Operator

Description

Equals

The product attribute must exactly match the specified value.

Does Not Equal

The product attribute must not match the specified value.

Contains

The product attribute must include the specified value anywhere within it.

Does Not Contain

The product attribute must not include the specified value anywhere within it.

Greater Than

The product attribute must have a value greater than the specified amount. Typically used with Price.

Less Than

The product attribute must have a value less than the specified amount. Typically used with Price.


Limits and Restrictions

Merchandising Rules has the following limits, which apply globally across every collection on your store. The Rules Enabled bar at the top of the Merchandising Rules slideout tracks your enabled count against each of these maximums. The following table lists each rule type with how many of that type you can have enabled at once and the shared total across all types.

Rule Type

Maximum Active Rules

Maximum Total Rules (All Types)

Boost

10 enabled at one time

Up to 30 rules total across all types

Hide

5 enabled at one time

Up to 30 rules total across all types

Demote

5 enabled at one time

Up to 30 rules total across all types

Additional restrictions to be aware of:

  • A single rule can have a maximum of 10 conditions, combined with And or Or.

  • Boost and Demote rules only affect product order when Relevance is selected as the Default Sort. They have no effect under Best Sellers, Highest Price, Lowest Price, New Arrivals, or any other sort option.

  • Merchandising Rules are global, so they apply to every collection on your store. Collection-specific rule overrides aren't supported here. Use Smart Collection Campaigns for temporary or collection-specific merchandising.

  • Featured Products configured per collection or per campaign appear above Boosted products.

  • For text-based condition types (Name, Description, Handle), the Value field has a maximum of 255 characters.


Frequently Asked Questions

Do Merchandising Rules apply to all of my collections or just specific ones?

Merchandising Rules apply globally across every collection page on your store. Collection-specific rule overrides aren't supported on this settings page. If you need different merchandising logic for a particular collection or a limited time period, use Smart Collection Campaigns instead.

Why aren't my Boost or Demote rules working?

A Boost or Demote rule that appears not to work usually comes down to sort order or rule order.

First, check your sort order. Boost and Demote rules only take effect when Relevance is selected as the Default Sort. If your collections are sorted by a different method, such as price or alphabetically, Boost and Demote rules won't affect the product order.

Second, check your rule order. Rules never stack, so the first rule in your Boost & Demote list that a product matches is the one that applies. If a rule higher in the list already matched that product, your rule further down never gets a chance to act on it. Drag the rule you want to win closer to the top of the Boost & Demote list.

What happens if a product matches both a Boost rule and a Hide rule?

The Hide rule always wins. Hide rules are absolute and unaffected by list position, so if a product matches a Hide rule, it's excluded from your collection pages entirely, regardless of any Boost or Demote rule that also applies to it.

How many Merchandising Rules can I have active at one time?

You can have up to 10 Boost rules, 5 Demote rules, and 5 Hide rules enabled at the same time. You can create up to 30 total rules across all types, but only the active limits above apply at any given time. Each individual rule can combine up to 10 conditions with And or Or. The Rules Enabled bar at the top of the Merchandising Rules slideout shows your current enabled count against each limit.

Where do Boosted products appear relative to Featured Products?

Featured Products always appear before Boosted products. Featured Products are configured per collection in the collection editor and per campaign in Smart Collection Campaigns, and Boosted products appear below them and above standard, non-boosted results.

Why is an entire product hidden from my collection when my merchandising rule only matches one variant?

An entire product is hidden from your collection when a merchandising rule matches only one of its variants because Merchandising Rules evaluate their condition at the product level, not the variant level. When you build a Boost, Demote, or Hide rule on a variant-level value, such as a variant Metafield or a Product Option, the rule applies to the whole product as soon as any single variant meets the condition. A variant Metafield set on just one variant still hides, boosts, or demotes the entire product across your collection pages. Merchandising Rules cannot act on one variant while leaving the product's other variants unaffected.


Learn More About Smart Collections

Merchandising Rules are one part of a broader set of tools available in Smart Collections. The articles below cover everything from initial setup to advanced features and customization.

Getting Started

Features & Advanced Settings

Did this answer your question?