Zen Cart Logo
Forums / General Questions / Add to cart not displaying in IE

Add to cart not displaying in IE

Locked

Views: 1,753

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
14 Jun 2008, 3:17 AM
#1
tbsm avatar

tbsm

New Zenner

Join Date:
Sep 2007
Posts:
65
Plugin Contributions:
0

Add to cart not displaying in IE

Hello,

I am having an issue with add to cart buttons in IE, and only on products with attributes... On products with no attributes it still works fine and on the products where it does not work, if i press enter it still adds the product to the cart (when the button does not work there is just the text there saying 'add to cart' with no link).

Thank you!
Liam...

15 Jun 2008, 11:55 PM
#2
tbsm avatar

tbsm

New Zenner

Join Date:
Sep 2007
Posts:
65
Plugin Contributions:
0

Re: Add to cart not displaying in IE

....
So without doing anything the add to cart button is now showing on the older versions of IE, but not the latest version.

Any ideas as to why its not showing up in the IE7??

16 Jun 2008, 11:35 AM
#3
geronimo avatar

geronimo

New Zenner

Join Date:
Sep 2007
Location:
Tasmania
Posts:
46
Plugin Contributions:
0

Re: Add to cart not displaying in IE

Hi TBSM

I'm having a similar problem. I have ver 1.3.8a. I've found the following:

If I have the Add To Cart module sitting in it's original place in tpl_product_info_display.php then the button works fine in Firefox but results in no action when clicked in either of IE ver 6 or 7. If I move the Add To Cart module above the Product Description module, the button begins to work perfectly in both flavours of IE as well as in FF.

In ALL cases, the problem only occurs in a product which has attributes.

I've tried moving the Add To Cart module above the Attributes module but it makes no difference. As soon as it's above Product Description it's fine though.

My main PC runs FF and IE ver 7 and XP Pro is automatically updated. My lappy runs IE ver 6 and XP Pro but it ISN'T automatically updated so that seems to rule out the possibility of the problem being attributable to Windows updates.

One other thing I've noticed is that in both instances of IE, I'm able to order a product without choosing an attribute, IN SPITE of the fact that that I have ZC set to insist that a choice is made. In FF I receive the expected warning if I try to order without making a choice.

A product page on my website can be accessed here:
http://lakinplates.com/index.php?main_page=product_info&cPath=44_1_4_6&products_id=2

Note that this problem was evident before I added the Tabbed Products mod.

I wonder if this info will mean anything to some of you who understand Zen Cart a lot more than I do. :)

I've attached my tpl_product_info_display.php as a zip file.

Thanks
Philip

16 Jun 2008, 11:37 PM
#4
tbsm avatar

tbsm

New Zenner

Join Date:
Sep 2007
Posts:
65
Plugin Contributions:
0

Re: Add to cart not displaying in IE

Thank you Philip.
Im on 1.3.7... www.tbsm.com.au and its the same problem you described..
I'll try moving it above the description but still on the other side of the template..
Trial and error i guess now!!

Thanks again
Liam

17 Jun 2008, 5:19 AM
#5
tbsm avatar

tbsm

New Zenner

Join Date:
Sep 2007
Posts:
65
Plugin Contributions:
0

Re: Add to cart not displaying in IE

:D

All working now (once it was above the attributes.

Thank you so much Philip!!!

17 Jun 2008, 5:30 AM
#6
geronimo avatar

geronimo

New Zenner

Join Date:
Sep 2007
Location:
Tasmania
Posts:
46
Plugin Contributions:
0

Re: Add to cart not displaying in IE

Hi TBSM

Sorry, I've been out all day. I checked your site this morning and again just now. I notice you've moved your cart module and that it's now working fine - GREAT. It was interesting that the problem was almost exactly the same as mine, except that your button completely disappeared - mine was still there but just failed to do anything.

Anyway I'm SO pleased I was able to help you with my limited knowledge. I would LOVE to know WHY it behaves this way though. What I want is for my Add To Cart button to be below the attributes so customers are more likely to see them before they push the button, especially as IE allows them to checkout without specifying exactly what they want.

Perhaps someone will have some answers to this. My search has so far not found an answer I can understand.

BTW, I love your homepage!

18 Jun 2008, 11:44 AM
#7
tbsm avatar

tbsm

New Zenner

Join Date:
Sep 2007
Posts:
65
Plugin Contributions:
0

Re: Add to cart not displaying in IE

Well i guess its just us two with the problem

And thank you :smile:

22 Jun 2008, 1:57 PM
#8
geronimo avatar

geronimo

New Zenner

Join Date:
Sep 2007
Location:
Tasmania
Posts:
46
Plugin Contributions:
0

Re: Add to cart not displaying in IE

I wonder if you're still following this issue, Liam. I've discovered the following:

I have many categories with the same three products in each and each product has many attributes arranged in three drop-down boxes. Two of these attribute choices are required and, as you know, when I use IE I can add items to my cart without selecting an attribute. It all works fine in FF.

At the same time, if my Add To Card module is below my attributes, then the Add To Cart button goes dead. Once again, it works in FF, but not in IE. I find that the button works fine in all browser if I move the module ABOVE the Product Description module.

Now I have the results of some testing:

I added a completely new category into which I placed a new (and different) product for which I created two new types of attribute, both of which are required. This new product and attributes works perfectly in all browsers and the required attributes trigger the warning if they aren't selected.

ALSO, I can have the Add To Cart module BELOW the attributes and it works as it should in all browsers. I can copy this product and its attributes and everything still works - FOR THOSE PRODUCTS ONLY. All the others remain with the same problems as before.

However, if I create a new category and create a product to which I add the pre-existing (non-working) required attributes, I get the same problems happening. So while the cart works perfectly on my product with the new attribs, it still plays up with the old ones, no matter how I copy or add them to the products.

Blimey this is getting long-winded! :)

