Add to cart button not working

Add to cart button not working

brandonkyt
Excursionist
14 0 6

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


Replies 5 (5)

Hasan112
Shopify Partner
152 11 22

product.js is already  altered, something tricky.

- If you need assistance with your store, feel free to contact us at zayan.1@yahoo.com or WhatsApp!
- Hire me, if you want to Design, Re-design, Develop a store or make changes to the pre-built store.
- If its helpful, please Mark as Accepted Solution, reply helpful? Click Like. Or Coffee Tip Thank you!
brandonkyt
Excursionist
14 0 6

how do you mean?

Guleria
Shopify Partner
4152 809 1164

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

 

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
brandonkyt
Excursionist
14 0 6

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

Guleria
Shopify Partner
4152 809 1164

 

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.

 

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder