I’ve been trying to set a tax rate or customer class rate for magento based on the discount code used. Im only using the discount code as I can use it for a input.
Does anyone have any idea how this can achieved or any pointers?
Kind Regards
Chris
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is what I ended up doing for this. Should prove quite useful. Copy this file app/code/core/Mage/Tax/Model/Calculation.php to app/code/local/Mage/Tax/Model/Calculation.php then on line 178 theres this function
I’ve changed this to this. Its a hardcoded Discount Code and Product Tax Class Id based on my requirements for this project.
Cheers for the help on this