Many, many years ago (at least 15) I created a "Specials" page here: https://www.abbeyarchery.com.au/c/adha/SPECIALS.html
in the form of: Regular Price, Sale Price, You Save.
It all worked great until recently. Now, the pricing displays three decimal places e.g:
Regular Price: $2,399.95
Sale Price: $1,999.954
You Save: $399.996
We want the pricing format to be "standard" i.e. to 2 decimal places (as it was since inception) i.e
Regular Price: $2,399.95
Sale Price: $1,999.95
You Save: $400.00
This problem seems to coincide with the implementation of precision pricing. I tried to uninstall precision pricing but it seems I can't (and I probably don't want to).
I created that page using Toolbelt. The Toolbelt instructions seem to have disappeared and it is many years since I looked at them anyway. So, I am stuck.
Here is the code from the Specials page:
<mvt:item name="ry_toolbelt" param="currencyformat|g.regprice|l.all_settings:pr od:cost" />
Regular Price: <s>&mvt:global:regprice;</s><br>
<mvt:item name="ry_toolbelt" param="assign|g.specincgst|l.all_settings:prod:pri ce * 1.1" />
<mvt:item name="ry_toolbelt" param="currencyformat|g.specincgstf|g.specincgst" />
Sale Price: &mvt:global:specincgstf; incl. GST <br>
<mvt:item name="ry_toolbelt" param="assign|g.regprice|l.all_settings:prod:cost" />
<mvt:item name="ry_toolbelt" param="currencyformat|g.saving|g.regprice - g.specincgst" />
<span class="blue">You Save: &mvt:global:saving; </span>
I would have thought that "currencyformat" would have ensured this calculation was to two decimal places, but it seems not.
Any suggestions on how to fix this issue would be appreciated.
In case it is not clear, this is just a marketing issue i.e. the "Sale Price" is the changed retail price, in Miva, and this is what the customer is charged. The You Save calculation is just marketing, to show customers how much they are saving on the old price.
Pete
in the form of: Regular Price, Sale Price, You Save.
It all worked great until recently. Now, the pricing displays three decimal places e.g:
Regular Price: $2,399.95
Sale Price: $1,999.954
You Save: $399.996
We want the pricing format to be "standard" i.e. to 2 decimal places (as it was since inception) i.e
Regular Price: $2,399.95
Sale Price: $1,999.95
You Save: $400.00
This problem seems to coincide with the implementation of precision pricing. I tried to uninstall precision pricing but it seems I can't (and I probably don't want to).
I created that page using Toolbelt. The Toolbelt instructions seem to have disappeared and it is many years since I looked at them anyway. So, I am stuck.
Here is the code from the Specials page:
<mvt:item name="ry_toolbelt" param="currencyformat|g.regprice|l.all_settings:pr od:cost" />
Regular Price: <s>&mvt:global:regprice;</s><br>
<mvt:item name="ry_toolbelt" param="assign|g.specincgst|l.all_settings:prod:pri ce * 1.1" />
<mvt:item name="ry_toolbelt" param="currencyformat|g.specincgstf|g.specincgst" />
Sale Price: &mvt:global:specincgstf; incl. GST <br>
<mvt:item name="ry_toolbelt" param="assign|g.regprice|l.all_settings:prod:cost" />
<mvt:item name="ry_toolbelt" param="currencyformat|g.saving|g.regprice - g.specincgst" />
<span class="blue">You Save: &mvt:global:saving; </span>
I would have thought that "currencyformat" would have ensured this calculation was to two decimal places, but it seems not.
Any suggestions on how to fix this issue would be appreciated.
In case it is not clear, this is just a marketing issue i.e. the "Sale Price" is the changed retail price, in Miva, and this is what the customer is charged. The You Save calculation is just marketing, to show customers how much they are saving on the old price.
Pete
Comment