URL: http://www.uburst.com/cgi-bin/dcforum/dcboard.cgi
Forum: ustore_gen
Thread Number: 70
[ Go back to previous page ]

Original Message
"Headers & Footers"

Posted by Patrick [kriptap@candw.ky] on at 12:45 PM
Did you have any more ideas on how to put a header and footer on the order and credit card pages?

Thanks


Table of contents

Messages in this discussion
"RE: Headers & Footers"
Posted by Bill Weiner on at 09:55 PM
What sort of header and footer do you want to put on those two pages?

Here are some steps on how add your own custom HTML header and footer to those pages:

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

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

STEP 3: Do a search on the following line:

sub create_order_form

This will get you to the start of the subroutine that outputs the order form HTML.

STEP 4: Locate the following line in that "create_order_form" subroutine:

print " < IMG SRC=\"" . $secure_store_banner . "\" > ";

And immediately BEFORE that line, add a new "print" line with your custom HTML.

STEP 5: Near the end of that "create_order_form" subroutine, locate the following line:

print " < /BODY > < /HTML > ";

And immediately BEFORE that line, add a new "print" line with your custom HTML.

STEP 6: Do a search on the following line:

sub review_order

This will get you to the start of the subroutine that outputs the review form HTML.

STEP 7: Locate the following line in that "review_order" subroutine:

print " < IMG SRC=\"" . $settings[89] . "\" > ";

And immediately BEFORE that line, add a new "print" line with your custom HTML.

STEP 8: Near the end of that "review_order" subroutine, locate the following line:

print " < /BODY > < /HTML > ";

And immediately BEFORE that line, add a new "print" line with your custom HTML.

STEP 9: Do a search on the following line:

sub create_credit_card_form

This will get you to the start of the subroutine that outputs the credit card order form HTML.

STEP 10: Locate the following line in that "create_credit_card_form" subroutine:

print " < IMG SRC=\"" . $secure_store_banner . "\" > ";

And immediately BEFORE that line, add a new "print" line with your custom HTML.

STEP 11: Near the end of that "create_credit_card_form" subroutine, locate the following line:

print " < /BODY > < /HTML > ";

And immediately BEFORE that line, add a new "print" line with your custom HTML.

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


"Thank You"
Posted by Patrick [kriptap@candw.ky] on at 08:45 PM
Thanks that just what I needed. Great help and a great product.