Is it possible to display price discounts in the filtered search results?
For example, on an item with 20% off I have a variable (discount) which will be 0.8 and want to multiply the price displayed by that variable. I have managed it ok in the product pages using the following...
For example, on an item with 20% off I have a variable (discount) which will be 0.8 and want to multiply the price displayed by that variable. I have managed it ok in the product pages using the following...
PHP Code:
<actinic:block php="true" >
$rawprice = <actinic:variable name="ProductPriceRaw" selectable="false" />;
$discount = "<actinic:variable name="discount" selectable="false" />";
{
echo "Save an extra <actinic:variable name="discountpc" />% OFF!! <br/>";
echo "Now Only £";
echo round(("<actinic:variable name="ProductPriceRaw" selectable="false" />") * $discount) ,2);
}
</actinic:block>
Comment