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 261 to 280 of 365
30 Jan 2011, 10:18 AM
#261
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

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

Nope, my create_account.php file is in my overrides system. I am running Super Orders v3.0 and I think that may be the problem. Does anyone else have Super Orders installed that is working with this mod?

HELP. Thank you.

30 Jan 2011, 6:52 PM
#262
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

It is UNLIKELY that Super Orders is a cause for your issues with this mod.. But if you are convinced that this is the issue, the easiest way to verify this is to install Super Orders OR if you have not done the optional update changes for Super Orders simply see if the issue you have with this module is present when using the default orders.php

joyjoy:

Nope, my create_account.php file is in my overrides system. I am running Super Orders v3.0 and I think that may be the problem. Does anyone else have Super Orders installed that is working with this mod?

HELP. Thank you.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

30 Jan 2011, 7:43 PM
#263
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

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

I don't know what it is. But I've spent hours comparing and merging and have tried looking into several different things all with no success. I currently have Ty Tracker, Super Orders(with optional files installed), and Edit Orders, all of which seem to touch on similar files.

As it is right now, I am able to see the "Referred by:" heading in the customer details. When I look into "Referral Sources" I can see 147 listed under others, but when I click on others, it comes up blank (0 of 0). I see that most of the others have found the solution with the create_account.php in the overrides folders...but this isn't my issue. I have verified that it is in my overrides folder and I have even tried to change the default file just to make sure it wasn't accidentally pulling from that source. Still nothing. :frusty:

i would appreciate if someone could help. Does anyone have these mods installed (Tracker, Edit, Super) and is working with the "How did you hear about us" add on?

Or better yet, can anyone post their merged files that are working with this mod? That might help too. Thank you again.

4 Feb 2011, 11:03 AM
#264
scupoli avatar

scupoli

New Zenner

Join Date:
Mar 2006
Location:
USA
Posts:
77
Plugin Contributions:
0

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

I've emailed one of the people involved, hopefully they will reply and we can fix this mod. It's a great idea, just wish it worked.

4 Feb 2011, 12:54 PM
#265
scupoli avatar

scupoli

New Zenner

Join Date:
Mar 2006
Location:
USA
Posts:
77
Plugin Contributions:
0

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

Ok as far as I know it has nothing to do with SQL entries.

It's mainly to do with incorrectly merging files and the placement of files.

Make sure your "includes/templates/YOUR_TEMPLATE/modules" directory has the original file "create_account.php" from the actual mod. Just override what you have on your server. I know! I know!, it sounds crazy but it works!

Also make sure "create_account.php" is also in your "includes/templates/template_default/modules" directory as well.

now it should work with 1.3.9h.

4 Feb 2011, 9:46 PM
#266
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

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

Okay, so I'm back here again giving this another shot...

Thanks for the follow up, just a couple of questions. I have my files set up this way:

includes/modules/YOUR_TEMPLATE/create_acount.php
includes/modules/create_account.php

Do I need to rearrange my files to the placment direction that you gave:
includes/templates/YOUR_TEMPLATE/modules/create_account.php
includes/templates/template_default/modules/create_account.php

Also you stated that to make sure that the "create_account.php" is also in the template_default, this would be the create_account.php file from the mod right? Not the original file?

Thank you again.

4 Feb 2011, 10:23 PM
#267
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

joyjoy:

Does anyone have these mods installed (Tracker, Edit, Super) and is working with the "How did you hear about us" add on?
Sorry to keep beating a dead horse, but errors with this module have nothing to do with Super Orders, Edit Orders or Ty Package Tracker.. From the readme:

Core files that are modified are:
admin/customers.php
admin/orders.php
admin/includes/languages/english/customers.php
includes/modules/create_account.php
includes/templates/YOUR TEMPLATE/templates/tpl_modules_create_account.php

Of these files the ONLY file that this module has in common with the two of the three modules is the file highlighted in red.

Both Edit Orders and Ty Packager Tracker have required modifications to orders.php. Let me make sure it's clear.. The changes to orders.php WOULD IN NO WAY affect the functionality of this module unless when applying the changes to orders.php required for this module, the merging was done incorrectly.

Additionally the modifications to orders.php required by this module must also be applied to super_orders.php in order to see the referral data in Super Orders..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

4 Feb 2011, 10:26 PM
#268
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

Simple answer.. You never ever replace what's in default_template with ANY modfied version of the same file. The default_template is ALWAYS and ONLY supposed to be the original Zen Cart file NEVER a modified version of the file.. Modified files must go into the proper override template folder. Here are some FAQs which might help you better understand the Zen Cart overrride system..

Understanding the Override System
Writing contributions -- often-overlooked override capabilities

