gumbotron Posted July 30, 2014 Share Posted July 30, 2014 (edited) Hi, I've just begun working with Prestashop 1.6 and I'm impressed. Thank you! I'm trying to add a new unrequired field to the registration form, "certagency", using this tutorial for 1.5 (couldn't find one for 1.6, my version). The tutorial had some slight differences in line numbers but otherwise it was the same, and I followed the update at the end, too. My problem is when I register with the new field, everything seems to be good (in regular mode) but there is no info in the database for the new field. I tracked down the query from MySQL logs and the field is being sent via the query but with either NULL or blank data, depending on whether I set the field in MySQL to allow NULL values or not. I've tried both varchar and text. I set PS_MODE_DEV_ to true in defines.inc.php and now I get an error when I register: Undefined variable: certagency in /var/www/mystoredomain.com/controllers/front/AuthController.php on line 434. Line 434 is: $customer->certagency = $certagency; from step 3 of the linked tutorial. I've quadruple checked for errors but the instructions were followed properly. Can anyone help me? I don't know where to go from here, as people say that tutorial worked fine for them. Is 1.6 that different from 1.5? I am really wanting to understand the structure and logic of PS which is why I'm not simply buying a module for this. Thanks!! Edited July 30, 2014 by gumbotron (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted August 1, 2014 Share Posted August 1, 2014 Hi! Try checking my tut, not sure which one you followed as I can't see any link http://nemops.com/extending-prestashop-objects/ Tested and working with 1.6 too 1 Link to comment Share on other sites More sharing options...
gumbotron Posted August 1, 2014 Author Share Posted August 1, 2014 Thanks, Nemo! I'll give it a go. I think I found your site early on in my research but it must have gotten lost in the shuffle. Link to comment Share on other sites More sharing options...
gumbotron Posted August 3, 2014 Author Share Posted August 3, 2014 Nemo, Wow, your site is a trove of amazing PrestaShop knowledge! Thank you so much. 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