In order to have the price without tax in big in the product detail page, I changed some lines :
In the default.php file (/templates/gk_esport/html/com_virtuemart/productdetails/default.php) around line 235, I changed this code :
- Code: Select all
echo $this->currency->createPriceDiv ('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices);
echo $this->currency->createPriceDiv ('discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices);
echo $this->currency->createPriceDiv ('taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $this->product->prices);
$unitPriceDescription = JText::sprintf ('COM_VIRTUEMART_PRODUCT_UNITPRICE', JText::_('COM_VIRTUEMART_UNIT_SYMBOL_'.$this->product->product_unit));
echo $this->currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices);
echo $this->currency->createPriceDiv ('unitPrice', $unitPriceDescription, $this->product->prices);
}
to this code :
- Code: Select all
echo $this->currency->createPriceDiv ('discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices);
echo $this->currency->createPriceDiv ('taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $this->product->prices);
$unitPriceDescription = JText::sprintf ('COM_VIRTUEMART_PRODUCT_UNITPRICE', JText::_('COM_VIRTUEMART_UNIT_SYMBOL_'.$this->product->product_unit));
echo $this->currency->createPriceDiv ('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices);
}
As I wanted to have the price without tax in red and big in the category view, I also changed things :
In default.php (/templates/gk_esport/html/com_virtuemart/category/default.php) I changed things aournd lines 240,
- Code: Select all
echo $this->currency->createPriceDiv('salesPrice','',$product->prices);
to this
- Code: Select all
echo $this->currency->createPriceDiv('priceWithoutTax','',$product->prices);
And then you have to change in the css :
In vm.css (/templates/gk_esport/css/vm.css), I replaced this lines :
- Code: Select all
div.PricesalesPrice {
margin: 30px -20px -10px;
padding: 30px 20px 20px;
font-size: 22px;
color: #333;
background: #fff;
}
span.PricesalesPrice {
color: #EA3C3C;
}
by theses lines :
- Code: Select all
div.PricepriceWithoutTax {
font-size: 22px;
color: #333;
}
span.PricepriceWithoutTax {
color: #EA3C3C;
}
I hope that this will help people that want to have the price without tax visible instead of total price with tax.