Shopify themes, liquid, logos, and UX
Hi all, I am having an issue with my add to cart button on the product page.
When the button is clicked it just shows the loading spinner and it doesn't add the item to cart.
I have checked the console on inspection and this is the error...
--------------------------------------
Uncaught TypeError: this.cart.getSectionsToRender is not a function
at HTMLElement.onSubmitHandler
--------------------------------------
This is a custom site I am building however I have not touched the product-form.js section.
Site preview link:
https://d6mp3hnch8aiinun-70626345282.shopifypreview.com
product.js is already altered, something tricky.
how do you mean?
Hello @brandonkyt ,
Check the cart settings.
Cart this settings cart drawer should be page.
If the problem is not solved try to check with an unmodified theme.
If problem solved don't forget to Like it and Mark it as Solution!
And if you need help to fix it you can contact me for services
You can find the email in the signature below.
Thanks
not sure what you mean? i need the cart type to be drawer
I have tried on a seperate theme and it works fine.. however, i have descovered if i change cart type to page or pop-up notification it works... but i need the cart type to be drawer
Yes same I was saying you modified the theme but broke the cart drawer functionality.
If you need the drawer feature make sure all the elements of it are available in the code.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025