New Zenner
- Join Date:
- Mar 2009
- Posts:
- 48
- Plugin Contributions:
- 0
Post #1 by iscatech
Hello,
This page shows how my price box is currently displayed:
http://www.iscatech.com/ecommerce/index.php?main_page=product_info&cPath=24_2&products_id=132
This is how I would like the price box to look:
I am aware of how to change the string of header text. However, I do not know how to rearrange the items onto one row (or 4 columns). I have been editing the following code with little success:
<?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 border="1" cellspacing="2" cellpadding="2">
<tr>
<td colspan="1" align="center">
<?php echo "Price per unit"; ?>
</td>
</tr>
<tr>
<td colspan="1" align="center">
<?php echo $zc_hidden_discounts_text; ?>
</td>
</tr>
</table>
<?php } else { ?>
<table border="1" cellspacing="2" cellpadding="2">
<tr>
<td colspan="<?php echo $columnCount+1; ?>" align="center">
<?php
echo "Price per unit";
?>
</td>
</tr>
<tr>
<td align="center"><?php echo $show_qty . '<br />' . $currencies->display_price($show_price, zen_get_tax_rate($products_tax_class_id)); ?></td>
<?php
foreach($quantityDiscounts as $key=>$quantityDiscount) {
?>
<td align="center"><?php echo $quantityDiscount['show_qty'] . '<br />' . $currencies->display_price($quantityDiscount['discounted_price'], zen_get_tax_rate($products_tax_class_id)); ?></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="center" 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="center">
<?php echo TEXT_FOOTER_DISCOUNT_QUANTITIES; ?>
</td>
</tr>
<?php } ?>
</table>
<?php } // hide discounts ?>
</div>
I want to be able to format the labels to line up with the price and quantities. I am not quite sure if I am working with the correct code/file.
Any help would be appreciated. Thanks in advance.
ISCA Technologies
https://www.iscatech.com
https://www.iscatech.com/ecommerce/