Skip to content

Line item remover

The line item remover takes products out of the cart automatically, with nothing shown on the page. Use it to enforce rules like “the free gift can’t stay in the cart if the order drops below $100” or “this product can’t ship to that country”.

Requires: Shopify Plus and the Business plan.

Remove line items by:

  • Selected products: Pick the products and variants to remove. Only the variants you tick are removed.
  • Product tags: Items whose product has any of these tags are removed. Separate tags with commas. Tags are case-sensitive.

Then use display rules to say when to remove them. With Show for all orders, the products are always removed.

  • Keep a free gift honest: remove the gift product when Cart subtotal is less than 100.
  • Market restriction: remove products tagged us-only when Shipping country does not include United States.
  • Clean up an upsell: remove an add-on when the product it belongs to is no longer in the cart (Cart products does not include the main product).
  1. Create the block with the products or tags and your rules.
  2. Add it to checkout with its ID in Fixed block ID. It’s invisible, so place it anywhere on each step where it should apply. For rules based on the shipping address, that means the Shipping and Payment steps.
  • Items are removed one unit at a time, so an item with quantity 3 takes a moment to disappear completely.
  • Customers aren’t told why an item was removed. Add a Banner with the same rules to explain.
  • It only runs on pages where the block is placed. Express checkouts that skip those pages aren’t affected. For a rule that can’t be bypassed, use a checkout blocker instead.