I've added two custom attributes for customer registration page (Alternate email & Alternate number) in a new module (through : app/code/.../Setup/InstallData.php).
I have designed its 'view' inside a custom theme (by overriding register.phtml). I can now see new fields on the registration page. However the data inside new fields (alternate email and number) is not getting saved inside database.
'customer_entity_int' saves '0' value.. 'customer_entity_varchar' saves nothing..
Here in the screen you can see the value is saved as '0'. The attribute_id 132 is for 'Alternate Contact Number' on the registration page. So I expect the value to hold the data which I'm entering on the frontend registration page.
What am I doing wrong ?
Quiet
, You will find only 1 occurrence and change that toFile
. Now open the fileMagento\Framework\DB\Logger\File
and set$logAllQueries
to true. and refresh the browser and open the generated filevar/debug/db.log
. Find your query and check the query.