I want to set a different discount for each product;
in this regard in the product sheet, I used the resale price - no calculation rule
in the Browse page page(Components\com_virtuemart\views\category\templ\default.php) I have inserted the code:
if ($this->product->prices['discountAmount'] > 0){
echo "<span class='PricebasePriceWithTax'>".$this->currency->createPriceDiv ('basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $product->prices)."</span>";
echo $this->currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $product->prices);
}else
{
echo $this->currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $product->prices);
}
but it does not work the first part of the IF statement
the condition : if ($this->product->prices['discountAmount'] > 0) does not work
virtuemart always shows two prices stroke one and the other normal even when there is no discount!!
nobody can give me a hand ??
Why do you not use teh override price option, which is exactly for that