VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: binkent on November 13, 2012, 22:00:31 PM

Title: Add to Cart not working when ssl enabled
Post by: binkent on November 13, 2012, 22:00:31 PM
Can someone tell me how to fix this please
Title: Re: Add to Cart not working when ssl enabled
Post by: bytelord on November 13, 2012, 22:06:09 PM
Hello,

any live url?

You could use firebug to examine your site for errors or conflicts: http://forum.virtuemart.net/index.php?topic=102850.0

Regards
Title: Re: Add to Cart not working when ssl enabled
Post by: binkent on November 13, 2012, 23:57:00 PM
https://pleasingtouch.com/
Title: Re: Add to Cart not working when ssl enabled
Post by: bytelord on November 14, 2012, 00:50:41 AM
Hi,

The problem seems to be a javascript conflict. You are running jquery twice. Please remove one instance of jquery from loading.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript">
<script src="/components/com_virtuemart/assets/js/jquery.noConflict.js" type="text/javascript">
<script src="/components/com_virtuemart/assets/js/facebox.js" type="text/javascript">
<script src="/components/com_virtuemart/assets/js/vmprices.js" type="text/javascript">
<script src="/plugins/system/mtupgrade/mootools.js" type="text/javascript">
<script src="/media/system/js/modal.js" type="text/javascript">
<script type="text/javascript">
<link type="text/css" href="/templates/system/css/system.css" rel="stylesheet">
<link type="text/css" href="/templates/system/css/general.css" rel="stylesheet">
<link media="screen" href="/templates/pp2/css/template.css" type="text/css" rel="stylesheet">
<script type="text/javascript">
<script src="/templates/pp2/jquery.js" type="text/javascript">
<script type="text/javascript">
<script src="/templates/pp2/script.js" type="text/javascript">
<script type="text/javascript">

you can unload the one that is loaded with your template. Not an certificate issue until now. Please prevent it loading twice from your custom template.

Use firebug to examine your site code and styling .. also for checking js conflicts ...
http://forum.virtuemart.net/index.php?topic=102850.0

Javascript conflicts:
http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
http://dev.virtuemart.net/projects/virtuemart/wiki/JavascriptCSS_Template_Overrides_and_Avoiding_Conflicts_between_Libraries

Regards
Title: Re: Add to Cart not working when ssl enabled
Post by: binkent on November 14, 2012, 01:15:07 AM
not sure where I find this is it in my template file or?
Title: Re: Add to Cart not working when ssl enabled
Post by: bytelord on November 14, 2012, 01:25:24 AM
Is a js file loaded by your template, loaded from the header, use firebug to examine your site code and comment out that line. You are using a custom joomla template, propably commercial and i don't know how is working actually, but from this line your can understand <script src="/templates/pp2/jquery.js" type="text/javascript">

Regards
Title: Re: Add to Cart not working when ssl enabled
Post by: binkent on November 14, 2012, 01:34:11 AM
I used firebug  and edited a few lines please check but it still doesn't work unless I turn off the ssl in global config
Title: Re: Add to Cart not working when ssl enabled
Post by: bytelord on November 14, 2012, 01:52:08 AM
Hello,

You have successfully remove it but you are not loading vmsite.js also. Please From the vm backend go to configuration->Templates at the area Activate Css Styles & Javascripts enable "Using the product Scripts". Also under configuration->checkout enable "Display modal popup upon 'Add to cart'"

Regards
Title: Re: Add to Cart not working when ssl enabled
Post by: binkent on November 14, 2012, 14:04:50 PM
OK all works well except it takes me straight to the checkout page and doesn't add anything in the my cart module on the left
Title: Re: Add to Cart not working when ssl enabled
Post by: bytelord on November 14, 2012, 16:40:36 PM
Hello,

You still have issues because some javascript files are not loaded, like jquery.noconflict, vmsite.js, etc.
I don't know why but something goes wrong, do you use any util select what to load and not for script files?

Errors:
ReferenceError: jQuery is not defined
[Break On This Error]    

jQuery.noConflict();

vmprices.js (line 131)

ReferenceError: jQuery is not defined
[Break On This Error]    

jQuery.noConflict();

vmprices.js (line 131)

ReferenceError: jQuery is not defined
[Break On This Error]    

jQuery( function($) {
Title: Re: Add to Cart not working when ssl enabled
Post by: binkent on November 14, 2012, 17:11:39 PM
would this be because of the template? also if I upgrade to joomla 2.5 can I keep everything in the store like it is?
Title: Re: Add to Cart not working when ssl enabled
Post by: bytelord on November 14, 2012, 18:11:20 PM
Yes, but first backup your site, using akeeba backup is a good option.

I am not sure about your template, or something else, bug you can test using firebug
Title: Re: Add to Cart not working when ssl enabled
Post by: garygarg1211 on February 13, 2013, 17:32:23 PM
Hi,

I have same issue when I have enabled the SSL then ADD TO CART functionality didn't work. Please have a look and let me know what's the actual issue.

https://www.jasboutique.co.uk

Thanks
Title: Re: Add to Cart not working when ssl enabled
Post by: jenkinhill on February 13, 2013, 19:01:58 PM
It looks like jQuery is not loading properly, probably because you have too much non ssl urls for scripts etc on the page when using https.  This is a list of the errors on page load.

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/components/com_virtuemart/assets/css/vmsite-ltr.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/components/com_virtuemart/assets/css/vmsite-ltr.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/components/com_virtuemart/assets/css/facebox.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/components/com_virtuemart/assets/css/facebox.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/media/system/css/modal.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/media/system/css/modal.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/modules/mod_vertical_dropmenu/cache/153-langen-GB/3a9464b0edbded496883045c4a189b1c.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/modules/mod_vertical_dropmenu/cache/153-langen-GB/3a9464b0edbded496883045c4a189b1c.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/modules/mod_phoca_vm_category/assets/style.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/modules/mod_phoca_vm_category/assets/style.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/modules/mod_phoca_vm_category/assets/custom.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/modules/mod_phoca_vm_category/assets/custom.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/modules/mod_yj_pop_login/css/stylesheet.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/modules/mod_yj_pop_login/css/stylesheet.css

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/components/com_virtuemart/assets/js/jquery.min.js

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/components/com_virtuemart/assets/js/jquery-ui.min.js

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/components/com_virtuemart/assets/js/jquery.ui.autocomplete.html.js

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/components/com_virtuemart/assets/js/jquery.noConflict.js

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/components/com_virtuemart/assets/js/vmsite.js

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/components/com_virtuemart/assets/js/facebox.js

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/components/com_virtuemart/assets/js/vmprices.js

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/media/system/js/mootools-core.js

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/media/system/js/core.js

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/media/system/js/modal.js

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/media/system/js/mootools-more.js

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/media/system/js/tabs.js

SEC7111: HTTPS security is compromised by http://www.jasboutique.co.uk/modules/mod_yj_pop_login/src/yj_login_pop.js

SCRIPT5009: 'Virtuemart' is undefined
, line 52 character 1