Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    customer issue Quantity Discount Table

    I hope someone has an answer to this, it's driving me crazy. I have been over this a bajillion times. I have been trying to do "something" with the look of the quantity discount table, but it seems like only basic changes such as text size, background color & border color will "take".

    What I specifically want to do is add one more row to the table, on the top as a header with my sideboxes background image in it and text. I cannot for the life of me get it to show up. I am editing tpl_modules_products_quantity_discounts.php which has a table, the easiest thing in the world to edit normally.

    Right now, I made an image for the header but because I can't change the template for the table I have to input it in every product that has a discount

    This is as much as I've been able to do so far.

    This is tpl_modules_products_quantity_discounts.php, any suggestions?

    Code:
    <?php
    
    /**
    
     * Module Template
    
     *
    
     * @package templateSystem
    
     * @copyright Copyright 2003-2005 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_modules_products_quantity_discounts.php 3291 2006-03-28 04:03:38Z ajeh $
    
     */
    
    
    
    ?>
    
    <div id="productQuantityDiscounts">
    
    <?php
    
      if ($zc_hidden_discounts_on) {
    
    ?>
    
      <table id="qtyDiscountTable" cellspacing="5" cellpadding="5">
        <tr>
    
          <td colspan="1" align="center"><b>
    
          <?php echo TEXT_HEADER_DISCOUNTS_OFF; ?></b>
    
          </td>
    
        </tr>
    
        <tr>
    
          <td colspan="1" align="left">
    
          <?php echo $zc_hidden_discounts_text; ?>
    
          </td>
    
        </tr>
    
      </table>
    
    <?php } else { ?>
    
      <table id="qtyDiscountTable" cellspacing="5" cellpadding="5">
    
        <tr>
    
          <td colspan="<?php echo $columnCount+1; ?>" align="left"><b>
    
    <?php
    
      switch ($products_discount_type) {
    
        case '1':
    
          echo TEXT_HEADER_DISCOUNT_PRICES_PERCENTAGE;
    
          break;
    
        case '2':
    
          echo TEXT_HEADER_DISCOUNT_PRICES_ACTUAL_PRICE;
    
          break;
    
        case '3':
    
          echo TEXT_HEADER_DISCOUNT_PRICES_AMOUNT_OFF;
    
          break;
    
      }
    
    ?>
    
          </b></td>
    
        </tr>
    
    
    
        <tr>
    
          <td align="left"><b><?php echo $show_qty . '<br />' . $currencies->display_price($show_price, zen_get_tax_rate($products_tax_class_id)); ?></b></td>
    
    
    
    <?php
    
      foreach($quantityDiscounts as $key=>$quantityDiscount) {
    
    ?>
    
    <td align="left"><b><?php echo $quantityDiscount['show_qty'] . '<br />' . $currencies->display_price($quantityDiscount['discounted_price'], zen_get_tax_rate($products_tax_class_id)); ?></b></td>
    
    <?php
    
        $disc_cnt++;
    
        if ($discount_col_cnt == $disc_cnt && !($key == sizeof($quantityDiscount))) {
    
          $disc_cnt=0;
    
    ?>
    
      </tr><tr>
    
    <?php
    
        }
    
      }
    
    ?>
    
    <?php
    
      if ($disc_cnt < $columnCount) {
    
    ?>
    
        <td align="left" colspan="<?php echo ($columnCount+1 - $disc_cnt)+1; ?>"> &nbsp; </td>
    
    <?php } ?>
    
        </tr>
    
    <?php
    
      if (zen_has_product_attributes($products_id_current)) {
    
    ?>
    
        <tr>
    
          <td colspan="<?php echo $columnCount+1; ?>" align="left">
    
            <?php echo TEXT_FOOTER_DISCOUNT_QUANTITIES; ?>
    
          </td>
    
        </tr>
    
    <?php } ?>
    
      </table>
    
    <?php } // hide discounts ?>
    
    </div>
    I have also tried using the stylesheet to add a div with the style, but no luck with that either.

    Thanks!!!
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

  2. #2
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: Quantity Discount Table

    Well, I've gone a different way with it but I still don't get what's up with this table
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

 

 

Similar Threads

  1. v139h Table for Attribute and Quantity Discount
    By enzolino in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 Apr 2013, 08:46 PM
  2. Quantity Discount Table
    By kraperw in forum General Questions
    Replies: 1
    Last Post: 8 Dec 2011, 08:25 PM
  3. my itsy bitsy quantity discount table...
    By CharInLasVegas in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 Jan 2009, 05:49 PM
  4. Quantity Discount Table Display Price.
    By lmax401 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Sep 2008, 01:40 AM
  5. Quantity Discount Table Appearance
    By cevans73 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Jul 2008, 10:04 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