TaxPlugin Workaround -> Fixed prices instead of percentage
zandmanneke
2005-07-26 14:07
Okay, this workaround enables you to show/hide fixed prices (order costs etc) instead of percentages. I.e., if your basket total is less then a pre-defined value an extra (fixed) amount will be added. If it's more, it will not be added. You are in control of the fixed value, customers can see whether it is applied or not.
A small warning: Since my onw shop is heavily customized the workaround may not always work on your shop. Basic knowledge of HTML and preferably PHP is advisable... Backup, please do make a backup before you start "messing" around...
Step 1 - Make a backup of your shop Step 2 - Install the TaxAndDiscount Plugin Step 3 - Make a backup of your shop Step 4 - Open taxAndDiscount.js for editing and replace EVERYTHING between //DISCOUNT and // end of DISCOUNT with the following (I left the tags for easy reading):
(This line will add the amount of 5.00 when the basket value is lower then 75.00 which is actually 74.99. You can change the values as you like, leave the center one a 0 (zero))
Step 6 - Open your language file and change the $lang[Discount_description] into a value like: "Order costs" or something similar to your liking.
Step 7 - Open templates/default/taxAndDiscount_print.tpl for editing and replace everything between <!-- BEGIN DISCOUNT --> and <!-- END DISCOUNT --> with the following (I left the tags for easy reading):