You can either use the module at this link:
http://www.zen-cart.com/index.php?ma...roducts_id=848
that will display prices excluding AND prices including tax,
or you can add a line to tpl_product_info_display.php as follows:
Open this file:
includes/templates/template_default/templates/tpl_product_info_display.php
(If you have an over-ride of this file in your custom template, edit the existing over-ride file)
Find this section:
PHP Code:
<!--bof Product Price block -->
<h2 id="productPrices" class="productGeneral">
<?php
// base price
if ($show_onetime_charges_description == 'true') {
$one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
$one_time = '';
}
echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
?></h2>
<!--eof Product Price block -->
ADD IN THIS LINE, JUST ABOVE <!--eof Product Price block -->
PHP Code:
<?php echo TEXT_PRICE_INCLUDES_TAX; ?>
So you get:
PHP Code:
<!--bof Product Price block -->
<h2 id="productPrices" class="productGeneral">
<?php
// base price
if ($show_onetime_charges_description == 'true') {
$one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
$one_time = '';
}
echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
?></h2>
<?php echo TEXT_PRICE_INCLUDES_TAX; ?>
<!--eof Product Price block -->
Save the file, and FTP it to:
includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php
Now, you have to DEFINE the text for that new constant, so, open the following file:
includes/languages/english.php
(If you have an over-ride of this file in your custom template, edit the existing over-ride file)
(This can go anywhere, but put it with other TEXT_ defines so you can find it easily later.)
PHP Code:
define('TEXT_PRICE_INCLUDES_TAX', '(incl.22%Tax)');
Save the file, and FTP it to:
includes/languages/YOUR_TEMPLATE/english.php
Bookmarks