Users are experiencing broken cart notification functionality in Shopify’s Dawn theme after implementing product customization options. The issue manifests as:
Symptoms:
Cart icon doesn’t update with item count
Cart notification popup fails to appear
JavaScript error: “TypeError: t.sections is null” in cart-notification.js
Troubleshooting attempts (unsuccessful):
Reinstalling product-form.js from Dawn 2.0.0 source code
Testing with fresh, unmodified Dawn theme
Partial workaround discovered:
One user reports the notification works on the live domain (example.com) but not on the Shopify preview URL (example.myshopify.com), suggesting the issue may be environment-specific rather than code-breaking.
Proposed solution:
A community member suggests editing main-product.liquid at line 243 by uncommenting specific code (shown in attached screenshot), though effectiveness hasn’t been confirmed by original posters.
Status: The root cause remains unresolved, with users requesting official Shopify guidance on this bug.
Summarized with AI on October 29.
AI used: claude-sonnet-4-5-20250929.
However, when I add a product to the cart now I do not have the following events happening:
Cart icon in header does not change to include the number of items in the cart
Cart notification popup does not show
I’ve tried the following to correct the issue without success:
Re-initialize product-form.js using the source code from github’s dawn.2.0.0 (which was my original version of the theme)
Use a brand new dawn theme with no code or theme changes
When I debug in Firefox I can see the following error message upon clicking on “Add to cart button” but I can’t find a way to fix it.
TypeError: t.sections is null
renderContents cart-notification.js:37> renderContents cart-notification.js:36> onSubmitHandler product-form.js:29> promise callback*onSubmitHandler product-form.js:28> t product-form.js:7>
Do you have any suggestion on how to re-implement the cart notification functionality ?
I am using the Dawn theme for my store and when I add items to my cart, there is no notification pop up to show what has been added to cart. I would need to reload page to show it - please help - how do I resolve this?
hi - to clarify, do you mean once your website was up and running, the “added to cart” pop up started working? I’m having the same issues as I have not launched my site yet but would not want to launch if customers cannot preview number of items in cart whilst shopping.
In my case, the “added to cart” popup does not show up when I connect to the website using the ___.myshopify.com preview address, but it does show up when I connect using the ___.com address.
You should be able to check it if you have a temporary page set and can connect live to your website with a password for example.
I would really appreciate a solution from Shopify on this annoying bug by the way.