I have searched this forum and found the below code to add rrp and the % saving.
1) The problem I am getting an error message
A PHP error has been found on the page ('Parse error: parse error in main on line 3') The error is coming from the 'Product Price Including Tax' layout. Click here to go to the code (2 places)
When I click here it just highlights to block.
What do I do to correct this error?
2) I want to change the colour and size of the rrp (price) and Save xx% How do I do that? i figured that this would need to be changed in the CSS but I wouldn't know where.
<actinic:block php="true">
$rrp = <actinic:variable name="RRP" selectable="false" />;
$rawprice = <actinic:variable name="ProductPriceRaw" selectable="false" />;
$rawprice = $rawprice * 1.0; // add in vat if showing VAT inc prices
// only display is we have an RRP and there's a saving to show if ( ($rrp != 0) && ($rrp > $rawprice) )
{
$savepercent = round((($rrp - $rawprice) / $rrp) * 100);
echo "<strike>RRP: £$rrp</strike> | Save $savepercent%!";
}
</actinic:block>
1) The problem I am getting an error message
A PHP error has been found on the page ('Parse error: parse error in main on line 3') The error is coming from the 'Product Price Including Tax' layout. Click here to go to the code (2 places)
When I click here it just highlights to block.
What do I do to correct this error?
2) I want to change the colour and size of the rrp (price) and Save xx% How do I do that? i figured that this would need to be changed in the CSS but I wouldn't know where.
<actinic:block php="true">
$rrp = <actinic:variable name="RRP" selectable="false" />;
$rawprice = <actinic:variable name="ProductPriceRaw" selectable="false" />;
$rawprice = $rawprice * 1.0; // add in vat if showing VAT inc prices
// only display is we have an RRP and there's a saving to show if ( ($rrp != 0) && ($rrp > $rawprice) )
{
$savepercent = round((($rrp - $rawprice) / $rrp) * 100);
echo "<strike>RRP: £$rrp</strike> | Save $savepercent%!";
}
</actinic:block>
Comment