arvek Posted January 14, 2006 Posted January 14, 2006 Hi! I am fairly new to OS Commerce, but have managed to do some tweaking thanx to the great contributions and informative forums :) I know a bit CSS and Html, but are really blank when it comes to php.. Ive implemented STS and a norwegian languagepack, and basically stripped the solution down to the barest minimum (i belive less is more). Now im struggling with the email messages, primarily the one that greets a new customer when he/she has singed up for a new account. The email goes through but it havce subject "EMAIL_SUBJECT" and the content of the mail is "EMAIL_GREET_NONEEMAIL_WELCOMEEMAIL_TEXTEMAIL_CONTACTEMAIL_WARNING" so basically none of the information form the language file is going through. This is how the norwegian create_account_process looks like, spot any errors? <?php /* $Id: create_account_process.php,v 1.12 2002/07/07 05:15:54 project3000 Exp $ The Exchange Project - Community Made Shopping! http://www.theexchangeproject.org Copyright © 2000,2001 The Exchange Project Released under the GNU General Public License */ define('NAVBAR_TITLE_1', 'Opprett en ny konto'); define('NAVBAR_TITLE_2', 'Opprett ny konto'); define('HEADING_TITLE', 'Kontoinnehaver'); define('EMAIL_SUBJECT', 'Velkommen som kunde av Arkham.no '); define('EMAIL_GREET_MR', ' ' . stripslashes($HTTP_POST_VARS['lastname']) . ',' . "\n\n"); define('EMAIL_GREET_MS', ' ' . stripslashes($HTTP_POST_VARS['lastname']) . ',' . "\n\n"); define('EMAIL_GREET_NONE', 'Kj?re ' . stripslashes($HTTP_POST_VARS['firstname']) . ',' . "\n\n"); define('EMAIL_WELCOME', 'Vi ?nsker deg velkommen til Arkham.no' . "\n\n"); define('EMAIL_TEXT', 'Du har n? muligheten til ? <b>handle kvalitet til fornuftige priser.</b> Vi kan bl.a. tilby:' . "\n\n" . '<li><b>Din personlige handlevogn</b> - Alle produkter du legger i handlevognen forblir der til du fjerner dem, eller til du fullf?rer bestillingen hos oss.' . "\n" . '<li><b>Din egen adressebok</b> - Vi kan tilby ? levere varer bestilt av deg til en annen adresse! Perfekt for ? sende f.eks. bursdagsgaven direkte til bursdagsbarnet.' . "\n" . '<li><b>Ordrehistorikk</b> - Se en oversikt over bestilte varer og status p? bestillinger fra oss.' . "\n" . '<li><b>Produktomtaler</b> - Del dine erfaringer med andre handlende.' . "\n\n"); define('EMAIL_CONTACT', 'For hjelp med v?re tjenester, vennligst kontakt: [email protected]' . "\n\n"); define('EMAIL_WARNING', '<b>NB:</b> Denne epostadressen ble gitt oss av en av v?re kunder. Hvis du ikke ?nsker ? bli kunde hos oss send en epost til [email protected] '.' . "\n"); ?> I am a bit confused as to why the information above is not sendt in the welcome email?? Anyone have some good pointer to email management i OS Com (formuposts or articles or mods)? Anyways: Thanx for taking the time to read this and possibly help out... cheers! ArveK
tec Posted January 19, 2006 Posted January 19, 2006 define('EMAIL_SUBJECT', 'Velkommen som kunde av Arkham.no '); define('EMAIL_GREET_MR', ' ' . stripslashes($HTTP_POST_VARS['lastname']) . ',' . "\n\n"); define('EMAIL_GREET_MS', ' ' . stripslashes($HTTP_POST_VARS['lastname']) . ',' . "\n\n"); define('EMAIL_GREET_NONE', 'Kj?re ' . stripslashes($HTTP_POST_VARS['firstname']) . ',' . "\n\n"); define('EMAIL_WELCOME', 'Vi ?nsker deg velkommen til Arkham.no' . "\n\n"); define('EMAIL_TEXT', 'Du har n? muligheten til ? <b>handle kvalitet til fornuftige priser.</b> Vi kan bl.a. tilby:' . "\n\n" . '<li><b>Din personlige handlevogn</b> - Alle produkter du legger i handlevognen forblir der til du fjerner dem, eller til du fullf?rer bestillingen hos oss.' . "\n" . '<li><b>Din egen adressebok</b> - Vi kan tilby ? levere varer bestilt av deg til en annen adresse! Perfekt for ? sende f.eks. bursdagsgaven direkte til bursdagsbarnet.' . "\n" . '<li><b>Ordrehistorikk</b> - Se en oversikt over bestilte varer og status p? bestillinger fra oss.' . "\n" . '<li><b>Produktomtaler</b> - Del dine erfaringer med andre handlende.' . "\n\n"); define('EMAIL_CONTACT', 'For hjelp med v?re tjenester, vennligst kontakt: [email protected]' . "\n\n"); define('EMAIL_WARNING', '<b>NB:</b> Denne epostadressen ble gitt oss av en av v?re kunder. Hvis du ikke ?nsker ? bli kunde hos oss send en epost til [email protected] '.' . "\n"); hi there, though i am not sure if this will work or not, if i were you i would try replacing the above code with the below, edit the words as you like, but not the formatting, once completed, take it and paste it over the code you have above, if this does not work, it may be an email setting, make sure you have send email to 'true' define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME); define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n"); define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n"); define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n"); define('EMAIL_WELCOME', 'We welcome you to <b>' . STORE_NAME . '</b>.' . "\n\n"); 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");
arvek Posted January 26, 2006 Author Posted January 26, 2006 Thanx for helping out! I managed to find the bug: The norwegian language pack had the translation in the wrong php file. By updating the correct file with the information posted above it worked like a charm :D
Recommended Posts
Archived
This topic is now archived and is closed to further replies.