Hi,
Noob here again but I want the category view of Virtumart to display the override (sale price of an item)instead of the full price.
Im a total amateur so any help would be most welcome.
Thanks,
Fionn
<div class="catProductPrice" id="productPrice<?php echo $product->virtuemart_product_id ?>">
<?php
if ($this->show_prices == '1') {
if ($product->prices['salesPrice']<=0 and VmConfig::get ('askprice', 1) and !$product->images[0]->file_is_downloadable) {
echo JText::_ ('COM_VIRTUEMART_PRODUCT_ASKPRICE');
}
echo $this->currency->createPriceDiv('basePriceWithTax', '', $product->prices);
echo $this->currency->createPriceDiv('taxAmount','TPL_GK_LANG_VM_INC_TAX', $product->prices);
} ?>
</div>
//echo $this->currency->createPriceDiv('basePriceWithTax', '', $product->prices);
echo $this->currency->createPriceDiv('salesPrice', '', $product->prices);
teitbite wrote:Hi
@mintonxbz that's not so simple that I can guess. Please send me an access to ftp and an url to the example page I'll be able to see products where You want to make this modification.
.catProductPrice span.PricesalesPrice {
border-top: 2px #ab0000 solid;
padding: 12px;
teitbite wrote:Hi
I have replaced prices code, so now a salePrice should be visible instead of a priceWithTax.
- Code: Select all
//echo $this->currency->createPriceDiv('basePriceWithTax', '', $product->prices);
echo $this->currency->createPriceDiv('salesPrice', '', $product->prices);