Hi Guys
I am getting the following error Parse error: parse error in main on line 2 on the following
<actinic:block php="true">
$rrp = <actinic:variable formatting="font(Color|000000)" name="RRP" selectable="false" />;
$rawprice = <actinic:variable formatting="font(Color|ff0000)" name="ProductPriceRaw" selectable="false" />;
// only display is we have an RRP and there's a saving to show
if ( ($rrp != 0) && ($rrp > $rawprice) )
{
$amountsaved = ($rrp - $rawprice);
$savepercent = ((($rrp - $rawprice) / $rrp) * 100);
echo "<span style=\"color:red; font-weight:bold\">RRP £", number_format($rrp,2), " - you save £", number_format($amountsaved,2);
echo " (", number_format($savepercent,2), "%)";
}
</actinic:block>
<br/>
Any help would be greatly appreciated
regards Steve
I am getting the following error Parse error: parse error in main on line 2 on the following
<actinic:block php="true">
$rrp = <actinic:variable formatting="font(Color|000000)" name="RRP" selectable="false" />;
$rawprice = <actinic:variable formatting="font(Color|ff0000)" name="ProductPriceRaw" selectable="false" />;
// only display is we have an RRP and there's a saving to show
if ( ($rrp != 0) && ($rrp > $rawprice) )
{
$amountsaved = ($rrp - $rawprice);
$savepercent = ((($rrp - $rawprice) / $rrp) * 100);
echo "<span style=\"color:red; font-weight:bold\">RRP £", number_format($rrp,2), " - you save £", number_format($amountsaved,2);
echo " (", number_format($savepercent,2), "%)";
}
</actinic:block>
<br/>
Any help would be greatly appreciated
regards Steve
Comment