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 81 to 100 of 365
6 Jun 2007, 8:06 AM
#81
wadi73 avatar

wadi73

New Zenner

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

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

Wow, well I finally overcame my fear of mysql and actually LOOKED at the coding. It does clearly tell you which table and values are being created.

Anyway, the code I had already was the modified version of 'zen_cfg_select_option(array('true', 'false'), ', now());

However.... I solved the problem :smile:

I had stupidly uploaded all the files in the folder Cart>admin>includes, BUT I had forgotten to do the ones for Cart>includes

As soon as they were uploaded (most are the same as the admin>includes files), it worked like a charm.

Thanks Diva Vocals, for all of your suggestions. When my programmer (!) husband comes home tonight I shall impress him by telling him that I know know how to find the values in a mysql table, how to delete and drop them etc. Maybe he will take me out to dinner :smile:

6 Jun 2007, 6:43 PM
#82
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]

I'm glad you decided to give it a try, and that it all worked out for you.. Good luck with your site..

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.

12 Jun 2007, 3:54 AM
#83
rnet avatar

rnet

Zen Follower

Join Date:
Jun 2005
Location:
Pittsburgh
Posts:
99
Plugin Contributions:
0

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

ttalk:

it's working for me, just merge orders.php carefully as the core file was touched in 1.3.7. Note that in 1.3.6 location of an include file was in the middle of the file but in 1.3.7 it was moved to the top of the file, make sure you remove the one in the middle in your modified orders.php otherwise you'll hit a fatal error trying to declare a class twice.

I've run into this problem too, using the latest download on V1.3.7. I've made the changes as suggested -- no success. Any ideas??

12 Jun 2007, 11:18 AM
#84
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]

What error exactly are you getting? Can you copy and paste the error here?

Also... you said you used the latest download and made changes... but the post you quoted I believe was referring to changes to the old files... so I guess we also need to know what changes you made..

rnet:

I've run into this problem too, using the latest download on V1.3.7. I've made the changes as suggested -- no success. Any ideas??

13 Jun 2007, 10:06 PM
#85
rnet avatar

rnet

Zen Follower

Join Date:
Jun 2005
Location:
Pittsburgh
Posts:
99
Plugin Contributions:
0

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

stellarweb:

What error exactly are you getting? Can you copy and paste the error here?

Also... you said you used the latest download and made changes... but the post you quoted I believe was referring to changes to the old files... so I guess we also need to know what changes you made..

I'm using the latest download, but when selecting any order from admin - I get a blank page. I tried to make the orders.php edits listed in prior posts without success. If I substitute the original (stock) orders.php file, it works -- however I do not see the referrals listed, except in the column under admin>Customers (column title Referred By).

13 Jun 2007, 10:24 PM
#86
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]

Ideally you should not have to edit the latest download at all - at least not the orders.php file.

A couple of things to do....

  1. Make sure you are using the 1.3.7 version and you have not made any changes to it.

  2. Make sure you are uploading the install referrals sql file via your admin area (Tools / Install SQL Patches)

  3. Double check and make sure that you have all the files put in their proper order / folders, etc.

  4. If all that fails, in the sql file try changing

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

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

and see if that helps.

That is about all the advise I know to give. If you have modified your orders.php file with another mod.... that may be causing a problem ... you would have to use something like WinMerge to compare the two files.

rnet:

I'm using the latest download, but when selecting any order from admin - I get a blank page. I tried to make the orders.php edits listed in prior posts without success. If I substitute the original (stock) orders.php file, it works -- however I do not see the referrals listed, except in the column under admin>Customers (column title Referred By).

14 Jun 2007, 3:35 AM
#87
rnet avatar

rnet

Zen Follower

Join Date:
Jun 2005
Location:
Pittsburgh
Posts:
99
Plugin Contributions:
0

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

I've confirmed that I'm using the correct versions.

The LOG file shows: PHP Parse error: parse error, unexpected T_CASE in /var/www/html/admin/orders.php on line 195

