Header Pill: live cart count and a built-in cart drawer
The cart count now updates the instant something is added, from anywhere on the page, and tapping the cart opens a real drawer instead of only loading the cart page.
Two changes to Modulo: Header Pill, both from a merchant report.
The count is live now
The cart badge was written once, when the page was built. That was correct on every page load and wrong from the first add onwards: if a shopper added something without the page reloading, the number sat still until they navigated somewhere else.
Themes keep their own cart badge current, but they do that by re-rendering their own header, which is the section you switched off in order to use this one. So the update never reached us.
The header now watches the cart itself. Any add, quantity change or removal, from anywhere on the page, updates the badge within a moment. That includes:
- your theme's own add-to-cart button on a product page
- Frequently Bought Together, Volume Bundles, Sticky Add to Cart and Quick Buy
- other apps that write to the cart
Nothing to turn on. It applies as soon as you update the section.
The cart opens a drawer
Tapping the cart used to do one thing: load the cart page. Now it slides open a cart drawer with the items, quantity controls, remove, the subtotal and a checkout button, so shoppers keep their place on the page.
The drawer is the header's own rather than a hook into your theme's. That is deliberate: most themes keep their cart drawer inside their header section, so it disappears along with the header you replaced. Building ours means it works the same on every theme.
You can switch back at any time under Icons → Tapping the cart → Goes to the cart page.
Updating
Open the section in your Modulo catalog and choose Update to latest. Your settings are kept.