VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: vinmax on July 07, 2013, 08:32:11 AM

Title: I have problem in add to cart button
Post by: vinmax on July 07, 2013, 08:32:11 AM
Hello to all,
I have website,
http://napturalkidz.com/index.php/shop/hair-styling/baby-durag-napturalkidz

Not able to add products to cart..
when site start with "https://"  i am not able to add product in to cart. "http://" works well.

If you have any idea please let me know.
thanks

[extra spamlink removed]
Title: Re: I have problem in add to cart button
Post by: jenkinhill on July 07, 2013, 11:00:28 AM
You are not loading jQuery in https. You are using <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script> so it will not load in SSL  (http:)

And please do not cross post mutiple copies of the same issue. Just once in the correct section.
Title: Re: I have problem in add to cart button
Post by: Lexiboy on August 13, 2013, 16:45:20 PM
Quote from: jenkinhill on July 07, 2013, 11:00:28 AM
You are not loading jQuery in https. You are using <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script> so it will not load in SSL  (http:)

And please do not cross post mutiple copies of the same issue. Just once in the correct section.

Just remove http: from the script src="http://.... and the correct http protocol (http or https) will always be used.

So it will look like this:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script>