Suggestions?

19 Jun 2007, 11:29 PM
#88
oma avatar

oma

New Zenner

Join Date:
Feb 2006
Location:
Seattle.WA
Posts:
14
Plugin Contributions:
0

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

Hi,
I am on zencart v1.3.7 and have been trying to install the How Did You Hear About Us Version 1.3.7 mod -- I was also getting the 1064 SQL syntax error message. I tried several of the suggestions here with no luck through the zencart sql patch screen. So, I went to my phpmyadmin screen on my hosting site and pasted 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());
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Require Referral', 'REFERRAL_REQUIRED', 'true', 'Require the Referral Source in account creation', '5', '6', 'zen_cfg_select_option(array('true', 'false'), ', now());

The error message that came up on their screen which said I needed to check the syntax indicated a difference in the word "now" just before the ()); and displayed that word in CAPS. Knowing nothing about SQL, I left everything else the same in the above sql patch, except I changed the "now" to "NOW" and submitted the sql again. I got a success message. I went back to my store, and now I have the two options showing up under the configuration for My Store and Customer Details. I just checked my "Online Catalog" and so far, the screen where customers can create an account looks correct with the "Other" option showing up as well as the text box where they can type.

j. becker
the oma project
http://omaproject.com

23 Jun 2007, 11:29 PM
#89
cowboyfred avatar

cowboyfred

Zen Follower

Join Date:
Dec 2005
Location:
colorado
Posts:
84
Plugin Contributions:
0

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

I also get the error:

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());]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.


when i import the SQL file i get this error:
Error

 **SQL query:**     
           ALTER  TABLE customers_info ADD customers_info_source_id int NOT  NULL  AFTER customers_info_date_account_last_modified;


**MySQL said: **[IMG]http://209.85.82.130:2082/3rdparty/phpMyAdmin/themes/original/img/b_help.png[/IMG]
#1060 - Duplicate column name 'customers_info_source_id'

Here is some info:
Server version: 4.1.22-standard-log
phpMyAdmin - 2.10.0.2

I have modified the code 'zen_cfg_select_option(array('true', 'false'),'now());
and changed it several different ways. and no luck. Is there another solution?

10 Jul 2007, 8:04 AM
#90
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

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

rnet:

I've confirmed that I'm using the correct versions.

The LOG file shows: PHP Parse error: parse error, unexpected T_CASE in /var/www/html/admin/orders.php on line 195

Suggestions?

I get the same error too . I have a suspicion that the Paypal updates may muck it up. as when i installed this Paypal stoped working ! may be coincedence.

Hope someone can suggest a fix.

Various Zen cart sites !

10 Jul 2007, 1:35 PM
#91
cowboyfred avatar

cowboyfred

Zen Follower

Join Date:
Dec 2005
Location:
colorado
Posts:
84
Plugin Contributions:
0

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

cowboyfred:

I also get the error:

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());]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.


when i import the SQL file i get this error:
Error

 **SQL query:**     
           ALTER  TABLE customers_info ADD customers_info_source_id int NOT  NULL  AFTER customers_info_date_account_last_modified;


**MySQL said: **[IMG]http://209.85.82.130:2082/3rdparty/phpMyAdmin/themes/original/img/b_help.png[/IMG]
#1060 - Duplicate column name 'customers_info_source_id'

Here is some info:
Server version: 4.1.22-standard-log
phpMyAdmin - 2.10.0.2

I have modified the code 'zen_cfg_select_option(array('true', 'false'),'now());
and changed it several different ways. and no luck. Is there another solution?

This post was from awhile ago and i don't remember how i fixed it. However, i am running the most current version of Zen-Cart and everything is humming along just great.

17 Jul 2007, 3:53 AM
#92
gogolf avatar

gogolf

New Zenner

Join Date:
Mar 2006
Posts:
57
Plugin Contributions:
0

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

i'm "hacking" for better terms as trying to get this mod installed on an oldver of Zen, I guess it is a 1.3x version.

I can see the TABLE_HEADING_REFERRED_BY showing up through the Admin-Customers section

What field names are suppose to be added to the database?

17 Jul 2007, 4:59 AM
#93
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]

If you will look in the install_referrals.sql file - it will tell you the tables that get added to the database. :D

gogolf:

i'm "hacking" for better terms as trying to get this mod installed on an oldver of Zen, I guess it is a 1.3x version.

I can see the TABLE_HEADING_REFERRED_BY showing up through the Admin-Customers section

What field names are suppose to be added to the database?

17 Jul 2007, 2:25 PM
#94
gogolf avatar

gogolf

New Zenner

Join Date:
Mar 2006
Posts:
57
Plugin Contributions:
0

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

Stellar, I appreciate your input. This is a great forum.

However being a newbie to sql , php, etc, I am trying to understand this.

I'm looking at my database in php and trying to confirm if the database was properly updated with the sql patch (since we all seem to have had problems with it).

When I plug in the patch for 1.3.6 I get the following message:

12 statements processed.
Error ERROR: Cannot ADD column customers_info_source_id because it already exists.
Error ERROR: Cannot insert configuration_key "DISPLAY_REFERRAL_OTHER" because it already exists
Error ERROR: Cannot insert configuration_key "REFERRAL_REQUIRED" because it already exists
Warning Note: 3 statements ignored. See "upgrade_exceptions" table for additional details.

So can I assume that the proper tables were inserted or updated?

stellarweb:

If you will look in the install_referrals.sql file - it will tell you the tables that get added to the database. :D

17 Jul 2007, 3:50 PM
#95
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]

Yes, that is a safe assumption. :yes:

gogolf:

Stellar, I appreciate your input. This is a great forum.

However being a newbie to sql , php, etc, I am trying to understand this.

I'm looking at my database in php and trying to confirm if the database was properly updated with the sql patch (since we all seem to have had problems with it).

When I plug in the patch for 1.3.6 I get the following message:

12 statements processed.
Error ERROR: Cannot ADD column customers_info_source_id because it already exists.
Error ERROR: Cannot insert configuration_key "DISPLAY_REFERRAL_OTHER" because it already exists
Error ERROR: Cannot insert configuration_key "REFERRAL_REQUIRED" because it already exists
Warning Note: 3 statements ignored. See "upgrade_exceptions" table for additional details.

So can I assume that the proper tables were inserted or updated?

17 Jul 2007, 8:03 PM
#96
gogolf avatar

gogolf

New Zenner

Join Date:
Mar 2006
Posts:
57
Plugin Contributions:
0

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

stellarweb:

Yes, that is a safe assumption. :yes:

OK. So we can assume all the tables are now correct.

My next problem is I can't see the referral choices or drop down on the Login page under the Options, what could cause that though I have updated all the other files to the store site?

17 Jul 2007, 9:01 PM
#97
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]

Do you have a link I can take a peek at?

gogolf:

OK. So we can assume all the tables are now correct.

My next problem is I can't see the referral choices or drop down on the Login page under the Options, what could cause that though I have updated all the other files to the store site?

18 Jul 2007, 3:59 AM
#98
gogolf avatar

gogolf

New Zenner

Join Date:
Mar 2006
Posts:
57
Plugin Contributions:
0

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

pm sent

18 Jul 2007, 4:25 AM
#99
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]

Got it - and just sent you a reply. Hope it helps a little bit! :yes:

gogolf:

pm sent

18 Jul 2007, 4:31 AM
#100
gogolf avatar

gogolf

New Zenner

Join Date:
Mar 2006
Posts:
57
Plugin Contributions:
0

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

Well know that I know I'm (cough) using version 1.2.6 WE know that the Referral mod won't work "easily". Thanks for the tips Stellar. It seems I have to either trade in my wood for a graphite shaft or hack away with 1.3.7.