Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default 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...

  3. #3
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default 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...

  4. #4
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default Re: Firefox Bug With Item Name In Shopping Cart?

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

  5. #5
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default 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:

    Code:
    <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>

  6. #6
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default Re: Firefox Bug With Item Name In Shopping Cart?

    I seem to have fixed the problem by removing

    Code:
    <?php echo $product['productsImage']; ?>
    from the following code block

    Code:
           <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...

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. change the shopping cart item name
    By stitchnkitty in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 30 Sep 2009, 06:03 PM
  2. Mysterious missing Item Name in checkout and shopping cart
    By vandiermen in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Oct 2008, 01:45 PM
  3. Item name in shopping cart is writtent twice?
    By venera15 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Jan 2008, 04:24 PM
  4. Item name not showing up in shopping cart
    By vara in forum General Questions
    Replies: 2
    Last Post: 14 Sep 2006, 04:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg