kieran_mullen Posted December 15, 2009 Share Posted December 15, 2009 I could add it as a buying option but most peopel would just buy whatever is defaulted so the numbers would be a bit off. basically when checking out I would like to ask users if they are a student or teacher? perhaps that is a profile option box I can get put in somehow? thank you Link to comment Share on other sites More sharing options...
burt Posted December 15, 2009 Share Posted December 15, 2009 At create account stage, or per order? Link to comment Share on other sites More sharing options...
Bryce F Posted December 15, 2009 Share Posted December 15, 2009 I actually have the exact same feature on my website (although mine is a feature that the admin has to unlock for the customer). I basically created a new BOOL field in the customers database called customers_teacher. I then modified the create/edit account queries in both the user and the admin section to allow for this field to be assigned/changed. Link to comment Share on other sites More sharing options...
kieran_mullen Posted December 15, 2009 Author Share Posted December 15, 2009 Create Account Stage perhaps I could just modify the english.php file that asks the user for the Sex and just change that to student or faculty At create account stage, or per order? Link to comment Share on other sites More sharing options...
burt Posted December 15, 2009 Share Posted December 15, 2009 That would work, but for flexibility I'd prefer to go with the suggestion of Bryce F - that way if you ever want to start using M/F you can still do so. It is not hard to add in an extra question on the create_account stage. Just look for how it's done for the "gender" question, copy it and rename appropriately. Link to comment Share on other sites More sharing options...
♥FWR Media Posted December 15, 2009 Share Posted December 15, 2009 I would add a new input field to the create account. I would then add a field to the end of the customers table with default NULL this way you will not kill any already existing queries. Adding fields that are not null creates all sorts of problems. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.