www.uburst.com www.uburst.com

"Customizing Order Form"

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

Programmer Tips
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Customizing Order Form"
Posted by Norma Scott on Mar-29-02 at 08:35 PM (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.
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

RE: Customizing Order Form, Bill Weiner, Apr-01-02, (1)
Customizing order reader template, David Futcher, May-20-02, (2)
RE: Customizing order reader templa..., Bill Weiner, May-21-02, (3)
not working, Norma Scott, Jul-02-02, (4)
RE: not working, Bill Weiner, Jul-03-02, (5)
template, Norma Scott, Jul-03-02, (6)
RE: template, Bill Weiner, Jul-03-02, (7)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Customizing Order Form"
Posted by Bill Weiner on Apr-01-02 at 05:47 AM (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!

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
 
2 . "Customizing order reader template"
Posted by David Futcher on May-20-02 at 11:24 AM (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!

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 . "RE: Customizing order reader template"
Posted by Bill Weiner on May-21-02 at 04:27 AM (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!

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 . "not working"
Posted by Norma Scott on Jul-02-02 at 08:11 AM (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?
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: not working"
Posted by Bill Weiner on Jul-03-02 at 04:40 AM (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.
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
 
6 . "template"
Posted by Norma Scott on Jul-03-02 at 07:21 AM (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.
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
 
7 . "RE: template"
Posted by Bill Weiner on Jul-03-02 at 09:56 PM (EST)
Great! Glad that worked for you.
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.