Zen Follower
- Join Date:
- May 2007
- Posts:
- 114
- Plugin Contributions:
- 0
How Did You Hear About Us? Referrals Mod [Support Thread]
stellarweb, any way to make these fields non-mandatory?
Thanks,
Tatiana
Views: 88,368
Zen Follower
stellarweb, any way to make these fields non-mandatory?
Thanks,
Tatiana
New Zenner
Fellow Zenner's.
Please let me know if you were able to get the referrals to finally appear in the admin/customers after you have tried putting the create_account.php in your includes/modules/"custom" (folder)
thank you.
Totally Zenned
tatiana77:
stellarweb, any way to make these fields non-mandatory?
Thanks,
Tatiana
In the admin panel go to configuration->customer details and you will see "require referral". Set that to false and you are all set.
Totally Zenned
gogolf:
Fellow Zenner's.
Please let me know if you were able to get the referrals to finally appear in the admin/customers after you have tried putting the create_account.php in your includes/modules/"custom" (folder)
thank you.
Yes, it's there in the customers section in between "account created" and "last login".
The only file I put into an override folder was the template file. I had to merge both the modules/create_account.php and the template file in includes and admin/customers.php and admin/orders.php as well as admin/includes/languages/english/customers.php. It can be a little tricky merging, I use examdiff pro - a free program that I think is available from Sourceforge, because sometimes the lines of code don't match up from file to file since there are other code snippets in one if you have modified it for another mod. This one was pretty easy because it was well commented. Basically you are looking in the new file for the snippets that are for that particular mod, so for this you are looking for //rmh referral start and copy until //rmh referral end.
I hope this helps you to get it working.
Zen Follower
hello,
Couyld anyone help me with this problem? Thank you!!!
I followed everything step to install the "how do you hear from us" module. Everthing looks fine except I cannot find the "how do you hear from us" box?
I didn't see it in the register page. Did I miss anything?
By the way, the site is :http://www.loveinrose.com/index.php?...create_account
Lina
New Zenner
Gogolf, Tatiana, & others, I just wanted to report back in that I was able to get it working. My problem was that everything seemed fine except that the data was not getting posted to the db. The only thing I did to get it to work is to start over from scratch and repaste the code from the mod into my files.
At one point, I had made the same mistake you are discussing that I had a create_account.php in includes\modules\custom\ but I had pasted the mod code into includes\modules. After I fixed that mistake, it still wasn't working (I think). Then I did my "do-over" and it worked. Sooo... my original mistake MAY have been a reason it wasn't working, but I really can't pinpoint why it was not working before and now is. I'm just thanking my lucky stars it's working. :clap: I'm pulling for you guys too... I know how frustrating it is. :frusty:
New Zenner
Lina, it should be showing up in the create_account page.... 2 thoughts: 1) did you paste the mod code into the tpl_modules_create_account.php file in your includes\templates\your_template\templates folder? 2) I can't remember if there is an admin setting to turn on the feature (I don't think so), but I remember there are a few different places across admin for this mod's settings (if I recall correctly).
Zen Follower
LankeeYankee - Works, thanks!
MyGreyGoose/Gogolf/Stellarweb - It's working for me, thankfully!
Please see my last post...
Tat:smartalec:
Zen Follower
I moved the create_account.php to the folder as suggested and that did not correct my problem.
The displayed error message:
(Parse error: syntax error, unexpected T_CASE in /home/aaadi3/public_html/admin/orders.php on line 195)
is a syntax error detected during php parsing. Such a syntax error must be corrected before a program can run. A syntax error could be wrong or missing punctuation, unrecognizable operators or statements, etc. The resulting code cannot execute. This contribution does not seem to be in a bug free condition.
Is the author of the code available to assist in debugging?
I use the applezen template and this contribution is not easy to uninstall. Any suggestions?
New Zenner
(Parse error: syntax error, unexpected T_CASE in /home/aaadi3/public_html/admin/orders.php on line 195)
I got the same error when I was looking at my admin/orders however not being a "expert" with this mod I looked at the version of orders.php that comes with the new 1.3.7, that version is June 25, 2007 and the version that came with mod is December 28, 2006. If you you a file compare program you will see the differences in the two versions.
I'm guessing the error message we saw is a syntax as stated. I have not explored it, maybe something like a forgotten "}" bracket, but then again I'm the few who has problems with this mod.
I'm trying to see what effect having the original orders.php file has with this mod so I loaded the later version (that came with 1.3.7) back on my server to see which way it goes .... "hook or slice".
Zen Follower
Thanks for the response! I gathered from your message that you have a procedure for removing the mod. Since I cannot get this issue resolved I want to remove it but I don't know how. Any suggestions?
New Zenner
I'm sure there is a posting on the procedure for replacing the changes you have made to your store. You'll the constant warning with any modification you read on the forum, such as back up, back up back up.
Look at the mod's folder and files. Make a note of them and their structure.
Locate the files in your store's server files. Delete those files.
Take your last saved store (folder and files) and upload those matching files.
If you have not modified any of those files, such as you have a new clean install, simply take the files out of the Zen packet of files.
Hopefully you made a back up of your database before you installed the mod.
Upload the back up copy of the database that you have before the mod was installed.
hllight:
Thanks for the response! I gathered from your message that you have a procedure for removing the mod. Since I cannot get this issue resolved I want to remove it but I don't know how. Any suggestions?
Zen Follower
Glad to hear some of you have gotten this mod to partially work by adding a custom directory. I tried this, deleted the create_account.php from includes/modules. Added it instead to includes/modules/custom but no go for me. I received an error message after doing this so I added it back.
New Zenner
I get confused with all the problems the few of us can have with this mod.
Which was yours, the sql patch or the referral not showing up in the admin/customers ?
Robbyn7:
Glad to hear some of you have gotten this mod to
partially work by adding a custom directory. I tried this, deleted the create_account.php from includes/modules. Added it instead to includes/modules/custom but no go for me. I received an error message after doing this so I added it back.
Zen Follower
Hey gogolf I'm confused myself!
My issues are when a customer registers and chooses a referral, it shows up in Admin, Customer, Referred as "None" each time. And if I check out referrals from within Admin, it shows not what the customer entered but "Other" instead.
Thanks,
Robyn
New Zenner
Robbyn7:
Hey gogolf I'm confused myself!
My issues are when a customer registers and chooses a referral, it shows up in Admin, Customer, Referred as "None" each time. And if I check out referrals from within Admin, it shows not what the customer entered but "Other" instead.Thanks,
Robyn
I'm clueless on the Zen application, php, sql, etc. I feel like I'm hacking a ball down a course I never played, in the dark, and though the fellow Zenner's who have played this course are trying their best to help the words just seem like crickets echoing in the back ground.
Maybe this might help you. If you go back to the beginning of this this thread you'll see the common errors that pop up related to making the sql changes to the database and the referral not appearing in admin.
I have yet to figure out why the sql patch does not install cleanly for me and others vs. others. I think that that problem relates to possibly a field or table already existing and/or simply syntax.
With regard to the field or table not being updated I found that putting a file in my "custom" folder worked for me.
I would suggest looking at your database and see if the values needed to post the referral names are listed there.
I think my problems with this mod are part my own (not understanding the Zen application and its languages) and simply the need for a better documentation with the mod.
I found the solution to get it to work for me required me to read all the posts to this thread again and again. Simply a lot of extra strokes.
Zen Follower
Backups were made but there is a flaw in my backup procedures. I backup all the files and the database then do the install and if all seems to work I move on. UNFORTUNATLEY, I did not find the problem till days later. The database backups are dated, however the site files backup is overwritten with the latest stuff each time I backup. :-(
I wish I could find someone who has this installed this mod and is using the apple zen template. That would tell me if they are incompatible or not.
Zen Follower
gogolf:
(Parse error: syntax error, unexpected T_CASE in /home/aaadi3/public_html/admin/orders.php on line 195)
I got the same error when I was looking at my admin/orders however not being a "expert" with this mod I looked at the version of orders.php that comes with the new 1.3.7, that version is June 25, 2007 and the version that came with mod is December 28, 2006. If you you a file compare program you will see the differences in the two versions.
I'm guessing the error message we saw is a syntax as stated. I have not explored it, maybe something like a forgotten "}" bracket, but then again I'm the few who has problems with this mod.
I'm trying to see what effect having the original orders.php file has with this mod so I loaded the later version (that came with 1.3.7) back on my server to see which way it goes .... "hook or slice".
After reading this message again, you didn't say how you fixed it. Did you use the files from the December version? If so which files?
New Zenner
hllight:
After reading this message again, you didn't say how you fixed it. Did you use the files from the December version? If so which files?
Correct. I never summarized how I got it to work. It is a frustrating problem some of us are facing.
However if you do a search on this thread and break out all the "gogolf" posts and follow the steps I took and frustrating comments I posted .. that is how it got to work for me.
In summary, thinking out loud:
A) there "maybe" a problem in the sql patch such that there is a pre-existing field in the tables that the mod is trying to install and it can't; at least that is my understanding from reading the error report (comments welcome from guru's). There maybe a problem with syntax and there may not be for some installers.
What I may not have posted was that after running the sql patch with the mod I did get tables and fields appear, they did get updated. So I went into my database, through mysql, and deleted the changes the mod sql patch created and located one field or table which for some reason the mod sql patch reported (in simple terms) "was already there guy, sorry can't do anything". I then cut and pasted the mod sql patch into myphp and it ran.
B) after "A" above the referral was still not being posted to the database so I moved a file (see post 157 in this thread) and that solved my problem.
That is how it got ITSELF to work. Is the problem in the sql patch? I don't know but I'm leaning toward that. Is the problem in the version of MySql or php is on your or my server, I don't know.
C) In my opinion, as well as suggested in Zen, when a file is modded it should be noted in the top of the file or commented where the changes are line by line. Some of these files in the mod do not have any notes so you have to use a "compare" program often.
D) The mod instructions could be more clear or concise. No offense to any mod authors however the best instructions are simple, concise and in laymens terms.
I'm sure if you sift through various mod's for Zen you'll find some that anticipate that you know what you are doing and how things work, and then there those that go into detail for expert and newbie.
Zen Follower
Thanks Gogolf for the reply. I believe one of my problems is that I have never been able to get the override system to work for me. So, I have no idea where to go from here.
Fields marked required must be completed.
Tell staff why this post should be reviewed.
Required for login, security, and core site functionality.
Help us understand how the site is used so we can improve it.
Used for promotion and personalized campaign measurement.