Overview
This guide shows how to prevent specific products (e.g. warranties, shipping protection, low-priority items) from appearing in your upsells by excluding them based on Product ID, Product Handle, or Product Tags. You can add this code in Upcart > Editor > Settings > Custom HTML, in locations such as Above announcements/rewards.Exclude by product ID
To find a product ID:- Go to Shopify Admin > Products
- Open the product and copy the long numeric ID from the URL (after
/products/)
Exclude by product handle
To find a product handle:- In Shopify Admin > Products, open the product
- Scroll to Search engine listing preview > Edit
- The handle is the last part of the product URL (e.g.
ocean-blue-shirt)
Exclude by product tags
To add or find tags:- Go to Shopify Admin > Products
- Open a product and scroll to the Tags section
- Tags are case-sensitive
- Go to Shopify Admin > Products
- Click Search and Filter (F) > Add Filter > Collection
- Select the collection of the items you want to exclude
- Select all items (top left checkbox)
- Click more button (…) > Add Tags
- Select or type in the tag to apply it to all items in the collection
Best practices
- Tags must match exactly, including capitalization
- If you’re filtering upsells in multiple locations (e.g. AI and manual), paste the code in both HTML sections
- Always test your implementation using Sandbox Mode before going live

