Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Dec 2006
    Location
    Ohio
    Posts
    198
    Plugin Contributions
    0

    Default Firefox display problem

    http://www.ktnaturals.com/catalog

    My shopping cart page looks fine in IE, but the icons are misaligned and missing an image in Firefox. How do I fix this? I have attached screenshots of what it should look like, and what it looks like in FF. Below is my tpl_shopping_cart_default.php.

    PHP Code:
    <?php
    /**
     * Page Template
     *
     * Loaded automatically by index.php?main_page=shopping_cart.<br />
     * Displays shopping-cart contents
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_shopping_cart_default.php 5414 2006-12-27 07:51:03Z drbyte $
     */
    ?>
    <div class="centerColumn" id="shoppingCartDefault">
    <?php
      
    if ($flagHasCartContents) {
    ?>
    <?php
      
    if ($_SESSION['cart']->count_contents() > 0) {
    ?>
    <div class="forward"><?php echo TEXT_VISITORS_CART?></div>
    <?php
      
    }
    ?>
    <h1 id="cartDefaultHeading"><?php echo HEADING_TITLE?></h1>
    <?php if ($messageStack->size('shopping_cart') > 0) echo $messageStack->output('shopping_cart'); ?>
    <?php 
    echo zen_draw_form('cart_quantity'zen_href_link(FILENAME_SHOPPING_CART'action=update_product')); ?>
    <div id="cartInstructionsDisplay" class="content"><?php echo TEXT_INFORMATION?></div>
    <?php if (!empty($totalsDisplay)) { ?>
      <div class="cartTotalsDisplay important"><?php echo $totalsDisplay?></div>
      <br class="clearBoth" />
    <?php ?>
    <?php  
    if ($flagAnyOutOfStock) { ?>
    <?php    
    if (STOCK_ALLOW_CHECKOUT == 'true') {  ?>
    <div class="messageStackError"><?php echo OUT_OF_STOCK_CAN_CHECKOUT?></div>
    <?php    } else { ?>
    <div class="messageStackError"><?php echo OUT_OF_STOCK_CANT_CHECKOUT?></div>
    <?php    //endif STOCK_ALLOW_CHECKOUT ?>
    <?php  
    //endif flagAnyOutOfStock ?>
    <table  border="0" width="100%" cellspacing="0" cellpadding="0" id="cartContentsDisplay">
         <tr class="tableHeading">
            <th scope="col" id="scQuantityHeading"><?php echo TABLE_HEADING_QUANTITY?></th>
            <th scope="col" id="scUpdateQuantity">&nbsp;</th>
            <th scope="col" id="scProductsHeading"><?php echo TABLE_HEADING_PRODUCTS?></th>
            <th scope="col" id="scUnitHeading"><?php echo TABLE_HEADING_PRICE?></th>
            <th scope="col" id="scTotalHeading"><?php echo TABLE_HEADING_TOTAL?></th>
            <th scope="col" id="scRemoveHeading">&nbsp;</th>
         </tr>
             <!-- Loop through all products /-->
    <?php
      
    foreach ($productArray as $product) {
    ?>
         <tr class="<?php echo $product['rowClass']; ?>">
           <td class="cartQuantity">
    <?php
      
    if ($product['flagShowFixedQuantity']) {
        echo 
    $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' $product['flagStockCheck'] . '</span><br /><br />' $product['showMinUnits'];
      } else {
        echo 
    $product['quantityField'] . '<br /><span class="alert bold">' $product['flagStockCheck'] . '</span><br />' $product['showMinUnits'];
      }
    ?>
           </td>
           <td class="cartQuantityUpdate">
    <?php
      
    if ($product['buttonUpdate'] == '') {
        echo 
    '' ;
      } else {
        echo 
    $product['buttonUpdate'];
      }
    ?>
           </td>
           <td class="cartProductDisplay">
    <a href="<?php echo $product['linkProductsName']; ?>"><div id="cartImage" class="back"><?php echo $product['productsImage']; ?></div><div id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' $product['flagStockCheck'] . '</span>'?></div></a>
    <!-- <br class="clearBoth" /> -->
    <?php
      
    echo $product['attributeHiddenField'];
      if (isset(
    $product['attributes']) && is_array($product['attributes'])) {
      echo 
    '<div class="cartAttribsList">';
        
    reset($product['attributes']);
        foreach (
    $product['attributes'] as $option => $value) {
    ?>
    <ul class="orderAttribsList">
    <li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER nl2br($value['products_options_values_name']); ?></li>
    </ul>
    <?php
        
    }
      echo 
    '</div>';
      }
    ?>
           </td>
           <td class="cartUnitDisplay"><?php echo $product['productsPriceEach']; ?></td>
           <td class="cartTotalDisplay"><?php echo $product['productsPrice']; ?></td>
           <td class="cartRemoveItemDisplay">
    <?php
      
    if ($product['buttonDelete']) {
    ?>
               <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'action=remove_product&product_id=' $product['id']); ?>"><?php echo zen_image($template->get_template_dir(ICON_IMAGE_TRASHDIR_WS_TEMPLATE$current_page_base,'images/icons'). '/' ICON_IMAGE_TRASHICON_TRASH_ALT); ?></a>
    <?php
      
    }
      if (
    $product['checkBoxDelete'] ) {
        echo 
    zen_draw_checkbox_field('cart_delete[]'$product['id']);
      }
    ?>
    </td>
         </tr>
    <?php
      
    // end foreach ($productArray as $product)
    ?>
           <!-- Finished loop through all products /-->
          </table>
    <div id="cartSubTotal"><?php echo SUB_TITLE_SUB_TOTAL?> <?php echo $cartShowTotal?></div>
    <br class="clearBoth" />
    <!--bof shopping cart buttons-->
    <!-- ** BEGIN PAYPAL EXPRESS CHECKOUT ** -->
      <?php  // only display EC option if cart contents >0 and value >0
    if (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True' && $_SESSION['cart']->count_contents() > && $_SESSION['cart']->total 0) {
      include(
    DIR_FS_CATALOG DIR_WS_MODULES 'payment/paypal/tpl_ec_button.php');
    }
    ?>
    <!-- ** END PAYPAL EXPRESS CHECKOUT ** -->
    <div class="buttonRow forward"><?php echo '<a href="' zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL') . '">' zen_image_button(BUTTON_IMAGE_CHECKOUTBUTTON_CHECKOUT_ALT) . '</a>'?></div>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPINGBUTTON_CONTINUE_SHOPPING_ALT) . '</a>'?></div>
    <?php
    // show update cart button
      
    if (SHOW_SHOPPING_CART_UPDATE == or SHOW_SHOPPING_CART_UPDATE == 3) {
    ?>
    <div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATEICON_UPDATE_ALT); ?></div>
    <?php
      
    } else { // don't show update button below cart
    ?>
    <?php
      
    // show checkout button
    ?>
    <!--eof shopping cart buttons-->
    </form>
    <br class="clearBoth" />
    <?php
        
    switch (true) {
          case (
    SHOW_SHIPPING_ESTIMATOR_BUTTON == '1'):
    ?>
    <div class="buttonRow back"><?php echo '<a href="javascript:popupWindow(\'' zen_href_link(FILENAME_POPUP_SHIPPING_ESTIMATOR) . '\')">' .
     
    zen_image_button(BUTTON_IMAGE_SHIPPING_ESTIMATORBUTTON_SHIPPING_ESTIMATOR_ALT) . '</a>'?></div>
    <?php
          
    break;
          case (
    SHOW_SHIPPING_ESTIMATOR_BUTTON == '2'):
    /**
     * load the shipping estimator code if needed
     */
    ?>
          <?php require(DIR_WS_MODULES zen_get_module_directory('shipping_estimator.php')); ?>
    <?php
            
    break;
          }
    ?>
    <?php
      
    } else {
    ?>
    <h2 id="cartEmptyText"><?php echo TEXT_CART_EMPTY?></h2>
    <?php
    $show_display_shopping_cart_empty 
    $db->Execute(SQL_SHOW_SHOPPING_CART_EMPTY);
    while (!
    $show_display_shopping_cart_empty->EOF) {
    ?>
    <?php
      
    if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_FEATURED_PRODUCTS') { ?>
    <?php
    /**
     * display the Featured Products Center Box
     */
    ?>
    <?php 
    require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php 
    ?>
    <?php
      
    if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_SPECIALS_PRODUCTS') { ?>
    <?php
    /**
     * display the Special Products Center Box
     */
    ?>
    <?php 
    require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
    <?php 
    ?>
    <?php
      
    if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_NEW_PRODUCTS') { ?>
    <?php
    /**
     * display the New Products Center Box
     */
    ?>
    <?php 
    require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
    <?php 
    ?>
    <?php
      
    if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_UPCOMING') {
        include(
    DIR_WS_MODULES zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS));
      }
    ?>
    <?php
      $show_display_shopping_cart_empty
    ->MoveNext();
    // !EOF
    ?>
    <?php
      
    }
    ?>
    </div>
    I also have a bottom border around my product images (in product detail page) in FF that doesn't show up in IE. CSS already has the following defined:
    PHP Code:
    a img {bordernone; } 
    TIA!
    Katie
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	cart-ie.jpg 
Views:	309 
Size:	25.1 KB 
ID:	1603   Click image for larger version. 

Name:	cart-ff.jpg 
Views:	307 
Size:	25.2 KB 
ID:	1604  

 

 

Similar Threads

  1. IE Firefox display problem
    By wilson_li in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Aug 2011, 03:29 PM
  2. Internet explorer & firefox display problem
    By globalmemory in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 10 May 2009, 11:34 AM
  3. Display Problem in Firefox
    By No1im in forum General Questions
    Replies: 2
    Last Post: 3 Feb 2007, 06:16 AM
  4. Product Info display problem, IE vs Firefox
    By stumped in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 25 Oct 2006, 12:48 AM
  5. Firefox display problem
    By duckydoodles.com in forum General Questions
    Replies: 8
    Last Post: 15 Jun 2006, 08:32 PM

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