Skip to main content

Edit a rule

  1. Go to Merchandise → Merchandising Rules and find your rule.
  2. Click Edit to open the merchandising editor.
  3. Change pins, expressions, or settings using the sidebar tabs on the right.
  4. Edit the rule name by clicking the title in the page header.
  5. Click Save Changes to save your edits.
If Layers has found weak pins, buried sellers, or other issues on the rule, the Insights tab in the sidebar lists them with one-click fixes that change your draft. See Insights on merchandising rules.

Fix a rule that isn’t on the default sort

A live rule shows Not on this collection’s default sort when shoppers must choose a different sort before the rule can apply. The rule list also shows a warning icon beside its sort. Rules with contextual conditions are included: shoppers need both the matching sort and matching conditions.
  • Choose Make this sort the default to use the rule’s sort as the collection default. Save pending editor changes first. This changes the default for everyone browsing the collection without choosing a sort and can change which other rules apply.
  • Choose Move rule to [default sort] to save your editor changes and put the rule on the current default. Pins, expressions, and targeting stay with the rule. Layers prevents conflicting rules from being saved and links to the rule you need to review.
Both actions ask for confirmation and require merchandising-rule edit access for the collection. If you only have view access, you can see the warning but cannot apply the fixes. You can also find affected collections in setup cleanup insights. If the default changed since you opened the page, refresh before trying again. See Merchandising rule not applying for the full checklist, including storefront themes that supply their own sort.

Publish or unpublish a rule

Use the Publish / Unpublish button in the page header to control whether a rule is live.
  • Publish — Makes the rule active so it applies to your storefront. Available when the rule is currently unpublished.
  • Unpublish — Pauses the rule without losing your work. The rule stays saved and can be re-published at any time.
If the rule has a schedule, the button becomes Publish now or Unpublish now and asks for confirmation, because it changes the schedule:
  • Publish now clears the schedule so the rule goes live immediately.
  • Unpublish now sets the schedule end date to the current time.
Choose Edit schedule in the confirmation dialog to adjust the dates instead. You cannot publish a rule whose schedule has ended or has not started yet; Layers rejects the change with a message naming the blocking date. See Rule scheduling for how publication states work.

View a rule’s change history

Click the overflow menu (three-dot icon) in the page header and select History to open the change history for the rule. The drawer shows every saved version, including automatic publishes and unpublishes made by a schedule, and lets you restore a previous version. See Config history and version restore.

Delete a rule

Click the overflow menu (three-dot icon) in the page header and select Delete Rule to permanently remove a rule. See Restore a deleted rule if you need to recover it.

Duplicate a rule

Click the overflow menu in the page header and select Duplicate Rule to create a copy with the same pins, expressions, and settings. The duplicate starts as a new unpublished draft.

Previewing changes

While editing, open the overflow menu (three-dot icon) in the page header and click Preview. The preview shows how your changes will look on the live storefront before saving. The preview opens in a new tab and captures your current unsaved state. See Previewing rules for details.

Tips

  • Each collection + sort order can have only one default rule (a rule without contextual conditions), and this includes unpublished drafts. You can add more rules for the same collection + sort order as long as each one has contextual conditions that don’t overlap with another rule’s. See Multiple rules per collection.
  • Use the search bar in the toolbar to filter the product grid by title, vendor, SKU, tags, or other attributes while editing pins.