uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Email format

Knowledge Base Lobby : uShop Support Conference : General Questions
Dec-14-17 03:55 PM EST
Original Message
Email format
Author Patrick on 02-28-2002 at 00:14 (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
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  Customizing the uStorekeeper e-mail receipt Microburst Support Team, 2002-02-28 10:42:17 (1)
            Thanks Patrick, 2002-02-28 12:08:10 (2)
            Ummm... where do you change this? Clark, 2002-03-19 15:09:53 (3)
                 RE: Ummm... where do you change this? Bill Weiner, 2002-03-20 22:38:22 (6)
            one more thing... Clark, 2002-03-19 15:12:14 (4)
                 RE: one more thing... Bill Weiner, 2002-03-20 22:33:50 (5)

Messages In This Discussion
         1. Customizing the uStorekeeper e-mail receipt
        Author Microburst Support Team on 02-28-2002 at 10:42 (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";


TABLE OF CONTENTS
                 2. Thanks
                Author Patrick on 02-28-2002 at 12:08 (EST)
Thanks
TABLE OF CONTENTS
                 3. Ummm... where do you change this?
                Author Clark on 03-19-2002 at 15:09 (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!
TABLE OF CONTENTS
                         6. RE: Ummm... where do you change this?
                        Author Bill Weiner on 03-20-2002 at 22:38 (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.
TABLE OF CONTENTS
                 4. one more thing...
                Author Clark on 03-19-2002 at 15:12 (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!
TABLE OF CONTENTS
                         5. RE: one more thing...
                        Author Bill Weiner on 03-20-2002 at 22:33 (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 . "&pip;";

to

print CUST_LOG "Last Name: " . $billing_last_name . "&pip;";

Is that what you wanted to do?
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.