Is there a way to have another source display a user's input on the order like the 'other' option does?
I would like to list a source such as 'Existing customer' or 'Another User' and then have the current customer input the email address of the referring customer/user in the text box below. That way I could track my referring customers and maybe reward them with a coupon or something.
Since I'm not any good at coding, for now I've just changed the display of the 'Other' option to 'Other - or- Existing Customer' and changed the title above the text box to have the input displayed in the admin settings. It looks a little strange, but it works for now. Might become a problem if I decide that I want more than just two options that allow for customer input in the future.
Comments
Comment #1
smartparty commentedSubscribing.
I found this thread as I have a very similar requirement, I'd like to give the option 'Magazine' for example and then the user to input by text the specific magazine name.
Excellent module, keep up the good work.
Comment #2
adamo commentedI want to do this but I'm going to have to give some thought to how best to go about it. I think what I might do is for each individual Referral Source have an option for "Request additional text input" or something like that, and then allow you to specify the label/description/etc to be used for the "Other" text box. So it could be set up so that if a user selected the "Another Customer" referral source, they would see a text box labeled "Please type in the customer's email address". Or if the customer selected "Magazine" it would prompt them for the name of the magazine or if they selected "Another website" it would prompt them for the name of the website. Need to think about it some more though. Feel free to post any suggestions you have.
Comment #3
mornel commentedI solved this problem by adding $arg1->referralsource['rid'] = $arg1->referralsource['rid'] + 1; in function referralsources_ubercart_uc_checkout_pane
function referralsources_ubercart_uc_checkout_pane($op, &$arg1, $arg2) {
//PS
$arg1->referralsource['rid'] = $arg1->referralsource['rid'] + 1;
array of options was postponed by a value - if you select the first value was 0 and the preview show nothing
Comment #4
lunk rat commentedI don't understand why there is a select list. How do you add items to the select list? It looks to me like "Other" is the only option in the list - no matter what I do. Is there a way to add items to the list, such as "Search Engine" "Phone Books" etc.?
Am I missing something?
Comment #5
lunk rat commentedHAH nevermind. I did not see the admin/content/referralsources/add page
I only saw admin/settings/referralsources and I became confused.
Maybe usability would be improved if you added a help link on each of these pages to point users in the right direction.