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 41 to 60 of 365
20 Feb 2007, 4:56 PM
#41
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

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

For anyone that needs this mod updated to work for version 1.3.7 - I have modified all the necessary files and tested on two different websites.

Here is a link to the revised files: How Did You Hear About Us V1.3.7

Enjoy! :lamo:

Judy

20 Feb 2007, 5:17 PM
#42
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

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

Hmmm - wonder where I got my files from then? :unsure: There are quite some differences there that didn't show up for me.

Thanks for your work there - have you sent it to the downloads section as an update?

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

20 Feb 2007, 5:39 PM
#43
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

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

Did you have some mods already in affecting your admin/orders.php? Around your line 184?

I got an error ```
Parse error: syntax error, unexpected T_CASE in /home/.../orders.php on line 195

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

20 Feb 2007, 5:49 PM
#44
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

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

I just downloaded the 1.3.6 mod files and used winmerge to compare them... and copied anything that was different over to the parallel ZenCart v 1.3.7 files. I HOPE that was the right thing to do! :blush:

I will go send it to the downloads section just in case anyone else wants/needs it. :yes:

Ryk:

Hmmm - wonder where I got my files from then? :unsure: There are quite some differences there that didn't show up for me.

Thanks for your work there - have you sent it to the downloads section as an update?

20 Feb 2007, 5:50 PM
#45
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

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

I MAY have... let me go take a peek and reupload the files - is that the only error you got?

Ryk:

Did you have some mods already in affecting your admin/orders.php? Around your line 184?

I got an error ```
Parse error: syntax error, unexpected T_CASE in /home/.../orders.php on line 195

20 Feb 2007, 5:51 PM
#46
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

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

Disregard MOST of the above please...I think there's something odd happened at my end.

That was the only error, but I was replacing the files one at a time - I have differences between mine, yours and the original which don't add up!

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

20 Feb 2007, 6:03 PM
#47
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

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

Ryk,

In comparing the code I see that from line 181 to 194 in the MOD files there was a difference between the mod and zc 1.3.7.... (see below) which I copied over into the zencart file... is this what you are referring to?


}

}

