Loaded Commerce Community

Banner


Board index » Loaded Commerce Support » General Support

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: trying to get the code right!!! ARRRGH
PostPosted: Wed Jan 11, 2012 1:15 am 
Offline
CRE Newbie

Joined: Tue Dec 13, 2011 7:51 pm
Posts: 13
Hi,

I need to insert a "Regards" after the automated email that creloaded6 send when i get a new customer set up an account.

I have created a new EMAIL_REGARDS "define" entry under the create_account.php in the languages area. I have then added the EMAIL_REGARDS into the area in the httpdocs\create_account.php area after the EMAIL_CONTACT area section.

My problem is that the output on the email has the contact email address, merged with "regards" and then a new line and my company name, see attached PNG.

Have I done something wrong on the 7th or so line down on the code? Do i need to maybe add a /n/n or something?

I have put the only two sections in here where the EMAIL parts are.

Can anyone help! Please..



Code:
    if (EMAIL_USE_HTML == 'true') {
        $formated_store_owner_email = '<a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">' . STORE_OWNER . ': ' . STORE_OWNER_EMAIL_ADDRESS . '</a>';
      } else {
        $formated_store_owner_email = STORE_OWNER . ': ' . STORE_OWNER_EMAIL_ADDRESS;
      }
      $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . $formated_store_owner_email . EMAIL_REGARDS ;
      if ( ACCOUNT_EMAIL_CONFIRMATION == 'true' ) {
        $email_text .=  "\n" . MAIL_VALIDATION . "\n" . '<a href="' . tep_href_link('pw.php', 'action=reg&pass=' . $Pass . $Pass_neu . '&verifyid=' . $customer_id, 'SSL', false) . '">' . VALIDATE_YOUR_MAILADRESS . '</a>' . "\n" . "\n" . '(' . SECOND_LINK . ' ' . tep_href_link('pw.php', 'action=reg&pass=' . $Pass . $Pass_neu . '&verifyid=' . $customer_id, 'SSL', false) . ' )' . "\n" . "\n". OR_VALIDATION_CODE . $Pass . $Pass_neu . "\n" . "\n";         
      }



next bit of code
Code:
  }
//    $email_text .= EMAIL_TEXT . EMAIL_CONTACT . EMAIL_REGARDS;
// ICW - CREDIT CLASS CODE BLOCK ADDED  ******************************************************* END


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: trying to get the code right!!! ARRRGH
PostPosted: Wed Jan 11, 2012 3:15 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2404
Location: New Zealand
Couple of options-
1. Admin >> Configuration >> Email Options >> Use MIME HTML when sending emails = true
or
2. or try:
this:
Code:
$email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . $formated_store_owner_email . EMAIL_REGARDS ;

should be:
Code:
$email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . $formated_store_owner_email . "\n\n" . EMAIL_REGARDS . "\n\n";

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: trying to get the code right!!! ARRRGH
PostPosted: Wed Jan 11, 2012 4:08 pm 
Offline
CRE Newbie

Joined: Tue Dec 13, 2011 7:51 pm
Posts: 13
Hi Simon,

Thanks for your help! :D

Did the second option in the code and worked.

I knew I was close, just need to get my coding skills up to scratch!


Many Thanks!!!! I owe you a beer when im in NZ next :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Board index » Loaded Commerce Support » General Support

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Wed May 23, 2012 8:42 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy