Hi
I need to show the prices excluding tax (VAT) on the category pages. Can anyone help me with this please?
What is the full Opencart version?
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
So you want to show the prices without tax only on category pages?
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
On All pages but keep the 'Ex Tax' label. I know that I can set it in settings/option and then set 'Display prices with tax' to 'no'. But then on the front end it removes the label 'Ex Tax' which I want to keep so that customers know that the price shown is without tax.
Thank you
Thank you
The following are changes to category and product pages, to keep the tax label. If you need that label in modules like featured, you need to change the respective templates as well. Personally I would opt for a message on top of those pages telling the customer all prices exclude taxes, to avoid having it written everywhere.
catalog\view\theme\default\template\product\category.tpl
line 109
line 111
catalog\view\theme\default\template\product\product.tpl
line 141
line 146
catalog\view\theme\default\template\product\category.tpl
line 109
Code: Select all
<?php echo $text_tax; ?> <?php echo $product['price']; ?>
Code: Select all
<span class="price-new"><?php echo $text_tax; ?> <?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>
line 141
Code: Select all
<h2><?php echo $text_tax; ?> <?php echo $price; ?></h2>
Code: Select all
<h2><?php echo $text_tax; ?> <?php echo $special; ?></h2>
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
Who is online
Users browsing this forum: No registered users and 31 guests