If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / How Did You Hear About Us? Referrals Mod [Support Thread]

How Did You Hear About Us? Referrals Mod [Support Thread]

Started by martyndw2005 on 14 May 2006, 10:09 PM · Views: 89,101

Results 281 to 300 of 365
31 May 2011, 9:52 PM
#281
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

How Did You Hear About Us? Referrals Mod [Support Thread]

What code was on your lines 540-559? I use Notepad++ and these lines are not the right place as I see it. I put your code inside the FEC supplied create_account.php replacing the following code:

 // FEC MODIFICATION
      $_SESSION['sendto'] = $_SESSION['cart_address_id'] = (int)$address_id;
    }
    $_SESSION['shipping'] = '';
    

But I get the:
1062 Duplicate entry '1085' for key 'PRIMARY'
in:
[insert into zen_customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created, customers_info_source_id) values ('1085', '0', now(), '0')]

Where did I go wrong?

Live and learn... the Zen way.

1 Jun 2011, 11:44 AM
#282
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

So after all I got it working. For others I have the merged file attached. This is FEC 1.9.5 and How Did You Hear About Us 139hl. The file should be put in your override in includes\modules\YOUR_TEMPLATE\

Live and learn... the Zen way.

7 Jun 2011, 3:24 PM
#283
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

"How Did You Hear About Us" clears the whole form if no selection is made.

A customer brought this issue to my attention:

When all the new account info is filled out correctly BUT no selection was made in the "How Did You Hear About Us?" it just clears out the whole form and no error message is displayed. The customer has to start all over again not knowing what she/he did wrong. VERY BAD for business.. I bet a lot of frustrated potential customers just leave after entering stuff a few times and not seeing any indication what was wrong.

My temporary fix is to go to the Admin- Customer Details -Require Referral and set to false. This way a selection is not enforced and the account is created no matter what. Not perfect but I prefer not to get a referral instead of loosing customers.

Where could the clearing prevention of the form and proper error message display be set?

Live and learn... the Zen way.

7 Jun 2011, 4:03 PM
#284
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

