Totally Zenned
- Join Date:
- Sep 2007
- Location:
- Dublin, Ireland
- Posts:
- 1,281
- Plugin Contributions:
- 5
Display price with VAT/TAX and Ex VAT/TAX
hem:
Finally change all occurrences of "if (DISPLAY_PRICE_WITH_TAX == 'true')" to "if (DISPLAY_PRICE_WITH_TAX != '0')" in the order total modules found at includes/modules/order_total/ and the advance search page. The files requiring change are:
includes/modules/order_total/ot_cod_fee.php
Line #85 : if (DISPLAY_PRICE_WITH_TAX == 'true') {includes/modules/order_total/ot_coupon.php
Line #49 : if (DISPLAY_PRICE_WITH_TAX == 'true') {includes/modules/order_total/ot_group_pricing.php
Line #39 : if (DISPLAY_PRICE_WITH_TAX == 'true') {includes/modules/order_total/ot_gv.php
Line #44 : if (DISPLAY_PRICE_WITH_TAX == 'true') {includes/modules/order_total/ot_loworderfee.php
Line #90 : if (DISPLAY_PRICE_WITH_TAX == 'true') {includes/modules/order_total/ot_shipping.php
Line #85 : if (DISPLAY_PRICE_WITH_TAX == 'true') $order->info['shipping_cost'] += zen_calculate_tax($order->info['shipping_cost'], $shipping_tax);includes/modules/pages/advanced_search_result/header_php.php
Line #207 : if ((DISPLAY_PRICE_WITH_TAX == 'true') && ((isset($_GET['pfrom']) && zen_not_null($_GET['pfrom'])) || (isset($_GET['pto']) && zen_not_null($_GET['pto'])))) {
Line #225 : if ((DISPLAY_PRICE_WITH_TAX == 'true') && ((isset($_GET['pfrom']) && zen_not_null($_GET['pfrom'])) || (isset($_GET['pto']) && zen_not_null($_GET['pto'])))) {
Line #356 : if (DISPLAY_PRICE_WITH_TAX == 'true') {
Line #381 : if ((DISPLAY_PRICE_WITH_TAX == 'true') && ((isset($_GET['pfrom']) && zen_not_null($_GET['pfrom'])) || (isset($_GET['pto']) && zen_not_null($_GET['pto'])))) {
admin/products_price_manager.php
Line #872 : if (DISPLAY_PRICE_WITH_TAX == 'true') {includes/classes/order.php
Line #502 : if (DISPLAY_PRICE_WITH_TAX == 'true') {
Line #525 : if (DISPLAY_PRICE_WITH_TAX == 'true') {If in doubt use the Admin -> Developer Tools and do a Lookup in all files for DISPLAY_PRICE_WITH_TAX
Change the "if (DISPLAY_PRICE_WITH_TAX != '0')" to "if (DISPLAY_PRICE_WITH_TAX == '1')". To see why, do a checkout and check the final total- the tax is not included.
Andrew
Andrew Moore
Omnicia Agile Development
www.omnicia.com