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
Order Number in Store e-mail receipt?

Knowledge Base Lobby : uShop Support Conference : Programmer Tips
Nov-21-17 10:32 PM EST
Original Message
Order Number in Store e-mail receipt?
Author AlexW on 01-25-2001 at 18:23 (EST)
Bill,

How do you assign the order number to display in the merchant's e-mail subject?

Alex
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Order Number in Store e-mail receipt? Bill Weiner, 2001-01-26 05:51:56 (1)
            Order Number in Store e-mail receipt? AlexW, 2001-01-26 18:42:41 (2)
            Order Number in Store e-mail receipt? Sommay, 2001-02-15 00:51:52 (3)
                 RE: Order Number in Store e-mail receipt? Bill Weiner, 2001-02-15 06:25:57 (4)

Messages In This Discussion
         1. RE: Order Number in Store e-mail receipt?
        Author Bill Weiner on 01-26-2001 at 05:51 (EST)
That would require making a couple changes to the "complete_order" subroutine of the "ushop.pl" script, as described below:

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

STEP 2: Open your "ushop.pl" file with any text editor such as Word Pad.

STEP 3: In order to locate the area in the "ushop.pl" file where the email notification is sent, do a search on the following line:

# Send receipt to storeowner.

STEP 4: A couple lines down from that "# Send receipt to storeowner." comment, you will see the following line:

&send_email($billing_email,$settings[5],$settings[7],$receipt_text);

You can add the order number to the subject by changing that line to:

&send_email($billing_email,$settings[5],$settings[7] . " $order_number",$receipt_text);

STEP 5: A few more lines down in that subroutine, you will see this line:

&send_email($billing_email,$email_address,$settings[7],$receipt_text);

Change that line also:

&send_email($billing_email,$email_address,$settings[7] . " $order_number",$receipt_text);

STEP 6. Save the file (as TEXT if your editor asks)... and try it out!
TABLE OF CONTENTS
                 2. Order Number in Store e-mail receipt?
                Author AlexW on 01-26-2001 at 18:42 (EST)
Bill ...

Any business on the web would do well to model your service! Thank you so much ... exactly what we need!

You guy's run tight. :)

Alex
TABLE OF CONTENTS
                 3. Order Number in Store e-mail receipt?
                Author Sommay on 02-15-2001 at 00:51 (EST)
How do I make these change for "ushop_authnet_30.pl"


>That would require making a couple changes
>to the "complete_order" subroutine of the
>"ushop.pl" script, as described below:
>STEP 1: Make a backup of your
>current "ushop.pl" file... just in case.
>
>STEP 2: Open your "ushop.pl" file with
>any text editor such as Word
>Pad.
>STEP 3: In order to locate the
>area in the "ushop.pl" file where
>the email notification is sent, do
>a search on the following line:
>
># Send receipt to storeowner.
>STEP 4: A couple lines down from
>that "# Send receipt to storeowner."
>comment, you will see the following
>line:
>&send_email($billing_email,$settings[5],$settings[7],$receipt_text);
>You can add the order number to
>the subject by changing that line
>to:
>&send_email($billing_email,$settings[5],$settings[7] . " $order_number",$receipt_text);
>STEP 5: A few more lines down
>in that subroutine, you will see
>this line:
>&send_email($billing_email,$email_address,$settings[7],$receipt_text);
>Change that line also:
>&send_email($billing_email,$email_address,$settings[7] . " $order_number",$receipt_text);
>STEP 6. Save the file (as TEXT
>if your editor asks)... and try
>it out!


TABLE OF CONTENTS
                         4. RE: Order Number in Store e-mail receipt?
                        Author Bill Weiner on 02-15-2001 at 06:25 (EST)
To add the order number to the subject of the email receipt in the older version of uShop 2.x, here is how it can be done:

1) Open the "ushop_authnet_30.pl" file with any text editor such as Word Pad.

2) Do a search on the following line:

# Send email notifications.

3) Immediately after that line, add the following two lines:

$store_subject .= " $uShop_filename";
$customer_subject .= " $uShop_filename";

4) Save the file (as TEXT if your editor asks)... and try it out!
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.