Forums / General Questions / My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

Views: 4,364

Results 1 to 20 of 28
23 May 2013, 4:27 PM
#1
yellowaircraft avatar

yellowaircraft

New Zenner

Join Date:
Oct 2010
Posts:
31
Plugin Contributions:
0

My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

Hi there,

my website is:
http://multikopterdukkani.com/store/

zencart ver: 1.5.0

I have a problem.
When I use Google Chrome & Firefox, "add to cart button" in product info does not work. Also in shopping cart I can not edit quantities. For example if there are 2 pcs of the same item and I try to update it to 1 it goes back to 2 pcs again.

Everything works fine with IE 9.
Because of that I lost a customer today :(

What could be the problem?

Thanks in advance
Cenk

23 May 2013, 6:34 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

You can try switching to the classic template and see if this is the same

If not, when you reply - scroll up and read - then supply the additional information that will assist us in troubleshooting this

Zen-Venom Get Bitten

23 May 2013, 7:00 PM
#3
yellowaircraft avatar

yellowaircraft

New Zenner

Join Date:
Oct 2010
Posts:
31
Plugin Contributions:
0

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

Thank you for your reply.

When I switch to classic template everything seems OK. So this is a template problem.
How do we fix it?

Cheers
Cenk

24 May 2013, 1:32 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

One would have to look at the files contained in the template folders
Rename them one at a time to xxxxxxx.off then check to see if it still broke
Rename back to xxxxxx.php and move on to the next one
Hopefully, you will locate the offending file in this way and can then post back with what you have found

Zen-Venom Get Bitten

24 May 2013, 11:27 AM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

You might also contact the people who designed your template, if they offer support. This may be a known bug.

24 May 2013, 1:22 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

I just tried in FF on this page http://multikopterdukkani.com/store/index.php?main_page=product_info&cPath=17&products_id=167
and it worked fine.

Also tested in Chrome - works for me.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

24 May 2013, 1:23 PM
#7
yellowaircraft avatar

yellowaircraft

New Zenner

Join Date:
Oct 2010
Posts:
31
Plugin Contributions:
0

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

kobra:

One would have to look at the files contained in the template folders
Rename them one at a time to xxxxxxx.off then check to see if it still broke
Rename back to xxxxxx.php and move on to the next one
Hopefully, you will locate the offending file in this way and can then post back with what you have found

I did as you suggested for every php file that I could find in all of the folders one at a time but with no luck. Nothing has affected the problem...
What confuses me that it works fine with IE9. Also why add to cart button in some of the products works and some do not?

Like this:
http://multikopterdukkani.com/store/index.php?main_page=product_info&cPath=17&products_id=207

"Products Quantity Box Shows:" set to: "Yes, Show Quantity Box"
"Product Qty Maximum:" set to "0" for unlimited.

Some more info on my website:
Website upgraded from 1.3.9 to 1.5.0
Website updated via an automated script from my hosting company (Fantastico)
Plug-ins I installed (as far as I remember)
-Add to Cart Buttons
-TY Package Tracker v3-1-3
-Direct Bank Deposit v 1.5.2
-pickupman-zencart-related-products-c869715ee9e8
-zx_slideshow_v2_0_1
-Image_Handler4_v4_1
-zen_lightbox-v1.6.4_1.5

Sideboxes:
-Login Box
-Shipping Estimator
-Logo-Sidebox
-Track Orders

PHP Version: 5.3.18 (Zend: 2.3.0)
Database: MySQL 5.1
Installed theme: Premium 6b from zenflavor.
My website url: http://multikopterdukkani.com/store/

stevesh:

You might also contact the people who designed your template, if they offer support. This may be a known bug.
I got a reply from the designers:

"It is the same template files used for some time and I have checked without issue. Also, I have never received any feedback from any user regarding this.

I have a feeling this is not related to our template, because our template does not have any file related to shopping cart. All files related to cart are from the DEFAULT TEMPLATE. Our template have only a few files related to header and footer. You can browse our template folder and compare to the default template folder.... you can see we have only a few template files.
(Zen Cart automatically use files from the default template when a custom template does not have the files).

Please check what 3rd party ADD-ON you have installed that is related to cart or checkout."

Thanks
Cenk

24 May 2013, 1:28 PM
#8
yellowaircraft avatar

yellowaircraft

New Zenner

Join Date:
Oct 2010
Posts:
31
Plugin Contributions:
0

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

swguy:

I just tried in FF on this page http://multikopterdukkani.com/store/index.php?main_page=product_info&cPath=17&products_id=167
and it worked fine.

Also tested in Chrome - works for me.

Yup. That product works.
But try to add this when you have an item in your shopping cart:
http://multikopterdukkani.com/store/index.php?main_page=product_info&cPath=17&products_id=207

And please try to update products in your shopping cart using Chrome of Firefox

24 May 2013, 1:30 PM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

If you open up web console in Firefox under Tools you'll see you have a lot of errors loading your product info page. I would start by fixing those.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

24 May 2013, 1:34 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

Website updated via an automated script from my hosting company (Fantastico)
NEVER a good way to upgrade especially with 3rd party addons
You might check them for any updates from 1.3.9 to 1.5.x

Zen-Venom Get Bitten

24 May 2013, 2:01 PM
#11
yellowaircraft avatar

yellowaircraft

New Zenner

Join Date:
Oct 2010
Posts:
31
Plugin Contributions:
0

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

swguy:

If you open up web console in Firefox under Tools you'll see you have a lot of errors loading your product info page. I would start by fixing those.

I fixed 2 of them but other two still remains...

Error in parsing value for 'background'. Declaration dropped. @
http://multikopterdukkani.com/store/includes/templates/premium6b/css/stylesheet_social.css:11

An unbalanced tree was written using document.write() causing data from the network to be reparsed. For more information https://developer.mozilla.org/en/Optimizing_Your_Pages_for_Speculative_Parsing @ http://multikopterdukkani.com/store/index.php?main_page=product_info&cPath=17&products_id=207:19

I don't know how to fix them :(

kobra:

NEVER a good way to upgrade especially with 3rd party addons
You might check them for any updates from 1.3.9 to 1.5.x

I checked it but v1.5.0 is still the only available version in Fantastico deluxe on my hosting company (which is total choice hosting)

24 May 2013, 2:40 PM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

I checked it but v1.5.0 is still the only available version in Fantastico deluxe on my hosting company
What I am saying is that these "one click" upgrades are not the recommended method for upgrading and are fully unreliable

Zen-Venom Get Bitten

24 May 2013, 2:44 PM
#13
yellowaircraft avatar

yellowaircraft

New Zenner

Join Date:
Oct 2010
Posts:
31
Plugin Contributions:
0

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

kobra:

What I am saying is that these "one click" upgrades are not the recommended method for upgrading and are fully unreliable

Oh. Sorry. Misunderstood.
But on the other hand everything works fine with Classic template....

24 May 2013, 4:04 PM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

But on the other hand everything works fine with Classic template....
That would be due to it using default coded files

You will need to determine what template override files need to be updated as the "one click" upgrade does not upgrade these custom files

Zen-Venom Get Bitten

24 May 2013, 5:40 PM
#15
yellowaircraft avatar

yellowaircraft

New Zenner

Join Date:
Oct 2010
Posts:
31
Plugin Contributions:
0

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

kobra:

That would be due to it using default coded files

You will need to determine what template override files need to be updated as the "one click" upgrade does not upgrade these custom files

Thanks Kobra. It looks like this will be waaay over my head. So I started a fresh custom template and see what happens....

Cheers
Cenk

24 May 2013, 7:10 PM
#16
yellowaircraft avatar

yellowaircraft

New Zenner

Join Date:
Oct 2010
Posts:
31
Plugin Contributions:
0

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

Finally I found the problem.

I installed "Shipping Estimator sidebox" a while ago.
Today I turned off all sideboxes one by one to see if there is a conflict. And vola Shipping Estimator off, problem gone. Everything seems to work fine right now.

So "Shipping Estimator sidebox" and my template Premium 6b from zenflavor don't like each other...

Cheers
Cenk

25 May 2013, 1:22 AM
#17
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

Glad you have this sorted

Zen-Venom Get Bitten

25 May 2013, 4:11 AM
#18
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

So to summarize, for future searchers who might read this: if an action such as "Add to Cart" doesn't work, try the default template. If it works there, figure out what's broken in your template by disabling specific things in your template such as sideboxes until it does work.

Glad you're all set, @yellowaircraft.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 May 2013, 9:37 AM
#19
yellowaircraft avatar

yellowaircraft

New Zenner

Join Date:
Oct 2010
Posts:
31
Plugin Contributions:
0

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

kobra:

Glad you have this sorted
Thanks kobra

swguy:

So to summarize, for future searchers who might read this: if an action such as "Add to Cart" doesn't work, try the default template. If it works there, figure out what's broken in your template by disabling specific things in your template such as sideboxes until it does work.

Glad you're all set, @yellowaircraft.

Exactly.
Thanks swguy

24 Jul 2013, 10:48 PM
#20
pablo avatar

pablo

New Zenner

Join Date:
Jun 2011
Posts:
91
Plugin Contributions:
0

Re: My Add to Cart Button in Product Info Does Not Work in Chrome & Firefox

I have searched several threads and spent hours looking for any help. My problem is that Zen Cart is allowing customers to place more of an item in their cart than is in stock. It is also allowing them to checkout. I have Admin>Configuration>Stock - Allow Checkout set to false, but to no avail. I recently upgraded to v1.51 from v1.39h and din to have this problem before.
If a customer placed more if an item in their cart than there was stock for, the received an error message and had to change the quantity before checkout. The new version does not prevent this, or I have something set wrong. Could someone please point me in the right direction? :blink: