Great job with this! I would like to add it to create account but I'm afraid to update it with the current instructions. If anyone wants to spell it out on exactly where to update the header.php file for create account, I would be very grateful. Otherwise, I love what I got so far.
It's in the same directory that all of the other pages' header_php file resides.
includes>modules>pages>create_account>header_php.php.
And you will do the same steps as the other pages, looking for the field section(where they put in their name, email etc) and the error processing section, etc in the header_php file. Then just insert the extra field in the template file.
A great benefit from this is now I can turn on the allow guest to tell a friend function without a zillion spams being sent from it. Just edit the same set of files for tell_a_friend the same way as the rest. This has boosted traffic and conversions and is really worth it.
Has anyone test this with 1.3.9h?
I'm just building my site for the first time now. Since I never had spam to deal with and choose not to wait until I get spam for me to install this module, how can I test if I've installed it correctly?
relatively new to Zen Cart
I attempted to install the changes. I ran the firefox extension, disabled inline css and found the extra box there. I have an error though and that is when I'm running the site normally and enter all the fields, the page returns an error saying not all the information has been entered. Please try it on my page
http://qnecomputing.com.au/index.php...us&action=send
relatively new to Zen Cart
I found the solution to the problem I had previously discussed.
for some reason, I didn't have a subject box and in the code in this thread , the line '!empty($name) and !empty($subject) and empty($leaveblank)) {' can't be used because when a real person submits enter, zen cart will be waiting for an entry in a subject box that doesn't exist, so just modify the line by
!empty($name) and empty($leaveblank)) {
alone
relatively new to Zen Cart
Is anyone watching this thread?
Could do with a holding hads type walk through.
Tried implementing this mod and all that happened was "NOTHING" no email sent from the site, while logged in or not. did not show message had been sent :sucess page just sat there looinh glum.
Please help.
Yes I get that.
At 2:15 in the morning my powers of writing what I mean go right out the window.
The contact us form is sending the email, or it's not a contact form I get that. this nifty piece of code stops the sending of the email if the extra field gets filled in, I get that to,
What I am not getting is:
In normal operation a human fills in the fields and clicks send.
the form should send an email to the store owner, right.
What's happening when I apply this mod is;
In normal operation a human fills in the visable fields and clicks send and the form does not send the email to the store owner.
i.e. does not work.
I checked the form in firefox dev-mode, the hiden field is there and is blank.
when I input :name; :email; :subject
The form does nothing. No error message no redirect to :main_page=contact_us&action=success
I am sure that if it did not "work" for others there would be more questions relating to that.
I will try again to apply this mod now that I've had a few hours sleep, and hopefully thinking a lot clearer, (maybe not having to go back and edit a lot of typos).
One thing I am glad of though finding another post in the forum that someone actully watches and responds to .
Last edited by BillyBoyle; 2 Sep 2011 at 09:53 AM. Reason: spelling and typos
Bookmarks