Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Willing to pay for answer - Add to Cart button stopped working! - URGENT
 
sunsera
Jr. Member
 
Total Posts:  23
Joined:  2009-10-05
 

The issue is here:

http://www.magentocommerce.com/boards/viewthread/59314/

If you have any spare time, I’m begging you to take a look and see if you have an answer.

You can see the problem live here

Thank you!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Discovery
Enthusiast
 
Total Posts:  767
Joined:  2007-12-29
 

Are you sure your template is loading the required js files? Try and use a default theme and see if that works. This should load everything. Then if that works see what your main template is forgetting.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sunsera
Jr. Member
 
Total Posts:  23
Joined:  2009-10-05
 

This is the default theme.

I’ll post what the fix was, in case anybody has this problem in the future. 

For the record, I never touched the files that needed to be modified - very strange.

Here is what was done:

With the files,

/template/product/view/addtocart.phtml
/template/catalog/product/view/addtocart.phtml

Both files were modified in the following manner:

find “onclick=productAddToCartForm.submit()” and change it to “submit()”

Now it’s functional.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top