joyjoy:

Okay, so I'm back here again giving this another shot...

Thanks for the follow up, just a couple of questions. I have my files set up this way:

includes/modules/YOUR_TEMPLATE/create_acount.php
includes/modules/create_account.php

Do I need to rearrange my files to the placment direction that you gave:
includes/templates/YOUR_TEMPLATE/modules/create_account.php
includes/templates/template_default/modules/create_account.php

Also you stated that to make sure that the "create_account.php" is also in the template_default, this would be the create_account.php file from the mod right? Not the original file?

Thank you again.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

4 Feb 2011, 11:29 PM
#269
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

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

Hi Diva,

Thanks for the input. I checked the admin/orders.php file and the change for "how did you hear..." is there. I also checked the super_orders.php file and it's there as well. The field "Referred By:" does show up in Super Orders but there is no entry. The field also shows up in the customers edit file with the same result.

In admin my "Referral Sources" shows others with 145 entries, when I select it to view those entries...it's gone. I'm at my wits end, it should be simple...but I don't know what else to do. :no:

4 Feb 2011, 11:33 PM
#270
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

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

DivaVocals:

Simple answer.. You never ever replace what's in default_template with ANY modfied version of the same file. The default_template is ALWAYS and ONLY supposed to be the original Zen Cart file NEVER a modified version of the file.. Modified files must go into the proper override template folder. Here are some FAQs which might help you better understand the Zen Cart overrride system..

Understanding the Override System
Writing contributions -- often-overlooked override capabilities

Thank you. I understand the overrides system, I was clarifying the instructions that were posted here earlier...because I was going to say that as far as I know, modified files should only be placed in an override folder. But I did try to stick my override create_account.php for this mod in the default folder just to see if my results would change...but it didn't.

I have replaced the create_account.php default file in the default folder. :smile:

4 Feb 2011, 11:44 PM
#271
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

joyjoy:

Thank you. I understand the overrides system, I was clarifying the instructions that were posted here earlier...because I was going to say that as far as I know, modified files should only be placed in an override folder. But I did try to stick my override create_account.php for this mod in the default folder just to see if my results would change...but it didn't.

I have replaced the create_account.php default file in the default folder. :smile:And you are absolutely right..:smile: UNLESS the file is NOT a core Zen Cart file, you should never replace a core file in the default_template folder without using an override.. (even if a module's instructions or anyone else:blush: suggests otherwise..)

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

4 Feb 2011, 11:46 PM
#272
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

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

Okay,cool. Thanks for clearing that up. It'll be one less mess that I can get myself into. :dontgetit

5 Feb 2011, 12:37 AM
#273
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

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

Anymore ideas anyone?

28 Feb 2011, 11:54 AM
#274
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

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

Hi everyone, I FINALLY got this working! Just one quick question. What would I add to my files if I wanted the "Referred By" field on the customer page.

I want the referred by filed to be visible right away instead of having to go into the details of the customer account.

Thank you!

20 Mar 2011, 11:00 PM
#275
tym27 avatar

tym27

New Zenner

Join Date:
Mar 2011
Posts:
2
Plugin Contributions:
0

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

Been happily using the "How Did You Hear About Us" add on without any problems or issues.

Now, I'd like to include the referral source response in the order confirmation email (mainly for the sake of the copy sent to the admin, but it won't hurt for the customer to see it too). Is this possible? How would I do it?

Can anybody help with this? Thanks so much!

7 Apr 2011, 8:04 AM
#276
fepb avatar

fepb

New Zenner

Join Date:
Mar 2007
Posts:
75
Plugin Contributions:
0

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

After hours scouring this forum and the mod files, I just wanted to share a solution I've found for:

Admin showing --none-- under "Referred by" regardless of selected source upon account creation.

I'm using Fast and Easy Checkout by Numinix so this probably applies to those of you using COWOA as well.

Found this post on the Numinix forum and replaced lines 540-559 in /modules/MY_TEMPLATE/create_account.php with the following:

// FEC MODIFICATION WITH REFERRAL CODE (HOW DID YOU HEAR ABOUT US MOD)
      $_SESSION['sendto'] = $_SESSION['cart_address_id'] = (int)$address_id;
    }
    $_SESSION['shipping'] = ''; 
    $sql = "insert into " . TABLE_CUSTOMERS_INFO . "
                          (customers_info_id, customers_info_number_of_logons,
                           customers_info_date_account_created, customers_info_source_id)
              values ('" . (int)$_SESSION['customer_id'] . "', '0', now(), '" . (int)$source . "')";

    $db->Execute($sql);
     if ($source == '9999') {
         zen_db_perform(TABLE_SOURCES_OTHER, array('customers_id' =>  $_SESSION['customer_id'], 'sources_other_name' => $source_other));
      }
