Hiya
OK, so... We have used the Themler code for 'Product Price: show Sales price without tax
Found it at this link on the themler Tips and Tricks!
http://answers.themler.com/articles/67028/tips-and-tricks#t_7
Then we still wanted the 'call for price' notice to appear if our product didn't have a price.
So here is the code in full including our added extra which works! :)
(Remember to ADD THE ZEROS to the product without a price, or it won't work.)
<p><?php if ($product->prices['costPrice'] == '0.000000') {
echo 'Call for Price';
} else
{
if ($product->prices['discountedPriceWithoutTax'] != $product->prices['priceWithoutTax'])
{
echo $this->currency->createPriceDiv('discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices);
}
else
{
echo $this->currency->createPriceDiv('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices);
}
}?></p>
Hiya
OK, so... We have used the Themler code for 'Product Price: show Sales price without tax
Found it at this link on the themler Tips and Tricks!
http://answers.themler.com/articles/67028/tips-and-tricks#t_7
Then we still wanted the 'call for price' notice to appear if our product didn't have a price.
So here is the code in full including our added extra which works! :)
(Remember to ADD THE ZEROS to the product without a price, or it won't work.)
<p><?php if ($product->prices['costPrice'] == '0.000000') {
echo 'Call for Price';
} else
{
if ($product->prices['discountedPriceWithoutTax'] != $product->prices['priceWithoutTax'])
{
echo $this->currency->createPriceDiv('discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices);
}
else
{
echo $this->currency->createPriceDiv('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices);
}
}?></p>
Last edited 12 August 2016 by Support Team