-2

I have enabled secure cart in our magento site[htttp = > https] . After that, add to cart buttons are not working. My theme has custom ajax add-to-cart button. If I manually enter product detail page with https, the add to cart button works. But, if i disable ajax add to cart module than "add to cart" button will work. demo url : http://videomergerapp.com/tollyjoy-baby-rattle-baby-play-pink-blue.html i wanted this add to cart button to work with https enable in the site.

this is our view.phtml = http://pastebin.com/z6b05cCn

closed as off-topic by David Manners, saravanavelu, Pratik bhatt, Moose, liyakat Aug 31 '15 at 11:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on problems in code you've written must describe the specific problem and include valid code to reproduce it. For help writing short, self-contained syntactically-valid examples, see: http://sscce.org/" – David Manners, saravanavelu, Pratik bhatt, Moose, liyakat
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Sorry without some more information you will prob not get a good answer. May guess is that your Ajax is trying to load something from a secure page into a non secure page and fixing this will solve your issue as pointed out when you mentioned it working with https. – David Manners Aug 31 '15 at 10:02
  • @DavidManners i updated the question ,let me know if you need any other part of the code. – Baby in Magento Aug 31 '15 at 10:43
3

If you use Firebug or Chrome Dev Tools (e.g. Ctrl+Shift+J) you can see there are many errors on your page.

For example it's giving a 404 not found error for jQuery. So you need to add jQuery (maybe you just need to fix the path or the permissions)

And there are permission denied messages

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource

There seems to be problems with your tracking code (cross domain request)

There are also images missing.

Try adding the missing code and images. Turn off the tracking to test, then you could read posts such as this

Not the answer you're looking for? Browse other questions tagged or ask your own question.