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
Field names in email receipt

Knowledge Base Lobby : uShop Support Conference : General Questions
Nov-20-17 10:40 AM EST
Original Message
Field names in email receipt
Author Ron on 12-27-2002 at 20:30 (EST)
I was wondering if it is possible to have field names visible in the email receipts sent to the customer and me, the merchant.

When a customer fills in fields on the order form that I have added, such as "extra_field1" and "extra_field2," these values simply appear on the receipts with no field names, so the information appears arbitrary. Can I get the field names to appear?

ALSO ---

I, as the merchant, only need to receive the necessary information on the emailed receipt. I don't need to see the email message that I added in the General Settings/Email Notification area. This info is only for the customer.

Is there a way to remove this info on the emailed receipt that I recveive?
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Field names in email receipt Bill Weiner, 2003-01-03 06:21:59 (1)

Messages In This Discussion
         1. RE: Field names in email receipt
        Author Bill Weiner on 01-03-2003 at 06:21 (EST)
Both of your requests would require slight modifications to the uShop CGI script as described below:

-------------

INSTRUCTIONS ON HOW TO ADD FIELDS LABELS TO THE "EXTRA" FIELDS ON THE EMAIL RECEIPT

STEP 1: Make a backup of your current ushop-lib.pl script.... just in case.

STEP 2: Open your ushop-lib.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line:

$text .= $extra_field1 . "n";

(This will get you to the place where the first "EXTRA" field is added to the receipt text.)

STEP 4: Add your label to that line accordingly by putting the label before the $extra_field1 as shown in the example below.

Example:

$text .= "My label: " . $extra_field1 . "n";

STEP 5: Repeat for the other 4 EXTRA fields as necessary. (You should see the $extra_field2 - $extra_field5 lines a couple lines further down in the script.)

STEP 6: Save the script... as TEXT if your editor asks... and try it out!

-------------

INSTRUCTIONS ON HOW TO HIDE THE EMAIL MESSAGE ON THE EMAIL NOTIFICATION SENT TO THE STOREOWNER

STEP 1: Make a backup of your current ushop.pl script.... just in case.

STEP 2: Open your ushop.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line:

$receipt_text = &get_receipt_text("YES");

STEP 4: Change that line to:

$receipt_text = &get_receipt_text("NO");

STEP 5: Do a search on the following line:

# Send receipt to customer.

STEP 6: Immediately AFTER that line, add the following line:

$receipt_text = &get_receipt_text("YES");

STEP 7: Save the script... as TEXT if your editor asks... and try it out!
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.