As you say it should work.
Not doing anything daft are you like using a £ or a , in the value?
Mike
Not doing anything daft are you like using a £ or a , in the value?
Mike
<actinic:block php="true" >
$rrp = '<actinic:variable name="RRP" selectable="false" />';
if (empty($rrp)) {$rrp = 0;}
$rawprice = <actinic:variable name="ProductPriceRaw" selectable="false" />;
// display if there's a saving to show
if ( ($rrp != 0) && ($rrp > $rawprice) )
{
$savepercent = round((($rrp - $rawprice) / $rrp) * 100);
echo "<h3 class=\"rrp_price\">";
echo "RRP: £" . number_format($rrp,2) . "<span class=\"percent\"> (SAVING YOU $savepercent%)</span>";
echo "</h3>";
}
</actinic:block>
Comment