kgt Posted August 30, 2006 Author Share Posted August 30, 2006 Good morning, I like this contribution, but... since I'm based in Europe the invoices have to mention all products, costs and promotions excl. vat and have the vat added to the final total. But the Discount Coupon Codes contribution already includes VAT, is there any way to get the amount without VAT incorporated ? Friendly Greetings, Tim, Example: (ands it even confusing for our customers) Item1: 9,92EUR (excl) Discount Coupon x applied: -2,00EUR (incl) VAT 21%: 1,74EUR (vat) Sub-total: 10,00EUR (incl) Shipping: 6,54EUR (incl) Total: 16,54EUR (incl) Minor issue: I use multiple languages and in each language it says "Discount Coupon x applied" Major issue: why is the error reporting in the header ? VAT should only be incorporated if you have display prices with tax in Configuration > My Store set to true. Otherwise it should NOT be adding tax to the discount amount. Your numbers don't seem to be adding up quite right anyways. Email or PM me and I'll help you get it working like it's supposed to. Multiple languages: an oversight with the changes to 2.0. If you're not using 2.0, then you only need to provide the translations. I'll assume you're using 2.0, and that you've made ot_discount_coupon.php files for each language in includes/languages/language/modules/order_total/. If so, you should be able to do a one-line fix. In includes/modules/order_total/ot_discount_coupons.php line 49 replace: $display = MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_FORMAT; with $display = MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY; The constant MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY comes from the language files. You just need to edit those so that they read define('MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY', 'Discount Coupon applied'); for each language you use. (You can then use any of the other variables like [percent_discount] to format your line how you want it.) Error reporting in the header: This is the standard method OSCommerce uses. I didn't add any error reporting, just chose to use what is present in a stock OSC store. If you need something else, you shouldn't find it too terribly complicated to have the errors display elsewhere. You just need a line that checks for a variable called error_message and display it if it's present. Quote Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.