if (($action == 'edit') && isset($_GET['oID'])) {
$oID = zen_db_prepare_input($_GET['oID']);

$orders = $db->Execute("select orders_id from " . TABLE_ORDERS . "
                        where orders_id = '" . (int)$oID . "'");

$order_exists = true;
if ($orders->RecordCount() <= 0) {
  $order_exists = false;
  $messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST, $oID), 'error');

Judy

stellarweb:

I MAY have... let me go take a peek and reupload the files - is that the only error you got?

20 Feb 2007, 6:08 PM
#48
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

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

Ok - now I am scared to submit it to the downloads section! :shocking:

This is my first time actually putting a revised mod link on here - although I have had to revise ALOT of them! :laugh:

Judy

Ryk:

Disregard MOST of the above please...I think there's something odd happened at my end.

That was the only error, but I was replacing the files one at a time - I have differences between mine, yours and the original which don't add up!

20 Feb 2007, 7:43 PM
#49
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

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

Yes - that's the section. I don't think it's to do with the referrals mod - but I may be wrong.

Unfortunately, I haven't got time to play with it right now, and as it's working on the site, I'll have to leave it be for a while.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

20 Feb 2007, 7:56 PM
#50
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

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

Ok - yes, if that is the section - then that is definately a part of the 1.3.6 mod files that I downloaded.

Ryk:

Yes - that's the section. I don't think it's to do with the referrals mod - but I may be wrong.

Unfortunately, I haven't got time to play with it right now, and as it's working on the site, I'll have to leave it be for a while.

21 Feb 2007, 4:49 PM
#51
ckunderd avatar

ckunderd

New Zenner

Join Date:
Feb 2007
Location:
Ferndale, MI
Posts:
8
Plugin Contributions:
0

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

I also cannot get the modification working properly. I am having the orders.php problem (I even went back and tried deleted the second calling of the class at line 253, but that didn't help), but I am also having difficulty because the actual contribution won't show up on my create account page. I know it's supposed to go beneath the newsletter portion, but no table, drop down box or input fields show up. However, the code knows that it's there because if you press submit, it won't allow you to create an account, saying that you must select how you were referred. I've gone through and checked all of my overrides...is there something in the admin section that I need to turn on? I'm at a loss.

Thanks in advance!

  • Cam

A world without Zen is a world without.

http://www.goodthingsglobal.com

21 Feb 2007, 10:43 PM
#52
ckunderd avatar

ckunderd

New Zenner

Join Date:
Feb 2007
Location:
Ferndale, MI
Posts:
8
Plugin Contributions:
0

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

sorry about the second part of that post; my override structure was out of whack. Just a newbie mistake. Thanks.

I'll keep up to date on the orders.php file solution when you get around to it, ryk. Thanks for the mod update, stellarweb!

  • Cam

A world without Zen is a world without.

http://www.goodthingsglobal.com

22 Feb 2007, 4:14 PM
#53
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

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

Cam,

Glad you figured it out! Your site looks GREAT!!!

22 Feb 2007, 8:50 PM
#54
minnie_mouse avatar

minnie_mouse

Zen Follower

Join Date:
Jun 2005
Posts:
119
Plugin Contributions:
0

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

hi i am getting the same error as another poster from a while back. when i install the sql patch i get this return:

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'true', 'false'), ', now())' at line 1
in:
[INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Display "Other" Referral option', 'DISPLAY_REFERRAL_OTHER', 'true', 'Display "Other - please specify" with text box in referral source in account creation', '1', '22', 'zen_cfg_select_option(array('true', 'false'), ', now());]

then i dont get the configuration options in my admin>configuration>mystore and customer details.

22 Feb 2007, 9:22 PM
#55
jewelrylady avatar

jewelrylady

Totally Zenned

Join Date:
Sep 2005
Location:
ny
Posts:
434
Plugin Contributions:
0

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

How do I remove the other option?? Or make it so people have to type in where they found me?

22 Feb 2007, 11:51 PM
#56
minnie_mouse avatar

minnie_mouse

Zen Follower

Join Date:
Jun 2005
Posts:
119
Plugin Contributions:
0

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

okay i got the database working if anyone out there needs it here is what i did

in the last two insert lines of the sql file there is a piece at the end of both lines that goes

'zen_cfg_select_option(array('true', 'false'), ', now());

it should read
'zen_cfg_select_option('true', 'false')', now());

WARNING:
this seems to have worked for me. however, i dont know squat about sql and am not sure why the array was a problem. i cant guarantee in anyway this fix.

but it worked. sometimes i get lucky.

MM

ps if anyone could explain this, both what i did and why it worked... or why it is a bad idea i would love to hear it. and learn something.

thanks!

23 Feb 2007, 12:10 PM
#57
ckunderd avatar

ckunderd

New Zenner

Join Date:
Feb 2007
Location:
Ferndale, MI
Posts:
8
Plugin Contributions:
0

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

To ryk and anyone that had the orders.php problem with the referrals mod:

I simply downloaded a fresh install of zen cart and uploaded the new 1.3.7 orders.php file to my admin/ directory. That stopped the error on line 195, and I'm still getting who referred in my customer list. In comparing the modified file and the new file, I can't see where referrals code from 1.3.6 would come into 1.3.7. But I'm no php wonder, either. It did work for me, and the mod's working fine.

Judy, any thoughts on this? I know you were the one who compared the files and compiled the 1.3.7 mod. And thanks for the compliment by the way. I really appreciate it.

To the general publilc: goodthingsglobal.com will be going truly live in the next couple days, and I'll post in the review corner for anyone who wants to rip me a new one. Please don't be afraid to hurt feelings either. I need all the help I can get.

Thanks again everyone!

  • Cam

A world without Zen is a world without.

http://www.goodthingsglobal.com

10 Mar 2007, 12:22 PM
#58
rsprinkel avatar

rsprinkel

New Zenner

Join Date:
Feb 2007
Posts:
73
Plugin Contributions:
0

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

Ok I am having difficulty getting the drop down to display the different referral options in Create Account. I am not sure where all the switches are to get this enabled. I am using 1.3.7

I do have the following switches set:

Admin/Config/My Store - Display "Other" Referral option TRUE
Admin/Config/Customer Details - Require Referral TRUE
Admin/Config/Customer Details - Customers Referral Status 2

Thanks Much in Advance.

RSprinkel

12 Mar 2007, 11:02 AM
#59
sarahl avatar

sarahl

Zen Follower

Join Date:
May 2004
Location:
UK
Posts:
471
Plugin Contributions:
0

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

question for you all - what happens if they make an error logging in? as it only seems to appear in the create account - not any error checking or login or edit details aftwards?

Admittedly I am using an old 1.2.6 version - but just compared to 1.3.7 version and the files location are identical meaning that no other files have been altered

12 Mar 2007, 1:47 PM
#60
rsprinkel avatar

rsprinkel

New Zenner

Join Date:
Feb 2007
Posts:
73
Plugin Contributions:
0

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

RSprinkel:

Ok I am having difficulty getting the drop down to display the different referral options in Create Account. I am not sure where all the switches are to get this enabled. I am using 1.3.7

I do have the following switches set:

Admin/Config/My Store - Display "Other" Referral option TRUE
Admin/Config/Customer Details - Require Referral TRUE
Admin/Config/Customer Details - Customers Referral Status 2

Thanks Much in Advance.

Ok I found my problem now. But I do have one question. I am also using the Captcha Mod with this mod and it seems it modifies the same files (mainly tpl_create_account.php) and one overwrites the other. I also tried to copy/paste the code needed for the Referrals under the Captcha info in the tpl_create_account.php and got errors.

Anyway of figuring this out as I would like to have both of these on this page?

Thanks much in Advance.

RSprinkel

RSprinkel