OXID Community Forum

> International Forums > Developers > Extending the registration
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: Extending the registration


Reply
 
Thread Tools Display Modes
#Top   #1  
Old 04-15-2010, 02:35 PM
david's Avatar
david david is offline
Member
Join Date: Oct 2008
Posts: 34
david is on a distinguished road
Default Extending the registration

Hello fellow OXIDians,

I have another question which might be a little tricky to answer. At registration, we need to add an additional field "Where did you hear about us?" to the registration form. Adding the field is dead easy by either modifying register.tpl or user.tpl.. but how can I get OXID to store this value in the database along with all the other user details?

I assume I will have to create some sort of module and extend/override the register::registeruser() methods or one of its inherited parent methods. The thing is... I have no idea how. I've looked through the code and can't actually find the point where OXID writes to the database. Has anyone done this before and is willing to give me a few pointers?

Thanks and regards

Dave
__________________
GN2 netwerk Dave Holloway (Programmierer)
PGP Public Key: http://www.gn2-netwerk.de/files/dh.asc
Reply With Quote
#Top   #2  
Old 04-16-2010, 09:07 AM
wanis wanis is offline
Junior Member
Join Date: Feb 2010
Posts: 25
wanis is on a distinguished road
Default Re: Extending the registration

Hi,

simply add to you database new fields and clean the tmp folder
after that you can use in templates yours new variable oxuser__newfiledname
Reply With Quote
#Top   #3  
Old 05-02-2010, 09:05 PM
nullzehn's Avatar
nullzehn nullzehn is offline
Junior Member
Join Date: May 2009
Posts: 21
nullzehn is on a distinguished road
Default Re: Extending the registration

Hi wanis,

i have got the same problem: want to extend registration form with a must-have-field 'confirm age'.

Database-field is already set up (named OXCHECKAGE), template is extended with an lableled checkbox and in admin-area oxuser__oxcheckage was defined as must-have. I cleaned up the tmp-folder and oxidshop tells me to fill out all must-have-fields - which is absolutely correct and fine.
BUT: oxid does not recognize the new checkbox-field in the registration-form and because of that, I can't send any registration due to missing must-have-fields (error-message).

How do I setup a checkbox-field defined as must-have in the template? any idea?
currently it looks like this:

Code:
<input type="checkbox" name="invadr[oxuser__oxcheckage]" value="[{if $oxcmp_user->oxuser__oxcheckage->value }]1[{else}]0[{/if}]" [{if $oxcmp_user->oxuser__oxcheckage->value }]checked[{/if}]>&nbsp;
                    <b>...some text...</b><span class="req">*</span>
Thanks for any hint!
Reply With Quote
Reply

Bookmarks

Tags
registrierung

« Previous Thread | Next Thread »
Thread Tools
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
extending the language array artjom Developers 9 11-14-2012 04:26 PM
extending oxconfig rdx Developers 2 08-28-2012 11:53 AM
Benachrichtigung bei Newsletter Registration Peter B. Allgemeines 2 11-01-2010 12:59 PM
Is there a bug in the registration in CE, or Am I doing something wrong? betatest General 16 05-28-2010 04:17 PM
Zwangsfelder bei der Registration danillo Installation und Konfiguration 2 12-11-2008 04:22 PM

All times are GMT +2. The time now is 07:40 PM.