Overview
This customization uses HTML, CSS, and JavaScript to block checkout when the cart only contains upsell items. It helps ensure that upsells are treated as secondary offers, not standalone purchases, supporting a more controlled and intentional upsell strategy. This ensures that upsell products function within specific boundaries, emphasizing their role as complementary items to primary products. When implemented, the checkout button will be disabled until at least one non-upsell product is added to the cart.How it works
- If the cart contains only upsell items, the checkout button is greyed out
- A warning message appears below the button
- Once a regular product is added, the button becomes active and the warning disappears- Provides clear validation for scenarios ensuring that upsell products are only purchased with associated trigger products, such as displaying targeted warning messages.
Step 1: Add custom HTML
Go to:Upcart > Cart Editor > Settings > Custom HTML
In the Above announcements/rewards section, paste:
In the Below checkout button section, paste:
Step 2: Add custom CSS
Go to:Upcart > Cart Editor > Settings > Custom CSS Paste the following code:
Final result
Once set up:- Checkout is blocked unless at least one non-upsell product is in the cart
- A message informs customers why checkout is disabled
- The experience feels smooth and brand-aligned
- Preventing accidental single-item upsell purchases
- Maintaining upsells as add-on only products
- Ensuring better control over AOV and product bundling

