Zen Cart Logo
Forums / General Questions / Firefox Bug With Item Name In Shopping Cart?

Firefox Bug With Item Name In Shopping Cart?

Locked

Views: 1,122

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
16 Oct 2008, 1:53 AM
#1
some_name_not_taken avatar

some_name_not_taken

Zen Follower

Join Date:
Sep 2008
Posts:
106
Plugin Contributions:
0

Firefox Bug With Item Name In Shopping Cart?

I have a problem with the item name of items repeated twice in the shopping cart table.

This only happens with Firefox, even when the cache is cleared. - I have searched through all the .php files I can find dealing with the shopping cart, changed some of the CSS values and even looked at the database. - Nothing!

As there are no values that I can find dealing with the dimensions of much of the shopping cart table (some are auto-generated, I know) I cannot check these to see if they may be causing a problem and other settings relating to the table I have been totally unable to locate even using the toolkit.

Everything else displays properly, though, and the price and quantity are not duplicated. - I have found much interesting material in the other forums but nothing relating to this specific problem, so I guess that it must some kind of bug or a corrupted database - I'm just not sure which, and so I'm reporting it to see what other people think whilst I continue to try and fix/identify it.

16 Oct 2008, 2:03 AM
#2
some_name_not_taken avatar

some_name_not_taken

Zen Follower

Join Date:
Sep 2008
Posts:
106
Plugin Contributions:
0

Re: Firefox Bug With Item Name In Shopping Cart?

More weirdness that I forgot to add to the post:

The source code clearly shows only one entry for each listing title, even though two are shown on screen...

16 Oct 2008, 2:22 AM
#3
some_name_not_taken avatar

some_name_not_taken

Zen Follower

Join Date:
Sep 2008
Posts:
106
Plugin Contributions:
0

Re: Firefox Bug With Item Name In Shopping Cart?

Just checked the overide setup to see if that was the cause - it has been the cause of many other problems, but not this one, so that's one more thing eliminated...

16 Oct 2008, 3:15 AM
#4
some_name_not_taken avatar

some_name_not_taken

Zen Follower

Join Date:
Sep 2008
Posts:
106
Plugin Contributions:
0

Re: Firefox Bug With Item Name In Shopping Cart?

Just checked everything with the debug error-logging utility again - nothing showing...

16 Oct 2008, 3:49 AM
#5
some_name_not_taken avatar

some_name_not_taken

Zen Follower

Join Date:
Sep 2008
Posts:
106
Plugin Contributions:
0

Re: Firefox Bug With Item Name In Shopping Cart?

Using Firebug I think that I have identified the problem, but do seem to be able to fix it:

<span id="cartImage" class="back">
<img height="0" width="50" title=" My Test Product " alt="My Test Product" src="images/"/>
</span>
<span id="cartProdTitle">
My Test Product
<span class="alert bold"/>
</span>
16 Oct 2008, 4:18 AM
#6
some_name_not_taken avatar

some_name_not_taken

Zen Follower

Join Date:
Sep 2008
Posts:
106
Plugin Contributions:
0

Re: Firefox Bug With Item Name In Shopping Cart?

I seem to have fixed the problem by removing

<?php echo $product['productsImage']; ?>

from the following code block

       <td class="cartProductDisplay">
<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert 

bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
<br class="clearBoth" />

in the tpl_shopping_cart_default.php file.

I do not have product images for tested product and suspect that the problem is therefore being caused by the title tag for the image being mishandled in some way by Firefox in the absence of an image, thereby printing on the screen the contents of the that tag next to the product title, because this would be shown under the title tag in the source code (which it is), not as a duplicate listing title.

If I could locate the title tag for <?php echo $product['productsImage']; ?> I would remove the tag and see what happens, but I have been unable to locate this detail.

The only problem now, of course, is that the modification to the .php file is going to affect all my product listings... unless I can locate that darned title tag...

16 Oct 2008, 4:22 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Firefox Bug With Item Name In Shopping Cart?

You are seeing the tag and the Product Name ... add an image and you won't see it twice ... or remove the image and you won't see it twice ...

16 Oct 2008, 4:35 AM
#8
some_name_not_taken avatar

some_name_not_taken

Zen Follower

Join Date:
Sep 2008
Posts:
106
Plugin Contributions:
0

Re: Firefox Bug With Item Name In Shopping Cart?

Thanks for the reply Ajeh - I think I've finally got it now... and on the same lines as you have just put forward:

Still cannot locate the location of the title tag; however I have found a nice workaround...

Leave the unmodified tpl_shopping_card_default.php in place and use the pixel_trans.gif from the includes -> templates -> template_default -> images folder to give the images that you *don'*t want an image for an image. - Just enter pixel_trans.gif into the box next to Or, select an existing image file from server, filename:, then Update... and you should be sorted.

Sounds mad? Maybe, but this method works and means that you don't have to hack the .php file or break anything.