Totally Zenned
- Join Date:
- Sep 2007
- Location:
- Dublin, Ireland
- Posts:
- 1,281
- Plugin Contributions:
- 5
Display price with VAT/TAX and Ex VAT/TAX
I have seen that this is on a wishlist and I'd be interested in knowing how far up it is as I'm just about to make changes to my code to do this.
Looking through the code it appears that what needs to be done is:
-
Make DISPLAY_PRICE_WITH_TAX an integer rather than a boolean. The proposal would be that:
0- Display prices without Tax
1- Display prices with Tax
2- Display both prices
-
Code changes to functions prices.php and taxes.php and class currencies.php. Am I right in thinking that these are non-custom storable files so the changes I make are to the main code???
-
Add "Ex. Tax", "Inc. Tax" defines to the language file so the text can be localised ("Ex. VAT" and "Inc. VAT" in my case).
-
Changes to admin to handle the new DISPLAY_PRICE_WITH_TAX plus a new variable to indicate whether to display the non tax price first or second.
-
Some new classes in the CSS.
-
Some quite major changes to the function zen_get_products_display_price($products_id).
Now, am I missing anything?
Andrew
Andrew Moore
Omnicia Agile Development
www.omnicia.com