bedum Posted December 25, 2011 Share Posted December 25, 2011 Hi i have problem with Voucher after upgrading to 1.4.6.2 from 1.4.4.1. My voucher is not working. It does not show any error message of invalid voucher name after press in my custom theme. The amount also din deducted. However, the voucher works well in the prestashop 1.4.6.2 default theme. Also, it works when i changed to One Page Checkout in my custom(own) theme. It just don work in the 5 steps checkout in my own theme. I have tried copied and replaced all the files from the default prestashop theme to my own theme folder. I would assume by doing that my theme should have 100% identical to the default theme. However, i am wrong. The voucher still don work. Any idea? Below are my finding on debug.. In my ParentOrderController.php in controller I think the reason of the voucher problem is that it failed to enter into the following if statement.. if (Tools::isSubmit('submitAddDiscount') AND Tools::getValue('discount_name')) { $discountName = Tools::getValue('discount_name'); If i change it to the default theme or using the One page checkout in my own theme, then it is able to enter into that IF statement. Any idea? thanks Link to comment Share on other sites More sharing options...
bedum Posted December 25, 2011 Author Share Posted December 25, 2011 This is resolved. Make sure that the button's name is correct 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