| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Simple way to check newsletter email addresses | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Simple way to check newsletter email addresses
When a user subscribes to the newsletter, in order to prevent people who don't want to be signed up and people who sign other people up, I have coded a way so that the email address be checked before it is added to the newsletter list.
I did this pretty quickly, so if anyone has any improvements, I would be happy to see them Always remember to backup all files before implementing anything in case you miss something. First, in /customer/home_main.tpl add the following code right after the first if statement: Code:
then make a file called subscribe-ch.php (in the /mail directory) and put the following code in it: Code:
then add the following template file called subscribe_confirmation_ch.tpl in the skin1/main directory: Code:
note the creation of: txt_newsletter_subscription_msg_ch. This will be a message such as: Quote:
Then, create newsletter_subscribe_ch.tpl in the skin1/mail directory and include the following code: Code:
Note the creation of eml_tobe_subscribed - this will be something that says Quote:
and finally, modify subscribe_confirmation.tpl in the skin1/main directory to have this code: Code:
Note that I took out the unsubscribe information. This is not necessary anymore. Let me know how the installation went. I don't think I left out anything |
|||||||
#2
|
|||||||
|
|||||||
just what the dr. ordered!
thank you so much for this wonderful added customer service bit. we are always very very careful with our opt-in lists, as we are in the adult industry and really respect our user's privacy. this code puts my mind much more at ease that our users will feel protected.
just a small note: the only thing i found that was off in the code was a missing "/" - i am not sure if it would effect anyone else. but on file skin1/mail/newsletter_subscribe_ch.tpl, i found that this code: Code:
needed to have a "/" before mail: Code:
again, thank you so much for this code...it helped immensely! belen |
|||||||
|
|||
X-Cart forums © 2001-2020
|