Vee.K727 Posted February 20, 2017 Share Posted February 20, 2017 I'm trying to add some custom fields to OPC page using the tutorial at prestacraft.com. Now I have the fields showing which I got by adding them to /themes/mytheme/order-opc-new-account.tpl. In controllers/front/AuthControllers.php I added this line inside protected function processSubmitAccount() but it didn't work PrestaShopLogger::addLog(Tools::getValue('height')); And even tried this PrestaShopLogger::addLog('Test'); But got nothing in the ps_log table. Any ideas? Link to comment Share on other sites More sharing options...
Vee.K727 Posted February 20, 2017 Author Share Posted February 20, 2017 I also want to know where does the data go when I submit the form. The action attr in my form is "domain.com/login" Link to comment Share on other sites More sharing options...
Vee.K727 Posted February 20, 2017 Author Share Posted February 20, 2017 So the logger is working. Turns out I was using one page checkout and AuthController wasn't getting called for it. I tried it from OrderOpcController.php and it worked. 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