News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[SOLVED] Add to Cart not working in some browsers

Started by ryanlc, July 20, 2012, 15:06:41 PM

Previous topic - Next topic

ryanlc

Hi

I have read numerous threads on Add to Cart not working, and parts of these have improved my situation, but not 100%.

my site: www.minifigurendeutschland.de

Joomla Site details:

PHP Built On    Linux serv01.vm482.sgvps.net 2.6.32-71.29.1.el6.i686 #1 SMP Mon Jun 27 18:07:00 BST 2011 i686
Database Version    5.1.62-cll
Database Collation    utf8_general_ci
PHP Version    5.2.17
Web Server    Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/1.0.0-fips mod_bwlimited/1.4
WebServer to PHP Interface    cgi
Joomla! Version    Joomla! 2.5.6 Stable [ Ember ] 19-June-2012 14:00 GMT
Joomla! Platform Version    Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11

Virtuemart verison: Installed version 2.0.8e

Current Browsers tested:

Firefox 9 on a PC - working
Firefox 12 on a PC - working
Firefox 14 on a PC - working
Firefox 14 on a MAC - NOT WORKING

IE8 (PC) - now working (fixed by installing System - jQuery++ Integrator by tushev.org and saying YES to Embed jQuery UI, Embed jQuery UI, Embed jQuery Tools and activated jQuery noConflict mode)
IE9 (PC) - working

Chrome v20 (MAC)  - working
Safari 5.1.7 (MAC) - working

I have all of the options checked in Virtuemart under "Activate Css Styles & Javascripts"

I have tried updating PHP from 5.2 to 5.3 via htaccess. as per the instructions on siteground.com - adding this line - AddHandler application/x-httpd-php53 .php .php5 .php4 .php3
but that download a php file everytime I clicked on something on the page?!

I updated Virtuemart to latest version 2.0.8 (prev on 2.0.4 with same issues)

Any ideas??

Thanks


sadrem

Interesting...
As I understand You have problem only on "Firefox 14 on a MAC"
Try to remove in  "Activate Css Styles & Javascripts"  -  Using the Virtuemart jQuery

Second You have defined "Maximum Purchase Quantity"  to 1 so You may add to cart only one product of kind

let me know if it helped.
p.s. Do not forget to change message icon to Solved.

ryanlc

Try to remove in  "Activate Css Styles & Javascripts"  -  Using the Virtuemart jQuery

Just done this...and Firefox on MAC now working...BUT...Chrome has stopped working (IE9 and Safari still working plus Firefox on PC)

So if I have it on, Chrome works but not Firefox, and if it's off vice versa!

Ref Maximum Purchase Qty - i am able to add multiple products, so I don't think I have that one?

Thanks

ryanlc

also just tested Google Chrome on a PC, which works ?!

Therefore at moment have:

Google Chrome PC Only - MAC doesn't work when remove  "Using the Virtuemart jQuery"
Firefox PC and MAC - but MAC doesn't work when add  "Using the Virtuemart jQuery"
IE 8 & 9 on PC
Safari on MAC

Based on the fact that "Using the Virtuemart jQuery" seems to be making the difference, does this shed any light on a fix or reason?

Many thanks

sadrem

the problem is that You have duplication of js files so
step1 :  "Activate Css Styles & Javascripts"  -  Using the Virtuemart jQuery remove V
step 2: disable  jQuery++ Integrator (unpublish plugin)
step 3 : install http://www.simplifyyourweb.com/index.php/downloads/category/8-loading-jquery
enable jquery only (frontend)
everything else leave as is
step 4 : enter nivo module slider - disable load jquery

let me know You done I'll check Your site again

p.s. Do not forget to change message icon to Solved.

ryanlc

Thanks.

I have followed all of those steps and from what I can see the following has changed..

On my MAC Firefox and Chrome both behave the same. Neither of them display the Ajax add to cart button when you hover over a product, but if you click on the product the add to cart button there works for both.

So progress in one way, but I really need to be able to add to cart from the thumbnails page rather than clicking into each product, as my site is low value items which you would hopefully purchase several of from a section..

I also checked on an iPad and the same happens. No hover over (although that was tricky anyway!) and now can add from product details page, which couldn't do before this change..

Any ideas on how I can get the Ajax popup working?


Thanks again for help so far!

sadrem

OK .
But we still have some js problem on site
You have "mootools-more.js" twice
Have You some plugin or module installed that includes mootools-more.js

One more change
jQuery Easy :
Add No Conflict Code = Thru script declaration
let me know You done
p.s. Do not forget to change message icon to Solved.

sadrem

nice. You almost finish.
some problems that need to be fix
1)"mootools-more.js" twice
2) You have some component or non standard template that adds some js declaration and has syntax error
main page : line 87 "Uncaught SyntaxError: Unexpected token } "
line 158: "Uncaught ReferenceError: $j is not defined "  that problem regards novi slider

products page: line 50 "Uncaught SyntaxError: Unexpected token ILLEGAL " regards "faceboxHtml = '<div id="facebox" style="display:none;"><div class="popup"><div class="content"></div> <a href="#" class="close"></a></div></div>"
You don't have ' sign at the end of this line.

If You solve these issues Your store will functional as expected.
p.s. Do not forget to change message icon to Solved.

ivus

Hi everyone,


I had a quick look. It took me 2 seconds to see that you have malformed JS script which will cause any other function after it to basically fail.


I'm not sure what the script is trying to do but it has something to do with "product-list-container".


If you want to debug your page, use either Chrome or Firefox and the Inspector/Firebug to see the fault.


Simple as that.


I hope this helps.

ryanlc

I have unpublished the Nvio Slider Module for now, as that seemed to be causing errors when I used debug in Chrome.

Ref the error - 50 "Uncaught SyntaxError: Unexpected token ILLEGAL  -  I checked the code and the ' symbol was there, so not sure about that one. Although when I unpublished jQuery Easy (as that was stopping the popup boxes from appearing), the SyntaxError stopped showing in debug.

I turned jQuery++ back on and jQuery Easy off, as jQuery Easy was causing 2 issues (child categories moving to same level as parent and hoover over box not working)

This gave me Firefox, Chrome, Safari and IE all working.

To get iOS working I had to add a rewrite to .htaccess to redirect the urls to non www. as I discovered the add to cart will only work without the www.

Resolved... I hope!

Many thanks