Skip to main content

Overview

When the Upsells module’s position is set to bottom, Upcart pushes it — along with the notes and announcement modules, if those are also set to bottom — down to the base of the cart body. This tutorial pulls that group up so it sits immediately after the product list, making it more visible and increasing the likelihood of engagement.
This affects the bottom modules container, which holds the upsells, notes and announcement modules. Add-ons are not in it — they render in the footer, and this rule doesn’t move them.
This layout change can improve conversion by displaying complementary offers right after customers review their cart contents.

Where to find the custom CSS editor

  1. Go to Upcart > Cart Editor > Settings > Custom CSS
  2. Scroll to the input field and paste the code below
  3. Click Save
  4. Refresh your storefront to view the changes

CSS to reposition modules

The container ships with margin-top: auto, a flex auto-margin that pushes it to the bottom of the cart body. Overriding it to 0 removes that push, so the group sits directly after the product list instead. It is not decorative spacing — if you set some other value, you’re positioning the group, not trimming a gap.

Optional enhancements

You can combine this adjustment with:
  • Upsell styling (background colors, padding, or borders)
  • Add-on highlight styles
  • Scroll anchors or animations for smoother appearance

Still need help?

For additional customization, we recommend working with a Shopify Expert. They can help with HTML, CSS, or JavaScript in your cart drawer. See Shopify Experts