cdwebman Posted September 14, 2014 Share Posted September 14, 2014 Hello, I need in Cart_Rules when the action is Percent % also the ability to choose including or excluding taxes. Default behavior is excluding taxes. It's nice if there can be the choice in of excluding taxes, but maybe a more easy solution for me, is that the default is always including taxes. But i can't figure out where to change this Anybody any idea ? :-) Thanks from The Netherlands, Jan. Link to comment Share on other sites More sharing options...
cdwebman Posted September 14, 2014 Author Share Posted September 14, 2014 I found a solution myself : I want the discount ALWAYS including taxes, and change the template at : admin\themes\default\template\controllers\cart_rules\actions.tpl as follow : <div class="col-lg-4"> <select name="reduction_tax" > <!-- changed Jan Smeelen / Sept 2014 : original code: <option value="0" {if $currentTab->getFieldValue($currentObject, 'reduction_tax') == 0}selected="selected"{/if}>{l s='Tax excluded'}</option> <option value="1" {if $currentTab->getFieldValue($currentObject, 'reduction_tax') == 1}selected="selected"{/if}>{l s='Tax included'}</option> --> <option value="1" selected="selected">{l s='Tax included'}</option> </select> </div> That way the field "reduction_tax" is always 1 (true) I tested it, and it seems to work in the cart it's better to put the changes in de /override/ map, but i cant find the proper map to make this work, so instead i changed the core file... 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