Ok, got the error message to display by changing the two:
add('xxxx'
to
add_session('xxxx'

in this section:

//rmh referral start
    if ((REFERRAL_REQUIRED == 'true') && (is_numeric($source) == false)) {
        $error = true;

        $messageStack->add_session('login', ENTRY_SOURCE_ERROR);
    }

    if ((REFERRAL_REQUIRED == 'true') && (DISPLAY_REFERRAL_OTHER == 'true') &&($source == '9999') && (!zen_not_null($source_other)) ) {
        $error = true;

        $messageStack->add_session('login', ENTRY_SOURCE_OTHER_ERROR);
    }
//rmh referral end

Now the error message stack displays but the form still gets cleared/reset. How can I prevent this resetting? It does not happen with any other field empty....

Live and learn... the Zen way.

8 Jun 2011, 12:17 PM
#285
honeypot avatar

honeypot

New Zenner

Join Date:
Jan 2007
Posts:
55
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

Hi,
I saw the same issue with my site aswell. I posted a partial solution using java script error which does not clear the data once entered. However, it does not work if the customer selects the 'other' field. If anyone can help to complete the solution then I would be greatful as it is beyond my expertise.

See partial solution I posted before
I manage to do some of the work for the java script error as follows:

**1. First install How did you hear about us add on

  1. Then find

** /includes/languages/YOURTEMPLATE/english.php

Search for:
define('ENTRY_REFERENCE_FROM', 'How did you hear about us?');

…right after that line enter the following…

define('ENTRY_REFERENCE_FROM_ERROR', 'You must select a choice from How did you hear about us? pull down menu.');

3. Then find
/includes/modules/pages/create_account/jscript_form_check.php

Search for:

check_select("country", "", "<?php echo ENTRY_COUNTRY_ERROR; ?>");

…right after that line enter the following…

check_select("source", "", "<?php echo ENTRY_REFERENCE_FROM_ERROR; ?>");

That should give a java script error for the dropdown menu itself.

However, I need some help to do a javascript error if someone chooses the "other" option from the how did you hear about us drop down menu but leaves the "other" field underneath blank. Any help would be greatly appreciated.

21 Jun 2011, 1:39 PM
#286
dmagic avatar

dmagic

Totally Zenned

Join Date:
Oct 2008
Posts:
594
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

I'm try to merge the file

costumers.php with costumers.php from the Mod - wholesale price

Without success. Please help .

Costumers.php - Mod - wholesale prices

costumers.php - Mod how_did_you_hear_about_us_v139h

21 Jun 2011, 2:06 PM
#287
dmagic avatar

dmagic

Totally Zenned

Join Date:
Oct 2008
Posts:
594
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

Sorry but i have more q .

This can merge with Super order Mod ?

Need Merge orders.pho with super_orders.php

or just some lines ?

Thank a lot .

30 Jun 2011, 3:23 PM
#288
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

Ok I am completely stumped and hope someone can help?!?!

Mind you I develop zencart websites and can usually find anything....

I have uploaded this mod.....several times....but I CANNOT get any fields under the extra tools to define the sources for the how did you hear about us dropdown?

The 2 options that fall under configurations are fine....its the extras box that is not working for me......

What the heck am I missing here? THANK YOU!

Jill || I Love Zen Cart Templates || 2 Dogs Design
I Love To Help But Let's Keep It Public Please To Help Others!

30 Jun 2011, 5:24 PM
#289
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

I have installed this on to about 10 of our sites. Around 5 worked 100% first time others didnt and I could not find out why so eventualy re-installed everything and they are all working fine now.

1 Jul 2011, 12:10 AM
#290
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

OK I was just being dumb...forgot client has admin controls and I forgot --- the box was there just had to give myself access!!! UUGGHH

Jill || I Love Zen Cart Templates || 2 Dogs Design
I Love To Help But Let's Keep It Public Please To Help Others!

1 Jul 2011, 12:41 PM
#291
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

Ok I have one more question....not sure if anyone else has run into this?

I have installed the How Did You Hear About Us mod and i have FEC checkout installed - it is working perfectly for people that create an account....and I have the dropdown appearing on the No Account page for those that do not create an account ---- but it is not transferring the selection to the database.......again it is only not working for NO ACCOUNT users....can you offer any advice on this to get this work?

I did see one post in this thread but the FEC does not have the file that was mentioned and I cannot find any other relevant files that would be needed to pull this into the database....

Jill || I Love Zen Cart Templates || 2 Dogs Design
I Love To Help But Let's Keep It Public Please To Help Others!

7 Jul 2011, 3:56 PM
#292
jdw1979 avatar

jdw1979

Zen Follower

Join Date:
Jun 2009
Location:
NC
Posts:
174
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

Totally NOT trying to hijack someone's thread but, is there a support thread for this entire module before I go completely off topic?

Johnathan D. Walker
Wilburn Medical USA

7 Jul 2011, 4:12 PM
#293
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

jdw1979:

Totally NOT trying to hijack someone's thread but, is there a support thread for this entire module before I go completely off topic?

Jd,

What issue are you having trouble with on this module?

7 Jul 2011, 4:39 PM
#294
jdw1979 avatar

jdw1979

Zen Follower

Join Date:
Jun 2009
Location:
NC
Posts:
174
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

I am trying to add the "how did you hear about us" data into the "Office use only" portion of the emails when a customer registers. I know that I'll have to modify "/includes/functions/functions_email.php" and that I'll have to make calls to both the "zen_sources" and the "zen_sources_other" tables...but I'm lost as to how to actually code it...please help?

:cry:

Johnathan D. Walker
Wilburn Medical USA

8 Jul 2011, 10:31 PM
#295
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

Does anyone have this working with the NO ACCOUNT option? I am desperate for a solution here.....I have tried everything I cna think of but it is not capturing the data for non-account holders and I cannot think of any reason it won't...I have the code on the no_account page......

:(

Jill || I Love Zen Cart Templates || 2 Dogs Design
I Love To Help But Let's Keep It Public Please To Help Others!

2 Aug 2011, 3:28 PM
#296
lindsey80 avatar

lindsey80

New Zenner

Join Date:
Apr 2010
Location:
Essex, UK
Posts:
77
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

jill8026:

Does anyone have this working with the NO ACCOUNT option? I am desperate for a solution here.....I have tried everything I cna think of but it is not capturing the data for non-account holders and I cannot think of any reason it won't...I have the code on the no_account page......

:(

Same here, cusomers creating an account, this mod appears fine, but if they use fast and easy checkout (no account created) this referral option does not apply. Any solutions would be great. I know someone posted a zip file but they said there were errors on it??

Thanks

17 Aug 2011, 4:11 PM
#297
keg910 avatar

keg910

New Zenner

Join Date:
Aug 2011
Posts:
10
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

My "admin" folder is not "admin"
Do I need to change anything because there are two folders in the download. Includes and admin. Does the admin folder need to be changed or anything inside it?

Thanks

Karl

17 Aug 2011, 5:03 PM
#298
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

keg910:

My "admin" folder is not "admin"
Do I need to change anything because there are two folders in the download. Includes and admin. Does the admin folder need to be changed or anything inside it?

Thanks

Karl

You need to change your admin folder name for security purposes.

You can change anything, but when you change your admin folder name. For an example:

original folder name /admin
and change it to /store or /storemanager

you need to go to your configuration file in your which is admin/config.php you need help let us know and we will help you.

17 Aug 2011, 5:53 PM
#299
keg910 avatar

keg910

New Zenner

Join Date:
Aug 2011
Posts:
10
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

ok, right now my configuration.php is in a folder called zc_admin
That's what the folder was called after I installed Zen Cart.

17 Aug 2011, 5:56 PM
#300
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: How Did You Hear About Us? Referrals Mod [Support Thread]

keg910:

ok, right now my configuration.php is in a folder called zc_admin
That's what the folder was called after I installed Zen Cart.

ok,, you still need to change that folder name.