News:

Looking for documentation? Take a look on our wiki

Main Menu

Add to Cart not working when ssl enabled

Started by binkent, November 13, 2012, 22:00:31 PM

Previous topic - Next topic

binkent


bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!


bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

binkent

not sure where I find this is it in my template file or?

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

binkent

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

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

binkent

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

bytelord

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($) {
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

binkent

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?

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

garygarg1211

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

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum