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?
I have also tried using the stylesheet to add a div with the style, but no luck with that either.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; ?>"> </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>
Thanks!!!




