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

Original Message
"Changing payment method text"

Posted by Gary Torello [gary@hometoyparty.com] on at 09:27 AM

Some time ago, with your help we made a mod to ushop.pl in order to have the payment type appear in the confirmation email (see below to see what we did) which is working great.

However, we're using the "cod_payment" option to allow our consultants to place an order, get a total and then send a check PRIOR to shipping and would like the payment type line to say something other than "cod_payment" (causes confusion) like perhaps "check_payment"

How can we accomplish this? Thanks!



STEP 3: Do a search on the following line:

$receipt_text = &get_receipt_text("YES");

STEP 4: Immediately AFTER that line, add the following line:

$receipt_text .= "\nPayment Method: $payment_method\n";

STEP 5: Save the file (as TEXT if your editor asks)... and try it out!

(An indication of the type of payment should be displayed at the bottom of the email.)

Table of contents

Messages in this discussion
"RE: Changing payment method text"
Posted by Bill Weiner on at 09:32 PM
Well, if you just want it displayed on the email notification, then you can just modify STEP 4 (above) by changing it from:

$receipt_text .= "\nPayment Method: $payment_method\n";


if ($payment_method eq "cod_payment")
$receipt_text .= "\nPayment Method: Check\n";
$receipt_text .= "\nPayment Method: $payment_method\n";