www.uburst.com www.uburst.com

"Duplicate printing of NAME"

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
 
"Duplicate printing of NAME"
Posted by garylane on Sep-17-02 at 11:33 AM (EST)
When I'm doing a PRINT ORDER or a RECEIPT, the information generally spans a couple of pages. I want to be able to print the CUSTOMER NAME a second time on the same page (just below the basket) to help track faxed pages that may get separated. How would I go about doign this?
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: Duplicate printing of NAME, Bill Weiner, Sep-18-02, (1)
"RE: Duplicate printing of NAM..., Les, Sep-18-02, (2)
Nearly there., Les, Sep-18-02, (3)
RE: Nearly there., Bill Weiner, Sep-18-02, (4)
"RE: Nearly there.", Les, Sep-19-02, (5)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Duplicate printing of NAME"
Posted by Bill Weiner on Sep-18-02 at 03:32 AM (EST)
Below are instructions on how to modify the ushop-lib.pl file such that the customer name is added a second time at the bottom of the "Print" order form:

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:

sub display_print_order_form

(This will get you to the start of the subroutine that outputs the PRINT order form.)

STEP 4: About 14 lines into that subroutine, locate the following line:

$order_footer = &get_cart_html();

... and immediately AFTER that line, add this line:

$order_footer .= "< BR > $billing_first_name $billing_last_name < BR >"

(The above line should all be on one line - not wrap around to a second line. Also, there should NOT be spaces around the two "BR" HTML tags in that line.)

STEP 5: 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
 
2 . ""RE: Duplicate printing of NAME""
Posted by Les on Sep-18-02 at 06:29 AM (EST)
Thanks Bill,

i've copied the code as you said (removed the spaces etc. and added a ; after the closing " otherwise I get an Internal Error) and there are NO internal error's, which is good, but the customers name does NOT appear on the print out. Shouls there be an instruction comment added to the order page where we want the customers name to appear?

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
 
3 . "Nearly there."
Posted by Les on Sep-18-02 at 07:46 AM (EST)
Bill we have the code set out as $order_footer = "$billing_first_name"; on the very line AFTER the $order_footer = &get_cart_html(); line and we ARE getting the name print out now BUT now the basket doesn't get displayed, if we move the above code BELOW the $order_form_html =~ s//$order_footer/g; line then the basket gets displayed but the name doesn't.

Regards

Les

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 . "RE: Nearly there."
Posted by Bill Weiner on Sep-18-02 at 07:42 PM (EST)
It looks like you are missing the "." before the equal sign. Instead of using:

$order_footer = "$billing_first_name";

use

$order_footer .= "$billing_first_name";

The ".=" means to append that onto the $order_footer value...rather than overwrite it.

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
 
5 . ""RE: Nearly there.""
Posted by Les on Sep-19-02 at 04:06 AM (EST)
Nice one Bill, that's done the trick.

Thanks

Les

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.