//      $sql = "insert into " . TABLE_CUSTOMERS_INFO . "
//                          (customers_info_id, customers_info_number_of_logons,
//                           customers_info_date_account_created)
//              values ('" . (int)$_SESSION['customer_id'] . "', '0', now())";
//
//      $db->Execute($sql);
//rmh referral end
```The referral source now shows up in the customers table as well as order details page.

Good luck.

Versions: 1.3.9h and FEC 1.9.4.
21 May 2011, 1:38 AM
#277
fepb avatar

fepb

New Zenner

Join Date:
Mar 2007
Posts:
75
Plugin Contributions:
0

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

That number "16" under "Other" is most likely the number of orders you received before installing this mod. Because there were no referral sources at the time of those orders, they've been automatically allocated to "Other."

The only way to edit this as far as I know is to go into your database, look for the table "customers_info" and edit the values of "customers_info_source_id".

If that 16 bothers you, you could create a new referral source (under Extras -> Referrals) named something along the lines of "Pre-Referral Mod" and assigning the id of that source to those 16 customers under "customers_info_source_id".

But be very careful when working with the database! Make a backup before messing with it. No guarantees/warranties that this will work. I'm no expert; just another user who recently installed this mod and spent hours trying to get it to work. :p

I had over 300 "Others" when I installed this mod and decided to just leave it. If your customers enter their own custom source under "Other" you can see those entered sources by clicking on "Other" in Extras -> Referral Sources which will open a new page showing their entries.

24 May 2011, 3:30 AM
#278
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

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

Hello People!
I am another one having issues getting the "how did you hear about us" mod to work. The installation appeared to go smoothly. I have double and triple checked that I got all the files in the correct places. I installed the sql through Tools>Install SQL and uploaded. I am running 1.39d at hoopclothes dot com.

On making a new customer acct the referral drop down shows up and appears to function fine, but I have no idea where the data for this is going. It isn't showing up on the customer's details nor in the extras>referrals or referral sources. The "Other" count goes up so I know new customers are registering somewhere. But if you click other the sources don't show up so ?

Did anyone have a similar problem with this that they solved? I did read through this entire thread, but most of the posts seem to be from much older versions of the mod. And I didn't see any applicable solutions to what is going on with my site. Thanks for your help!

27 May 2011, 4:56 PM
#279
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

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

To update - I upgraded my cart to 1.3.9h in case that was causing the issue.
The mod still isn't working correctly, no data showing up in back end. See previous post...

If it helps the other mods I've got installed are: Image Handler2, Newsletter Subscribe 2.2 and Simple Google Analytics.

31 May 2011, 9:46 PM
#280
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]

fepb:

After hours scouring this forum and the mod files, I just wanted to share a solution I've found for:

Admin showing --none-- under "Referred by" regardless of selected source upon account creation.

I'm using Fast and Easy Checkout by Numinix so this probably applies to those of you using COWOA as well.

Found this post on the Numinix forum and replaced lines 540-559 in /modules/MY_TEMPLATE/create_account.php with the following:

// FEC MODIFICATION WITH REFERRAL CODE (HOW DID YOU HEAR ABOUT US MOD)
$_SESSION['sendto'] = $_SESSION['cart_address_id'] = (int)$address_id;
}
$_SESSION['shipping'] = '';
$sql = "insert into " . TABLE_CUSTOMERS_INFO . "
(customers_info_id, customers_info_number_of_logons,
customers_info_date_account_created, customers_info_source_id)
values ('" . (int)$_SESSION['customer_id'] . "', '0', now(), '" . (int)$source . "')";

$db->Execute($sql);
 if ($source == '9999') {
     zen_db_perform(TABLE_SOURCES_OTHER, array('customers_id' =>  $_SESSION['customer_id'], 'sources_other_name' => $source_other));
  }

// $sql = "insert into " . TABLE_CUSTOMERS_INFO . "
// (customers_info_id, customers_info_number_of_logons,
// customers_info_date_account_created)
// values ('" . (int)$_SESSION['customer_id'] . "', '0', now())";
//
// $db->Execute($sql);
//rmh referral end

> 
> Good luck.
> 
> Versions: 1.3.9h and FEC 1.9.4.

I am trying hard to get these two to work together but I can not follow the steps you did merging the files. What exactly did you replace with this posted code? Which file did you start out with? The version in FEC for how did you hear about us? FEC puts the create_account.php in the YOUR_TEMPLATE folder as where Referral mod puts it directly in to modules. Please help, maybe upload the merged file with instruction where to put it. Thank you.

Live and learn... the Zen way.