Page 4 of 19 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 186
  1. #31
    Join Date
    Sep 2008
    Posts
    64
    Plugin Contributions
    0

    red flag Re: Save For Later Support Thread

    this turned out to be a IE8 browser problem but still don't understand why?
    Regards,

    GM

  2. #32
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,671
    Plugin Contributions
    104

    Default Re: Save For Later Support Thread

    Hmm.... just tried with IE8 and it worked ok for me - but one thing is that part of the design intent of this mod was that you turn off the right sidebox on the shopping cart page. Otherwise things do look squeezed - IE 8 or not. See FAQ question 3.

    http://www.thatsoftwareguy.com/zenca...later.html#faq
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.

  3. #33
    Join Date
    Jan 2007
    Posts
    1,481
    Plugin Contributions
    10

    Default Re: Save For Later Support Thread

    I use this on a 3 column site layout without problems, see attached pictures. I think this is either a missing closing tag or a simple formatting issue that might need some adjustment to the stylesheet or sfl table/cell properties. Post your tpl_shopping_cart_default.php code here and I'll have a quick look at it. Do you have a link to your live site so I can check it out?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	sfl_cart_page.jpg 
Views:	327 
Size:	47.4 KB 
ID:	6382   Click image for larger version. 

Name:	sfl_empty_cart.jpg 
Views:	343 
Size:	37.4 KB 
ID:	6383  
    Last edited by lankeeyankee; 29 Aug 2009 at 03:16 AM.

    Zen Cart and it's community are the best!!

  4. #34
    Join Date
    Sep 2008
    Posts
    64
    Plugin Contributions
    0

    Default Re: Save For Later Support Thread

    Quote Originally Posted by lankeeyankee View Post
    I use this on a 3 column site layout without problems, see attached pictures. I think this is either a missing closing tag or a simple formatting issue that might need some adjustment to the stylesheet or sfl table/cell properties. Post your tpl_shopping_cart_default.php code here and I'll have a quick look at it. Do you have a link to your live site so I can check it out?
    HTML Code:
    <?php
    /**
     * Page Template
     *
     * Loaded automatically by index.php?main_page=shopping_cart.<br />
     * Displays shopping-cart contents
     *
     * @package templateSystem
     * @copyright Copyright 2003-2007 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 5554 2007-01-07 02:45:29Z drbyte $
     */
    ?>
    <div class="centerColumn" id="shoppingCartDefault">
    <?php
      // save for later setup 
      if (isset($_SESSION['customer_id']) && $_SESSION['customer_id'] != '') {
          $sfl_productArray = get_sfl_contents(); 
          if (sizeof($sfl_productArray) > 0) {
                $flagHasSavedContents = 1;
          }    
      }
    
      if ($flagHasCartContents || $flagHasSavedContents) {
    ?>
    <div class="forward"><?php echo TEXT_VISITORS_CART; ?></div>
    
    <!--  // end save for later setup  -->
    
    <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="scSFLHeading"><?php echo " "; ?></th>
            <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
      if (is_array($productArray)) {
      foreach ($productArray as $product) {
    ?>
         <tr class="<?php echo $product['rowClass']; ?>">
           <td class="cartQuantityUpdate">
              <a href="<?php echo zen_href_link('saveforlater', 'action=sfl_save_for_later&product_id=' . $product['id']); ?>"><?php echo zen_image_button(BUTTON_IMAGE_SAVE_FOR_LATER, BUTTON_SAVE_FOR_LATER_ALT) . '</a>'; ?>
           </td>
           <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 /><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']; ?>"><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" />
    
    
    <?php
      echo $product['attributeHiddenField'];
      if (isset($product['attributes']) && is_array($product['attributes'])) {
      echo '<div class="cartAttribsList">';
      echo '<ul>';
        reset($product['attributes']);
        foreach ($product['attributes'] as $option => $value) {
    ?>
    
    <li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']); ?></li>
    
    <?php
        }
      echo '</ul>';
      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_TRASH, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_TRASH, ICON_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 save for later -->
    <br class="clearBoth" />
    <?php
      if (isset($_SESSION['customer_id']) && $_SESSION['customer_id'] != '' && (is_array($sfl_productArray)) && (sizeof($sfl_productArray) > 0)) {
    ?>
    <h1><?php echo SFL_HEADING_TITLE; ?></h1>
    <table  border="0" width="100%" cellspacing="0" cellpadding="0" id="cartContentsDisplay">
         <tr class="tableHeading">
            <th scope="col" id="sfl_scMoveToCart">&nbsp;</th>
            <th scope="col" id="sfl_scProductsHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
            <th scope="col" id="sfl_scUnitHeading"><?php echo TABLE_HEADING_PRICE; ?></th>
            <th scope="col" id="sfl_scRemoveHeading">&nbsp;</th>
            <th scope="col" id="sfl_scUpdateQuantity">&nbsp;</th>
         </tr>
             <!-- Loop through all products /-->
    <?php
      foreach ($sfl_productArray as $product) {
    ?>
         <tr class="<?php echo $product['rowClass']; ?>">
           <td class="cartQuantityUpdate">
              <a href="<?php echo zen_href_link('saveforlater', 'action=sfl_move_to_cart&product_id=' . $product['id']); ?>"><?php echo zen_image_button(BUTTON_IMAGE_MOVE_TO_CART, BUTTON_MOVE_TO_CART_ALT) . '</a>'; ?>
           </td>
           <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" />
    
    
    <?php
      echo $product['attributeHiddenField'];
      if (isset($product['attributes']) && is_array($product['attributes'])) {
      echo '<div class="cartAttribsList">';
      echo '<ul>';
        reset($product['attributes']);
        foreach ($product['attributes'] as $option => $value) {
    ?>
    
    <li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']); ?></li>
    
    <?php
        }
      echo '</ul>';
      echo '</div>';
      }
    ?>
           </td>
           <td class="cartUnitDisplay"><?php echo $product['productsPriceEach']; ?></td>
           <td class="cartRemoveItemDisplay">
    <?php
      if ($product['buttonDelete']) {
    ?>
               <a href="<?php echo zen_href_link('saveforlater', 'action=sfl_remove_product&product_id=' . $product['id']); ?>"><?php echo zen_image($template->get_template_dir(ICON_IMAGE_TRASH, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_TRASH, BUTTON_SFL_TRASH_ALT); ?></a>
    <?php
      }
      if ($product['checkBoxDelete'] ) {
        echo zen_draw_checkbox_field('sfl_delete[]', $product['id']);
      }
    ?>
            </td>
         </tr>
    <?php
      } // end foreach ($productArray as $product)
    ?>
           <!-- Finished loop through all products /-->
          </table>
    
    <?php
      }  // if show sfl
    ?>
    
    <?php
    if ($flagHasCartContents) {
    ?>
    
    <!-- eof save for later -->
    
    <!--bof shopping cart buttons-->
    <div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
    <?php
    // show update cart button
      if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) {
    ?>
    <div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT); ?></div>
    <?php
      } else { // don't show update button below cart
    ?>
    <?php
      } // show update button
    ?>
    <!--eof shopping cart buttons-->
    </form>
    
    <br class="clearBoth" />
    <?php
        if (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_ESTIMATOR, BUTTON_SHIPPING_ESTIMATOR_ALT) . '</a>'; ?></div>
    <?php
        }
    ?>
    
    <!-- ** BEGIN PAYPAL EXPRESS CHECKOUT ** -->
    <?php  // the tpl_ec_button template only displays EC option if cart contents >0 and value >0
    if (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True') {
      include(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php');
    }
    ?>
    <!-- ** END PAYPAL EXPRESS CHECKOUT ** -->
    
    <?php
          if (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
          }
    ?>
    <?php
       }  // if flagHasCartContents
      } 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>
    Last edited by globalmemory; 30 Aug 2009 at 11:19 PM.
    Regards,

    GM

  5. #35
    Join Date
    Jan 2007
    Posts
    1,481
    Plugin Contributions
    10

    Default Re: Save For Later Support Thread

    Isn't that the copy from the mod? I compared them and they are identical. Doesn't your template already have a customized tpl_shopping_cart_default.php file?

    Zen Cart and it's community are the best!!

  6. #36
    Join Date
    Sep 2008
    Posts
    64
    Plugin Contributions
    0

    Default Re: Save For Later Support Thread

    my shopping cart hasn't been modified. Is it possible that it's my computer's browser's cache problem as other IE8 users browsers don't display any distortion?
    Regards,

    GM

  7. #37
    Join Date
    Jan 2007
    Posts
    1,481
    Plugin Contributions
    10

    Default Re: Save For Later Support Thread

    Quote Originally Posted by globalmemory View Post
    my shopping cart hasn't been modified. Is it possible that it's my computer's browser's cache problem as other IE8 users browsers don't display any distortion?
    I just rechecked my site in ie8 and realized that it was on Comaptability View, when compatibility view is turned off it breaks my cart, too!

    I just checked this in a clean zc install and it does the same thing, so it's not our specific templates, but having 3 columns for some reason breaks it.

    I fixed it by moving the </form> tag to right before the save for later code block. I don't know if it will have any unintended effects by taking the sfl out of the form, but I can move to cart and back to save for later and then go to checkout so it seems to work ok. Perhaps swguy could verify that this is ok?

    Zen Cart and it's community are the best!!

  8. #38
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,671
    Plugin Contributions
    104

    Default Re: Save For Later Support Thread

    I suspect what you have done will break update cart.

    My recommendation remains: turn off the right sidebar on the shopping cart page.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.

  9. #39
    Join Date
    Jan 2007
    Posts
    1,481
    Plugin Contributions
    10

    Default Re: Save For Later Support Thread

    Quote Originally Posted by swguy View Post
    I suspect what you have done will break update cart.

    My recommendation remains: turn off the right sidebar on the shopping cart page.
    Ah, yes... I forgot to mention that on my cart I have the buttons all above the sfl block, so moving the </form> tag doesn't break the update, checkout, paypal checkout or continue shopping buttons. Thanks for pointing that out.

    So for those folks that are wed to a 3 column cart page, it looks like you will need to move the sfl block below the cart buttons and </form> tag for it to work correctly in ie8 with Compatibility Mode off.

    And thanks again for your great contributions, we use a lot of them!

    Zen Cart and it's community are the best!!

  10. #40
    Join Date
    Sep 2008
    Posts
    64
    Plugin Contributions
    0

    Default Re: Save For Later Support Thread

    Please can you post the modified code for that layout here.
    Regards,

    GM

 

 
Page 4 of 19 FirstFirst ... 2345614 ... LastLast

Similar Threads

  1. v150 Add Customers from Admin 2.0 (1.5.0 and later) [Support Thread]
    By lat9 in forum Addon Admin Tools
    Replies: 114
    Last Post: 10 Mar 2020, 09:03 PM
  2. v151 Autoresponder+ for ZCv1.5.x [Support Thread]
    By countrycharm in forum All Other Contributions/Addons
    Replies: 23
    Last Post: 19 May 2019, 04:39 PM
  3. Autoresponder+ for ZC v1.3.x [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 229
    Last Post: 28 Jun 2017, 12:32 AM
  4. Support Thread for JS Date Picker for options
    By eVelt in forum All Other Contributions/Addons
    Replies: 17
    Last Post: 5 Dec 2013, 05:44 AM
  5. Image Handler / Tabbed Products Pro ... and Save for Later
    By ksoup in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 12 Jan 2011, 12:11 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR