Forums / All Other Contributions/Addons / How Did You Hear About Us - Not working!

How Did You Hear About Us - Not working!

Locked

Views: 2,901

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
1 Apr 2008, 1:13 PM
#1
cushietushies avatar

cushietushies

New Zenner

Join Date:
Jun 2006
Posts:
35
Plugin Contributions:
0

How Did You Hear About Us - Not working!

Greetings, I recently installed the How Did You Hear About Us mod, now I have an unchanged zen cart install (latest) So it was a simple matter of running the sql commands and pasting in the files and away I go right?

Wrong :( At 1st I thought it was all working due to it all appeared correctly in the front page it would show the drop down box of our selectable types and then the submit would appear to work

It would create a new entry in customers_info table but the issue is with the customers_info_source_id. its ALWAYS 0. No matter what. Now I'm a c++ coder so this whole not being able to debug drives me nuts. Is there a way to debug this?

customers_info_source_id 	
 	0

the site is https://www.cushietushies.com.au

check the login it appears to work fine, but then the reports are all "unknown" which isn't all that useful.

I'm quite desperate as time is running out till its going to be very pertinent we have this working for upcomming competitions...

thanks in advance
Chris

2 Apr 2008, 8:44 AM
#3
cushietushies avatar

cushietushies

New Zenner

Join Date:
Jun 2006
Posts:
35
Plugin Contributions:
0

Re: How Did You Hear About Us - Not working!

anyone? Is the author around?

2 Apr 2008, 10:03 PM
#4
wolfsz avatar

wolfsz

Zen Follower

Join Date:
Mar 2006
Location:
Australia
Posts:
286
Plugin Contributions:
3

Re: How Did You Hear About Us - Not working!

Hi there
I don't know the mod at all, however from what you say it seems that the HTML select is not assigning the proper value. There would be a table in the DB that contains the select options and their IDs. Eg 0 = Unknown. To start debugging:

  1. ensure that the the selected option is actually in the page request
    place die(var_dump($customers_info_source_id)) in the appropiate place in the code to see if the value changes as different selection
  2. once step one is working ensure info gets written to DB

Wolf Skafte-Zauss
http://e-commerce-pros.com
Tools for E-commerce Professionals

18 Jun 2008, 3:39 AM
#5
emupilot avatar

emupilot

New Zenner

Join Date:
Sep 2007
Posts:
21
Plugin Contributions:
1

Re: How Did You Hear About Us - Not working!

I had the same trouble, the cause for me was that the template file
/includes/modules/my_template/create_account.php was overriding the default /includes/modules/create_account.php
so the new referral sources were not being checked or inserted into the database.

note: if this applies to you, you shouldn't just copy the /includes/modules/create_account.php to /includes/modules/my_template/create_account.php because is it is very likely the latter has changes to it. you will need to merge the changes marked rmh into the override. if you don't know how, pay your web developer to do this!

18 Jun 2008, 10:11 AM
#6
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: How Did You Hear About Us - Not working!

emupilot:

I had the same trouble, the cause for me was that the template file
/includes/modules/my_template/create_account.php was overriding the default /includes/modules/create_account.php
so the new referral sources were not being checked or inserted into the database.

Got it working at last. Thanks. :smile:

17 Jul 2008, 11:15 PM
#7
sutikah1 avatar

sutikah1

New Zenner

Join Date:
Jan 2008
Location:
Scotland
Posts:
33
Plugin Contributions:
0

Re: How Did You Hear About Us - Not working!

Steven300:

I have a similar issue where it always reports that "Other" was selected.

I've tried all sorts to fix this but I'm getting nowhere fast. I have the same bug as above.

Does anyone out there know how to fix this?

Any help is greatly appreciated.

21 Jul 2008, 5:07 AM
#8
holritzphotography avatar

holritzphotography

New Zenner

Join Date:
Jun 2008
Posts:
23
Plugin Contributions:
0

Re: How Did You Hear About Us - Not working!

I just attempted to install this mod, and I'm getting the following error on the sign-up page:

1146 Table 'photoedi_zen.sources' doesn't exist
in:
[select sources_id, sources_name from sources order by sources_name] (You can also see a screen shot below)

I didn't run the SQL file. Would this be what is causing the issue? How can I resolve this?

21 Jul 2008, 12:29 PM
#10
holritzphotography avatar

holritzphotography

New Zenner

Join Date:
Jun 2008
Posts:
23
Plugin Contributions:
0

Re: How Did You Hear About Us - Not working!

Steven300:

Most definitely.

Thanks!

I'm not a programmer and I'm on a Mac. :D Is there a specific way to handle the SQL file? I've just been using an FTP program to drag and drop files to add these mods to my Zen. What do I need to do with the SQL files?

And when I run into mods that work on the same file (orders.php for example), is there a good app that will allow me to combine code?

Thanks so much!

:)

21 Jul 2008, 1:13 PM
#11
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: How Did You Hear About Us - Not working!

holritzphotography:

What do I need to do with the SQL files?

Copy all of the code inside the SQL file
In your admin panel, go to Tools -> Install SQL Patches
Paste the code into the big text area
Hit the Send button

holritzphotography:

And when I run into mods that work on the same file (orders.php for example), is there a good app that will allow me to combine code?

Try BBEdit.