Post by anhto » Tue Mar 03, 2015 12:42 pm

Hi,
For your issue, so easy to do, by default opencart give one varible to product.tpl

Code: Select all

<?php if ($tax) { ?>
        <span class="price-tax"><?php echo $text_tax; ?> <?php echo $tax; ?></span><br />
        <?php } ?>
So let use varible $tax by this way:

Code: Select all

        <div><?php echo ($tax ? 'HAD VAT' : 'NO VAT')?></div> <!-- Add this line to any line you want -->

        <?php if ($tax) { ?>
        <span class="price-tax"><?php echo $text_tax; ?> <?php echo $tax; ?></span><br />
        <?php } ?>

I just creating modules to Increase Your Sales.

Image Image


Newbie

Posts

Joined
Tue Jun 11, 2013 11:53 pm
Who is online

Users browsing this forum: No registered users and 10 guests