Post by newpt » Wed Oct 12, 2011 11:13 pm

Hi,
Thanks for the quick reply.
I wanted to create for now a field called "nick" (Nickname), so I created in the database

Code: Select all

ALTER TABLE `customer` ADD `nick` VARCHAR( 32 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ;
I also did the same for the 'cedu'.
After that I edited the New_Field_Registration_Form_1.1.xml and add:

Code: Select all

 <!--###CATALOG=>VIEW FILES###-->
                            <!--standar register-->
<file name="catalog/view/theme/default/template/account/register.tpl">
<operation><search position="before"><![CDATA[
          <td><span class="required">*</span> <?php echo $entry_firstname; ?></td>
 ]]></search><add><![CDATA[
 <tr>
          <td><span class="required">*</span> <?php echo $entry_cedu; ?></td>
          <td><input type="text" name="cedu" value="<?php echo $cedu; ?>" />
            <?php if ($error_cedu) { ?>
            <span class="error"><?php echo $error_cedu; ?></span>
            <?php } ?></td>
        </tr>
 <tr>
          <td><span class="required">*</span> <?php echo $entry_nick; ?></td>
          <td><input type="text" name="nick" value="<?php echo $nick; ?>" />
            <?php if ($error_nick) { ?>
            <span class="error"><?php echo $error_nick; ?></span>
            <?php } ?></td>
        </tr>
     ]]></add></operation></file>
and the result was this:
Image

Probably I am missing some code, correct?

Newbie

Posts

Joined
Wed Oct 12, 2011 6:22 pm

Post by marvmen21 » Thu Oct 13, 2011 12:37 am

Hi, if you just wanted to add that field, the only thing you had to do was to add cedu to the database, and then just change the name from cedula to nickname in the language parts. That would add the field just before name, if you want a different possition change the code here
For example, this would add the field before fax

Code: Select all

<file name="catalog/view/theme/default/template/account/register.tpl">
<operation><search position="before"><![CDATA[
          [b]<td><?php echo $entry_fax; ?[/b]></td>
]]></search><add>

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by newpt » Thu Oct 13, 2011 5:49 pm

Hi,

me again O0
I successfully changed the name in the language parts, but I can't insert special chars like 'não' .

Thanks

Newbie

Posts

Joined
Wed Oct 12, 2011 6:22 pm

Post by worldzfree » Fri Oct 14, 2011 7:55 am

hello i created the database entry using the sql statement (i had to change the statement because my customer database is called "occustomer" instead of "customer"). i then did a find/replace in the xml to update the field to the name i want to use ("category") and uploaded it. when i go to test out registration the field is displayed in the registration field as "entry_category" instead of "category." when i enter the data and try to hit submit it doesn't accept whatever i put in the "entry_category" field. is this related to me using custom database prefixes?

-thanks

Newbie

Posts

Joined
Fri Oct 14, 2011 4:45 am

Post by marvmen21 » Fri Oct 14, 2011 9:27 am

Yep, you should check in the parts where the xml is modifying model files and update them with your custom table name. And check the language parts, too. Remember that if you're using another language then you need to change the paths.

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by marvmen21 » Fri Oct 14, 2011 9:29 am

newpt wrote:Hi,

me again O0
I successfully changed the name in the language parts, but I can't insert special chars like 'não' .

Thanks
Why can't you? What happens when you try? I have no problem adding accent marks (tildes) to my language files, and they show ok in the frontpage.

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by robbiecs » Fri Oct 14, 2011 3:00 pm

Hello,
this extension is able for the version 1.4.9.1??

User avatar
Active Member

Posts

Joined
Sat Oct 24, 2009 5:29 am


Post by marvmen21 » Fri Oct 14, 2011 8:29 pm

robbiecs wrote:Hello,
this extension is able for the version 1.4.9.1??
The first version was for 1.4.x, or you could check ckonig version. However, you will have to check through the xml to make sure it's working. Test it, and then check both your vqmod logs and your site logs to see if you are getting any error.

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by newpt » Fri Oct 14, 2011 9:34 pm

marvmen21 wrote:
newpt wrote:Hi,

me again O0
I successfully changed the name in the language parts, but I can't insert special chars like 'não' .

Thanks
Why can't you? What happens when you try? I have no problem adding accent marks (tildes) to my language files, and they show ok in the frontpage.
When I insert the accent marks and then test, the field doesn't show up on the frontend.

Newbie

Posts

Joined
Wed Oct 12, 2011 6:22 pm

Post by worldzfree » Sat Oct 15, 2011 3:04 am

marvmen21 wrote:Yep, you should check in the parts where the xml is modifying model files and update them with your custom table name. And check the language parts, too. Remember that if you're using another language then you need to change the paths.

i actually tried on a new clean install of opencart and created the "cedu" entry and uploaded your xml unaltered and still see "entry_cedu" on the registration page. what else needs to be modified? i followed all of your instructions. btw, i am using the 1.0.4. file from the first post. there are three to choose from but i "think" that is the latest.

Newbie

Posts

Joined
Fri Oct 14, 2011 4:45 am

Post by marvmen21 » Sat Oct 15, 2011 5:10 am

worldzfree wrote:
marvmen21 wrote:Yep, you should check in the parts where the xml is modifying model files and update them with your custom table name. And check the language parts, too. Remember that if you're using another language then you need to change the paths.

i actually tried on a new clean install of opencart and created the "cedu" entry and uploaded your xml unaltered and still see "entry_cedu" on the registration page. what else needs to be modified? i followed all of your instructions. btw, i am using the 1.0.4. file from the first post. there are three to choose from but i "think" that is the latest.
My store default language is spanish, so I guess I forgot to change that back to english.

Look for any reference to spanish and change them to english. For example,

Code: Select all

<file name="catalog/language/spanish/account/register.php">
And the last version is attached some posts above. I couldn't attach another file to the first post cuz the limit is three. The last version adds the field to the affiliate registration, edit, and to the affiliate info page in the backend.

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by robbiecs » Mon Oct 17, 2011 8:43 pm

marvmen21 wrote:
robbiecs wrote:Hello,
this extension is able for the version 1.4.9.1??
The first version was for 1.4.x, or you could check ckonig version. However, you will have to check through the xml to make sure it's working. Test it, and then check both your vqmod logs and your site logs to see if you are getting any error.
HI marvmen21
I have tra with this "new_field_to_registration_form.xml" but it make errore on my vesion... can you help me?

thanks

User avatar
Active Member

Posts

Joined
Sat Oct 24, 2009 5:29 am


Post by mr-bm » Tue Nov 08, 2011 12:53 am

This is great! I have been looking for something like this.

I am having trouble getting the "cedu" field to show up on any of the forms. I created cedu in the database and uploaded the vqMod file for OC 1.5.x to the xml folder (using vqmod version 2.0) but nothing shows up.

Am I missing something?

Newbie

Posts

Joined
Thu May 12, 2011 9:56 pm

Post by marvmen21 » Tue Nov 08, 2011 3:28 am

did you download the latest version? 1.1 http://forum.opencart.com/download/file.php?id=7642
Are you using the default template? Default language? If not, check the paths to the template and language files are correct.

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by mr-bm » Thu Nov 10, 2011 5:02 am

Hi marvmen,

I managed to get it to work and it great!

I want to add the new field to the printable order invoice in the admin. Is there a way to do that?

-Mike

Newbie

Posts

Joined
Thu May 12, 2011 9:56 pm

Post by marvmen21 » Thu Nov 10, 2011 10:12 am

Yeah, sure it's possible. You would have to edit the appropriate files, you could use any of the others fields as an example, and then duplicate the code to add yours.

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by knotty85 » Mon Nov 14, 2011 10:59 pm

This is great marvmen21.

I would also like to add a 'title' field with a drop down with the usual Mr/Mrs/Dr etc.

Any idea on the best way to go about this - using your vqmod as a basis possibly?

Thanks,

Knotty

New member

Posts

Joined
Wed Jul 27, 2011 7:57 pm

Post by i2020vision » Thu Dec 01, 2011 10:08 pm

Great extension but I'm having trouble moving it from (checkout) register.tpl to shipping.tpl (trying to turn it into a store picker for store pickup). I try to move it before/after "comments" but then the continue button doesn't work after the registration section of the checkout.

Any ideas?

New member

Posts

Joined
Fri Nov 18, 2011 12:19 am

Post by marvmen21 » Sat Dec 03, 2011 9:59 am

This will continue to be a free vqmod; However, if you need personalized support and want to contribute a little to opencart, please buy it here for just 10 bucks: http://www.opencart.com/index.php?route ... on_id=4186

Best Regards,
marvmen21
Last edited by marvmen21 on Wed Dec 07, 2011 8:59 pm, edited 1 time in total.

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by Amy078 » Sat Dec 03, 2011 8:18 pm

Hi!

Thank you for this great mod. I want to add an extra field to my registration form but I don't want the field to be required. I managed to remove the validation from the registration page so a customer can register without entering anything into the new field. However if I log in as a Administrator and go to edit a customer, save changes I get a validation error for that new field (it's empty most of the times anyway). I just cant figure it out how to fix it. Could you please give me some directions how to do it? What part of the code needs to be edited to remove the validation of the new field in the admin area (customer edit page)?

Thanks.

Newbie

Posts

Joined
Sat Dec 03, 2011 8:09 pm
Who is online

Users browsing this forum: No registered users and 12 guests