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
Customizing Order Form

Knowledge Base Lobby : uShop Support Conference : Programmer Tips
Nov-20-17 10:40 AM EST
Original Message
Customizing Order Form
Author Norma Scott on 03-29-2002 at 20:35 (EST)
I would like to customize the order form that gets printed when I use the Order Reader. I'm talking about the file which resides on the secure server that contains all customer information including credit card #, billing/shipping address, etc. I want to add our company logo, name and address at the top. Then we can use it as the packing slip for the order, instead of always typing up a separate one. Can this be done? and how? Thanks.
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Customizing Order Form Bill Weiner, 2002-04-01 05:47:29 (1)
            Customizing order reader template David Futcher, 2002-05-20 11:24:22 (2)
                 RE: Customizing order reader template Bill Weiner, 2002-05-21 04:27:34 (3)
            not working Norma Scott, 2002-07-02 08:11:45 (4)
                 RE: not working Bill Weiner, 2002-07-03 04:40:46 (5)
                      template Norma Scott, 2002-07-03 07:21:44 (6)
                           RE: template Bill Weiner, 2002-07-03 21:56:20 (7)

Messages In This Discussion
         1. RE: Customizing Order Form
        Author Bill Weiner on 04-01-2002 at 05:47 (EST)
Actually, you can specify the name of the template to use for the Order Reader via the "Order Reader Template:" field on the uShop Control Panel under GENERAL SETTINGS - MISCELLANEOUS. The default value of that "Order Reader Template:" field is that standard "order_template.html" page, but you could create another version of the "order_template.html" page for use just by your order reader:

STEP 1) Make a copy of the "order_template.html" page... perhaps calling it "order_reader_template.html".

STEP 2) Follow the same customization rules described in Section 9 of the uShop User's Guide (http://www.uburst.com/uShop/reference/users_guide.html) in order to customize that template for your order reader.

STEP 3) Specify the new template name in the "Order Reader Template:" field on the control panel.

STEP 4) Try it out!
TABLE OF CONTENTS
                 2. Customizing order reader template
                Author David Futcher on 05-20-2002 at 11:24 (EST)
Bill,

I also was working on creating a template for the order reader that could be used as a mailing label. We want to be able to cut off the top of the printed page and tape that to the box.

However, it appears that the script will only replace the form fields once on the page. For instance, the form field billing_first_name will be replaced with the customer's first name on the first instance in the page, but on any subsequent call, it will just give you a standard FORM input box.

Can the script be modified so that we could have the fields replaced with the relevant data at least twice? This way, the client's name/address could be cut off a top mailing label and still show on the lower part of the form.

Thanks!



TABLE OF CONTENTS
                         3. RE: Customizing order reader template
                        Author Bill Weiner on 05-21-2002 at 04:27 (EST)
That is correct, only the first occurance of the field tags will be replaced. If you want to replace multiple occurrances of specific field tags, then below is a description of the easiest (and most efficient) way to accomplish that:

STEP 1: Make a backup of your 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:

sub substitute_order_form_fields

... This will get you to the start of the subroutine that handles substituting actual values into the fields on the orderforms/templates.

STEP 4: Duplicate the lines/fields that you want to have mulitple replaces. For instance, if you want the customer's first name (the "billing_first_name" field) to be replace twice, then locate the line:

$src_string = &replace_section($src_string,"","billing_first_name",$billing_first_name);

And then simply duplicate it:

$src_string = &replace_section($src_string,"","billing_first_name",$billing_first_name);
$src_string = &replace_section($src_string,"","billing_first_name",$billing_first_name);

This will cause the search/replace to be performed twice for that field.

(Note: In the above example, a couple of the lines have greater-than and less-than signs in them, but this forum strips out those characters.)

STEP 5: Repeat for all the fields that you want replaced multiple times.

STEP 6: Save the script...as TEXT if your editor asks... and try it out!
TABLE OF CONTENTS
                 4. not working
                Author Norma Scott on 07-02-2002 at 08:11 (EST)
Well, I finally got around to trying this, and it didn't work like I wanted. Sure, the order form on-line showed the customization, but the order reader form that I pull off our secure server with the credit card/shipping info didn't have it. All I'm trying to do is have our company logo and name/address print at the top of the page, so we can include it in the box as a receipt. Help? What am I missing?
TABLE OF CONTENTS
                         5. RE: not working
                        Author Bill Weiner on 07-03-2002 at 04:40 (EST)
Did you change the name of the "Order Reader Template:" field on the uShop Control Panel... under GENERAL SETTINGS - MISCELLANEOUS? That field should be set to your custom template for the Order Reader.... and NOT the same template as you use for ordering. Since you mention that the change showed up during ordering... but not on the Order Reader... that leads me to believe you changed the templates under GENERAL SETTINGS - ORDER FORM SETTINGS... but not the one under GENERAL SETTINGS - MISCELLANEOUS. You want to specify your custom Order Reader Template in the GENERAL SETTINGS - MISCELLANEOUS "Order Reader Template:" field.
TABLE OF CONTENTS
                                 6. template
                                Author Norma Scott on 07-03-2002 at 07:21 (EST)
PERFECT!! Thank you. You guys are the best. It was much simpler than I thought. I didn't realize there were two places to change. Thanks again.
TABLE OF CONTENTS
                                         7. RE: template
                                        Author Bill Weiner on 07-03-2002 at 21:56 (EST)
Great! Glad that worked for you.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.