Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Editing Automatic Emails


Lindsey

Recommended Posts

Does anyone know how to edit the text of the automatic emails that get sent out to customers after they have been activated in the osCommerce portal? My customers are being sent emails that are not tailored to my company and I want to change them. How do I do it? Can I do it?

 

Thanks for your help!!

 

Lindsey

Link to comment
Share on other sites

Does anyone know how to edit the text of the automatic emails that get sent out to customers after they have been activated in the osCommerce portal? My customers are being sent emails that are not tailored to my company and I want to change them. How do I do it? Can I do it?

 

Thanks for your help!!

 

Lindsey

 

The text for the email is in :

includes/languages/english/create_account.php

 

The email gets sent from create_account.php at the root of your store :

$email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;

tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

 

since the file names are the same, make sure you're uploading these files to the correct directory after you have editted them!!!

 

david

Link to comment
Share on other sites

Thanks, David!

 

I went to the create_account.php file in the directory you specified and found the text for emails confirming the customer's request for activation, but not the text confirming the actual activation of the account. The text I am looking to edit currently looks like this:

 

"Your application to become a wholesale customer of (your store) has been approved. You can now access pricing on the (your store) site.

You can now take part in the various services we have to offer you. Some of these services include:

 

*Permanent Cart - Any products added to your online cart remain there until you remove them, or check them out.

 

*Address Book - We can now deliver your products to another address other than yours! This is perfect to drop ship direct to your customer.

 

*Order History - View your history of purchases that you have made with us.

 

*Products Reviews - Share your opinions on products with our other customers.

 

For help with any of our online services, please email us at: icontent@plateau.com

 

Note: This email address was used to request access to our wholesale website. If you did not signup to be a customer, please send an email to icontent@plateau.com"

 

Any idea where this is located?

Thank you so much for your help!

 

Lindsey

Link to comment
Share on other sites

I went to the create_account.php file in the directory you specified and found the text for emails confirming the customer's request for activation, but not the text confirming the actual activation of the account. The text I am looking to edit currently looks like this:

 

"Your application to become a wholesale customer of (your store) has been approved. You can now access pricing on the (your store) site.

You can now take part in the various services we have to offer you. Some of these services include:

 

Any idea where this is located?

Thank you so much for your help!

 

Lindsey

 

Lindsey - are you *sure* it is not in /includes/languages/english/create_account.php ???

 

Unless you have modified the file, it should be under the EMAIL_TEXT definition :

http://oscdox.com/crossx/nav.html?includes...php.source.html

 

The last line :

 

define('EMAIL_TEXT', 'You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n\n" . '<li><b>Permanent Cart</b> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n" . '<li><b>Address Book</b> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.' . "\n" . '<li><b>Order History</b> - View your history of purchases that you have made with us.' . "\n" . '<li><b>Products Reviews</b> - Share your opinions on products with our other customers.' . "\n\n");

define('EMAIL_CONTACT', 'For help with any of our online services, please email the store-owner: ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n\n");

define('EMAIL_WARNING', '<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n");

 

david

Link to comment
Share on other sites

Lindsey - are you *sure* it is not in /includes/languages/english/create_account.php ???

 

Unless you have modified the file, it should be under the EMAIL_TEXT definition :

http://oscdox.com/crossx/nav.html?includes...php.source.html

 

The last line :

 

define('EMAIL_TEXT', 'You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n\n" . '<li><b>Permanent Cart</b> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n" . '<li><b>Address Book</b> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.' . "\n" . '<li><b>Order History</b> - View your history of purchases that you have made with us.' . "\n" . '<li><b>Products Reviews</b> - Share your opinions on products with our other customers.' . "\n\n");

define('EMAIL_CONTACT', 'For help with any of our online services, please email the store-owner: ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n\n");

define('EMAIL_WARNING', '<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n");

 

david

 

Interesting...

Someone I don't know about must have already modified the definition of EMAIL_TEXT. Everything in my create_account.php file is the same as the one in the link you gave me, except for the EMAIL_TEXT. I'm still new to osCommerce so I am not familiar with the base version process before modifications are added. My version seems to differ from the original in that the customer must request access first by filling out the log-in sheet (they receive email confirmation of this request using the commands in create_account.php) and then they are activated by the admin in order to see pricing (then they receive a second email confirming their activation). It seems that the original create_account.php sends an email confirming immediate access without any pending period. Is this correct? The thing is that there is another php file (that I can't find) other than create_account.php that is automatically sending out this second email after I activate someone. The text in this second mystery php file is very similar to the text in the original create_account.php file you provided. Any idea where I might find this, or is this going to be specific to my modified portal??

 

Thank you again!!

Lindsey

Link to comment
Share on other sites

Interesting...

Someone I don't know about must have already modified the definition of EMAIL_TEXT. Everything in my create_account.php file is the same as the one in the link you gave me, except for the EMAIL_TEXT. I'm still new to osCommerce so I am not familiar with the base version process before modifications are added. My version seems to differ from the original in that the customer must request access first by filling out the log-in sheet (they receive email confirmation of this request using the commands in create_account.php) and then they are activated by the admin in order to see pricing (then they receive a second email confirming their activation). It seems that the original create_account.php sends an email confirming immediate access without any pending period. Is this correct? The thing is that there is another php file (that I can't find) other than create_account.php that is automatically sending out this second email after I activate someone. The text in this second mystery php file is very similar to the text in the original create_account.php file you provided. Any idea where I might find this, or is this going to be specific to my modified portal??

 

Thank you again!!

Lindsey

 

Lindsay - I don't get it - you have to register to your site before I can surf it or see any info ? Is this what you're syaing ?

 

So -

I register to surf : get an email

I register to purchase : get an email

I make a purchase : get an email

 

Is this correct ? (how annoying if so!) lol.

 

As for finding text :

Is you have SSH access you can go to the languages directory, and seach for a particular string like this :

cd public_html/shop/includes/languages/

find . | xargs grep "put your string here"

 

This will return all the files that match your string.

 

If you don't have ssh, then FTP all the language files from /includes/languages/english/ locally (including /includes/languages/english.php), open them all in something like EditPlus, (http://editplus.com) and then do go :

Search --> Find in Files

from inside Editplus.

 

david

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...