Smijn1 Posted January 5, 2013 Share Posted January 5, 2013 (edited) Hi, When my customers convert their loyalty points into a voucher, the voucher is created for an amount excluding tax. So when the voucher is submitted in the cart, the amount differs from the voucher value that is displayed in the customers account. For example: A loyalty voucher is created for an amount of € 0,50 When the customer submits the code in de cart it shows a value of - € 0,61 (tax = 21% around here) The prices in the shop are shown including tax, it is a retail store. Does anyone know how the make the shop/loyalty module create vouchers incl. tax by default? Thank you very much in advance. Kind Regards. Edited March 17, 2013 by Smijn1 (see edit history) Link to comment Share on other sites More sharing options...
Smijn1 Posted January 13, 2013 Author Share Posted January 13, 2013 Does anyone have any idea? It would really help me out. Regards. Link to comment Share on other sites More sharing options...
Smijn1 Posted January 27, 2013 Author Share Posted January 27, 2013 bump Link to comment Share on other sites More sharing options...
Dallerdkj Posted March 13, 2013 Share Posted March 13, 2013 Same problem... Anyone???? Link to comment Share on other sites More sharing options...
logz05 Posted March 15, 2013 Share Posted March 15, 2013 Anyone solve this???? Link to comment Share on other sites More sharing options...
Dallerdkj Posted March 16, 2013 Share Posted March 16, 2013 Yes. With a hax Dunno if it breaks anything, but heres the solution: Go to classes/CartRule.php: On line 62 change: public $reduction_tax; to: public $reduction_tax = 1; and on line 67: public $highlight; to: public $highlight = 1; Always make a backup of the file. Tell me if it works, i think i solved the prob that way. Link to comment Share on other sites More sharing options...
Smijn1 Posted March 17, 2013 Author Share Posted March 17, 2013 Thanks for your help. That seems to resolve the issue! I have changed line 67 back to what it was, it appears that this only makes the coupon appear on the checkout page. Can be a nice edit though, just not for me right now. Link to comment Share on other sites More sharing options...
rossella21 Posted September 6, 2013 Share Posted September 6, 2013 Hi, When my customers convert their loyalty points into a voucher, the voucher is created for an amount excluding tax. So when the voucher is submitted in the cart, the amount differs from the voucher value that is displayed in the customers account. For example: A loyalty voucher is created for an amount of € 0,50 My loyalty points page.JPG When the customer submits the code in de cart it shows a value of - € 0,61 (tax = 21% around here) Cart.JPG The prices in the shop are shown including tax, it is a retail store. Does anyone know how the make the shop/loyalty module create vouchers incl. tax by default? Thank you very much in advance. Kind Regards. Go to modules/loyality/controllers/front/default.php search this code: $cart_rule = new CartRule(); $cart_rule->code = $voucher_code; $cart_rule->id_customer = (int)$this->context->customer->id; $cart_rule->reduction_currency = (int)$this->context->currency->id; $cart_rule->reduction_amount = LoyaltyModule::getVoucherValue((int)$customer_points); $cart_rule->quantity = 1; $cart_rule->quantity_per_user = 1; and add $cart_rule->reduction_tax = 1; do the same for modules/loyality/loyality-program.php if you dont' want a partial use of the voucher add also this: $cart_rule->partial_use = 0; Link to comment Share on other sites More sharing options...
speedy38 Posted November 7, 2014 Share Posted November 7, 2014 (edited) It works great !How would we get the value of the minimum amount to spend discount voucher always include taxes? (PS_LOYALTY_MINIMAL) Edited November 7, 2014 by speedy38 (see edit history) Link to comment Share on other sites More sharing options...
KevinNash Posted January 12, 2015 Share Posted January 12, 2015 It works great ! How would we get the value of the minimum amount to spend discount voucher always include taxes? I need that too Anyone knows which cart_rule to add to have minimum order amount with taxes instead of no taxes on vouchers generated by the loyalty program ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now