Hello
I would like to distinguish photos with products in promotion, select the old price, distinguish the new. How can I do it?
teitbite wrote:
Please edit file /html/com_virtuemart/category/default.php, look for line 196 which should looks like:
- Code: Select all
if ($this->show_prices == '1') {
and add this code below:
- Code: Select all
if (round($this->product->prices['basePriceWithTax'],$this->currency->_priceConfig['salesPrice'][1]) != $this->product->prices['salesPrice']) {
echo '<span class="price-crossed" >' . $this->currency->createPriceDiv ('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices) . "</span>";
}
if ( $product->prices['basePrice'] != $product->prices['salesPrice']) {
echo '<span class="price-crossed" style="text-decoration: line-through;">' . $this->currency->createPriceDiv ('basePrice', '', $product->prices) . "</span>";
}
if ( $this->product->prices['basePrice'] != $this->product->prices['salesPrice']) {
echo '<span class="price-crossed" style="text-decoration: line-through;">' . $this->currency->createPriceDiv ('basePrice', '', $this->product->prices) . "</span>";
}