I've checked the way I've listed the attributes and know I've set the various tabs correctly. I may post this as a new topic if someone doesn't notice it in here. How is your cart performing, Liam?

Kind regards

Philip

22 Jun 2008, 4:11 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Add to cart not displaying in IE

What happens if you switch to the Classic Template ... does this fix the problem?

23 Jun 2008, 12:26 AM
#10
geronimo avatar

geronimo

New Zenner

Join Date:
Sep 2007
Location:
Tasmania
Posts:
46
Plugin Contributions:
0

Re: Add to cart not displaying in IE

Thanks for your suggestion, Ajeh.

Yes I had tried the Classic template, but I just double checked and the results were the same. All categories work fine in FF, but in IE 6 and 7 I have the same issues.

I've hunted through the forums and have noted that some people with similar issues found that changes that the Google Sitemaps add-on had made to the database caused the problem. I ran the patch you mentioned (see below) in one of the topics, but it made no difference in my case.


INSERT INTO configuration VALUES ('', 'Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Image Handler Version', 'IH_VERSION', '2.0', 'This is used by image handler to check if the database is up to date with uploaded image handler files.', 0, 100, NULL, '2007-06-06 16:47:03', NULL, 'zen_cfg_textarea_small(');


I'll answer the questions you've asked others and see if that helps you to help me :)

Switch to Classic Template ... does it work?
--- No.

What add-ons are you using?
--- List below:
Improved attributes controller
Cross Sell
Debug error logging utility
Dymo label printer
Easy Signup and Login
Easy Populate
Google Sitemaps
Google Analytics
Shopping cart with button
Tabbed Products Pro
Zen Lightbox

What version of Zen Cart?
---1.3.8a
Database patch level: 1.3.8

Clean install or an Upgrade?
---Clean install

How did you install?
---Directly from the Go-Daddy account console.

How did you upgrade?
---N/A

Has this ever worked for you?
---Yes, I'm sure the fact that both problems disappear when I choose to "buy" the product for for which I created totally new attributes, should give me a clue to the cause of the problem but my skills are lacking in this area.

My site is here - http://lakinplates.com

This is an example of a product for which the problems occur - http://lakinplates.com/index.php?main_page=product_info&cPath=44_1_3_24&products_id=28

This is the new product which works fine - http://lakinplates.com/index.php?main_page=product_info&cPath=8_80&products_id=68

I hope you can make sense of all this, Ajeh. I appreciate your time and knowledge.

Kind regards

Philip

23 Jun 2008, 6:01 AM
#11
geronimo avatar

geronimo

New Zenner

Join Date:
Sep 2007
Location:
Tasmania
Posts:
46
Plugin Contributions:
0

Re: Add to cart not displaying in IE

Hi TBSM and Ajeh

I've discovered the reason for my problems! It was something I had added to the main products' descriptions which added a button to call up a help page. What I thought was quite a neat idea was actually a damn nuisance :-)

I've copied the code below so you can see what NOT to do perhaps. Simply removing this piece of code has cured my attribute problem as well as the Add To Cart button issue.

If you have any idea why the code messed things up, it may help me - and others.

*****
<div>
<FORM><INPUT type="button" value="More Info" onClick="window.open('http://lakinplates.com/index.php?main_page=attribute_help_page','moreinfo','width=480,height=500,left=50,top=50,screenX=100,screenY=50,resizable=yes,scrollbars=yes')"></FORM>
<br>
Click this button for a more detailed explanation of the different fittings. Please contact us if you have questions about this information. Use the form <a href="index.php?main_page=contact_us"><u>here</u></a>
</div><br>
*****

Thanks again.

Kind regards
Philip