EDIT**************************************
Recently I have used the advanced guide to add savings based on rrp to my site, the following is what i followed.
Automatically Calculate Savings based on an RRP
This technique will calculate a saving on prices based on the value of 'RRP' – a custom variable that you will need to create.
It will display as follows within your product layouts.
RRP: £10.00 – you save 8% To do this:
1. Create a new variable called 'RRP' based on the instructions in the main help:
'Understanding Variables > Adding a New Variable'. It needs to have a type of 'Number' rather than 'Text'.
2. Enter some RRP values for your products. Remember to NOT include a currency symbol.
3. Copy and paste the following code into your product layout(s) wherever you want the price saving message to appear.
<actinic:block php="true">
$rrp = <actinic:variable name="RRP" selectable="false" />;
$rawprice = <actinic:variable name="ProductPriceRaw" selectable="false" />;
$rawprice = $rawprice * 1.2; // 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 "RRP £$rrp - you save $savepercent%";
}
</actinic:block>
4. Apply changes and check the results in the preview. There are several areas where you can tweak this code.
o Use a currency other than pounds by amending the '£' just before where it says '£$rrp'
o If you use a tax rate other than VAT at 20% then you can amend the line that talks about
'add in vat if showing VAT inc. prices'. If you don't charge tax at all you can safely delete
this line.
I added the new variable Named : RRP, Description: Retail Price and Promt of: Real Retail Price Cost.
Group : product, place of setting site + product,
Deselected allow use parent as an option
Panel Name: Prices
Type: Number
Also i have ticked whole numbers only? I have tryed to untick this and still get the following error.
The price Is £12.75, but it shows RRP 1500£ and a saving of 99%
Although the excel sheet i use for my import shows, Price:1275 RRP 1500.
All my prices have imported in correctly, with the correct decimal place (12.75), but the RRP doesn't get a decimal place in?
Any help much appreciated, hope this is alot more clearer.
Recently I have used the advanced guide to add savings based on rrp to my site, the following is what i followed.
Automatically Calculate Savings based on an RRP
This technique will calculate a saving on prices based on the value of 'RRP' – a custom variable that you will need to create.
It will display as follows within your product layouts.
RRP: £10.00 – you save 8% To do this:
1. Create a new variable called 'RRP' based on the instructions in the main help:
'Understanding Variables > Adding a New Variable'. It needs to have a type of 'Number' rather than 'Text'.
2. Enter some RRP values for your products. Remember to NOT include a currency symbol.
3. Copy and paste the following code into your product layout(s) wherever you want the price saving message to appear.
<actinic:block php="true">
$rrp = <actinic:variable name="RRP" selectable="false" />;
$rawprice = <actinic:variable name="ProductPriceRaw" selectable="false" />;
$rawprice = $rawprice * 1.2; // 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 "RRP £$rrp - you save $savepercent%";
}
</actinic:block>
4. Apply changes and check the results in the preview. There are several areas where you can tweak this code.
o Use a currency other than pounds by amending the '£' just before where it says '£$rrp'
o If you use a tax rate other than VAT at 20% then you can amend the line that talks about
'add in vat if showing VAT inc. prices'. If you don't charge tax at all you can safely delete
this line.
I added the new variable Named : RRP, Description: Retail Price and Promt of: Real Retail Price Cost.
Group : product, place of setting site + product,
Deselected allow use parent as an option
Panel Name: Prices
Type: Number
Also i have ticked whole numbers only? I have tryed to untick this and still get the following error.
The price Is £12.75, but it shows RRP 1500£ and a saving of 99%
Although the excel sheet i use for my import shows, Price:1275 RRP 1500.
All my prices have imported in correctly, with the correct decimal place (12.75), but the RRP doesn't get a decimal place in?
Any help much appreciated, hope this is alot more clearer.
Comment