www.uburst.com www.uburst.com

"Email format"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

General Questions
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Email format"
Posted by Patrick on Feb-28-02 at 00:14 AM (EST)
When the email is set out to confirm the order it is very plain in it's address. I would like to add just before each line the field that it responds to: example;

BILLING INFORMATION
My name
14 This Road
This Town
Gt
GT
78654
USA
Phone: 345 917 7465
Fax: 345 945 1234
Email: me@me.com

I would like it to read:

BILLING INFORMATION

Name: My name
Address: 14 This Road
Town: This Town
City: Gt
State: GT
Zip: 78654
Country: USA
Phone: Phone: 345 917 7465
Fax: Fax: 345 945 1234
Email: Email: me@me.com

I know where to change this but I don't know how to write the whole line, example:

This is the line:
$text .= $customer_shipping_name . "\n";

How would it read with the name before it so it reads like above.

Thanks

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

Customizing the uStorekeeper e-mail..., Microburst Support Team, Feb-28-02, (1)
Thanks, Patrick, Feb-28-02, (2)
Ummm... where do you change this?, Clark, Mar-19-02, (3)
RE: Ummm... where do you change thi..., Bill Weiner, Mar-20-02, (6)
one more thing..., Clark, Mar-19-02, (4)
RE: one more thing..., Bill Weiner, Mar-20-02, (5)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "Customizing the uStorekeeper e-mail receipt"
Posted by Microburst Support Team on Feb-28-02 at 10:42 AM (EST)
If the output line is exactly
$text .= $customer_shipping_name . "\n";

then changing it to be exactly
$text .= "Name: " . $customer_shipping_name . "\n";

would precede the customer shipping name with the text "Name: " as you require.


(or you could write it exactly like this, note that there is a difference: )
$text = $text . "Name: " . $customer_shipping_name . "\n";


Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "Thanks"
Posted by Patrick on Feb-28-02 at 12:08 PM (EST)
Thanks
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "Ummm... where do you change this?"
Posted by Clark on Mar-19-02 at 03:09 PM (EST)
I would like to do this as well. Where do I make the changes? And can I just add the label to the fields that don't have it and not to the fields that already have a label? (phone, fax, etc...)

Thanks!

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
6 . "RE: Ummm... where do you change this?"
Posted by Bill Weiner on Mar-20-02 at 10:38 PM (EST)
The format of the emails is controlled by the "get_receipt_text" subroutine in the "ushop-lib.pl" file. Open that file with any text editor and do a seach on "sub get_receipt_text" to get to the start of that subroutine. You should be able to recognize where the fields are being output.
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
4 . "one more thing..."
Posted by Clark on Mar-19-02 at 03:12 PM (EST)
Can I break up the name into
First Name:
Last Name:

???

I'd like to do this at least in the customer log file but the email would be nice too.

Thanks!

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
5 . "RE: one more thing..."
Posted by Bill Weiner on Mar-20-02 at 10:33 PM (EST)
The customer log already does keep the customer's first name and last name separate. Now, if you want to just add the labels to the the customer log entries, then you can do that by modifying the "update_customer_log" subroutine in the "ushop.pl" script.

You should be able to see how to modify that subroutine. For example, change the line:

print CUST_LOG $billing_last_name . "|";

to

print CUST_LOG "Last Name: " . $billing_last_name . "|";

Is that what you wanted to do?

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.