Post by WebDev22 » Sat Jul 06, 2013 3:22 am

Here I go, two years later starting to implement this on another site (1.5.5.1). I totally forgot how I did this back in 2011, but hopefully this won't take too long. Is this the correct file to work with?

customer_expert_id.xml
(16.72 KiB) Downloaded 265 times

Active Member

Posts

Joined
Tue Apr 05, 2011 8:35 pm

Post by WebDev22 » Sat Jul 06, 2013 6:25 am

I saw these instructions referenced in another discussion. My guess is that it can't be applied to 1.5.5.1, but I thought I'd check.

http://forum.opencart.com/viewtopic.php?f=29&t=2648

Active Member

Posts

Joined
Tue Apr 05, 2011 8:35 pm

Post by kelemvor » Sat Jul 06, 2013 10:05 am

If you have some built in fields that you don't use, then all you have to do is change the language files to make them say what you want them to. No database work or anything else. Just that the DB field won't match what it really is, but no one will ever see that anyway.

Active Member

Posts

Joined
Fri Oct 12, 2012 6:58 am

Post by WebDev22 » Sat Jul 06, 2013 10:17 am

kelemvor wrote:If you have some built in fields that you don't use, then all you have to do is change the language files to make them say what you want them to. No database work or anything else. Just that the DB field won't match what it really is, but no one will ever see that anyway.
That's an interesting idea. The thing is though, we'd like to assign a customer to the wholesale customer group, based on how that one question is answered. The absolute perfect scenario would be to have a new checkbox field. If any of the checkboxes are checked, they get assigned to the wholesale customer group.

Pool or Pool Company Owner (check all that apply):
a. Pool Owner (homeowner)
b. Recreational/Neighborhood Pool Owner
c. Pool Builder
d. Pool Supply Store

Active Member

Posts

Joined
Tue Apr 05, 2011 8:35 pm

Post by kelemvor » Sat Jul 06, 2013 10:38 am

That's exactly what I did. I took the "Company Name" field ad changed the language files to say "School Name". I then changed the create account page and turned it into a dropdown box. I didn't do anything with assigning to groups since I don't use that feature but you can turn any field into a dropdown by editing the html.

I'm not on my computer right now but I can upload my vqmod file as an example if you'd like.

Active Member

Posts

Joined
Fri Oct 12, 2012 6:58 am

Post by WebDev22 » Sat Jul 06, 2013 10:43 am

kelemvor wrote:That's exactly what I did. I took the "Company Name" field ad changed the language files to say "School Name". I then changed the create account page and turned it into a dropdown box. I didn't do anything with assigning to groups since I don't use that feature but you can turn any field into a dropdown by editing the html.

I'm not on my computer right now but I can upload my vqmod file as an example if you'd like.
That would be great. I really appreciate that.

Active Member

Posts

Joined
Tue Apr 05, 2011 8:35 pm

Post by kelemvor » Sat Jul 06, 2013 11:23 am

Here's the file I put together. There are 3 places you can register so 3 places you need the dropdown items.
Then the file to contain the text to display.

Hopefully this helps you get started. Can just sub the various field names for any other field names you want to change around.

Attachments


Active Member

Posts

Joined
Fri Oct 12, 2012 6:58 am

Post by WebDev22 » Sat Jul 06, 2013 12:26 pm

Thanks! I'll let you know how it goes.

Active Member

Posts

Joined
Tue Apr 05, 2011 8:35 pm

Post by WebDev22 » Sat Jul 06, 2013 1:23 pm

This is great. I uploaded your file as-is and see the new fields. The fields are currently text fields. Do you know how I'd convert them to checkboxes? Here's the registration page:
http://198.154.218.69/~dtb3/index.php?r ... t/register

Active Member

Posts

Joined
Tue Apr 05, 2011 8:35 pm

Post by WebDev22 » Sat Jul 06, 2013 2:58 pm

Whoa! I just realized something. By checking both customer groups (default and wholesale) under Settings > Options > Account, you get a field called "Business Type" with radio buttons for both customer groups. This appears to be just what I was looking for. I just need to figure out how I can edit the text for those two selections.

Active Member

Posts

Joined
Tue Apr 05, 2011 8:35 pm

Post by Nawid » Sat Sep 14, 2013 4:10 pm

Dear,

I would like to add new field to registration field and change it to housenumber field for OC version 1.5.6.
I've download several files, but not succeeded.

Could you please tell me which file to download?

Best regards,
Nawid

User avatar
New member

Posts

Joined
Fri Aug 19, 2011 6:47 am
Who is online

Users browsing this forum: No registered users and 3 guests