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

Original Message
"My simple PayPal solution. And a question"

Posted by Ron Harter [ron@ronharter.com] on at 10:42 PM
I recently added PayPal to our site (www.excess-solutions.com) by just using the custom payment option.
This allows the customer to place the order without entering any payment information. I included instructions that after they receive the order confirmation to return to the web site and click on the PayPal logo which is on every page and send the total amount of the order. If they don't do this within a few hours of placing the order I go onto our PayPal account and request the money using the Order Number.

This is a little more time consuming but we only get a few orders a week this way so it is worth it. So far have had at least $1000.00 a month through paypal. I don't know if they would have placed the order by another method anyway though.

Will be looking forward to the new updated Ushop in the future.

The only problem I have is minor, when the order is written it shows the payment method as CUSTOM. I would like to change this so it says PayPal. I am not a programmer and hesitant to change things without knowing what I am doing. Could you tell me the line in the cart to change this?

Thanks and keep up the good work.

Ron Harter

Table of contents

Messages in this discussion
"RE: My simple PayPal solution. And a question"
Posted by Bill Weiner on at 11:20 AM
Do you want to change the text that's actually written to the order file... or do you just care about what's displayed on the order reader? Assuming that you just care about what you see on the order reader, below are instructions on how to make that change. (Let me know if you want to actually change the text in the order file).

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:

elsif ($payment_method eq "custom_payment")

STEP 4: Immediately after that line, change the two lines:

$order_instructions .= "$lang_payment_method: $lang_custom < BR > ";
$order_instructions .= "$order_processing_codes < BR > ";


$order_instructions .= "$lang_payment_method: PayPal < BR > ";
$order_instructions .= "PayPal Order < BR > ";

STEP 5: Do another search on the following line:

elsif ($payment_method eq "custom_payment")

STEP 6: Immediately after that line, change the two lines:

$ret_text .= "$lang_payment_method: $lang_custom\n";
$ret_text .= "$order_processing_codes\n";


$ret_text .= "$lang_payment_method: PayPal\n";
$ret_text .= "PayPal Order\n";

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

Posted by Ron Harter [ron@ronharter.com] on at 11:32 AM
Thanks for the prompt response.
Yes I would like to change what is actually printed on the order. So when I fax the order to the warehouse it says PayPal on it instead of Custom

Posted by Ron Harter [ron@ronharter.com] on at 12:57 PM
Sorry I should have tried it first. That did exactly what I wanted
Thank you.

P.S. I noticed a strange math error when I placed a test order:


ES2573 Delta BFC121B Blower 10 $ 100.00

Subtotal: $ 100.00
Tax (0.0%): $ 0.00
Shipping & Handling: $ 10.09
Total: $ 110.08

Its no big deal since it is only a penny but thought you might like to see if it is a problem.
Thanks again

"RE: PayPal"
Posted by Bill Weiner on at 05:51 AM
Glad that worked for you.

In regard to that penny problem.... that looks like some sort of a rounding/display problem. Based on your Shipping & Handling settings, is it the $10.09 shipping charge that is correct ... or is it the $110.08 total charge correct? I think it has to do with rounding each amount at display time... yet maintaining the exact value for calculations.... where subtotal, shipping and handling may round one way when viewed individually... but round another way when summed together and then viewed. In any case, we'll look into it.

Posted by Ron Harter [ron@ronharter.com] on at 12:51 PM
Thanks Bill,

I figured it was probably a rounding error. I use a weight formula for shipping and that is most likely the cause. I have never noticed an error greater than a penny, just thought it seemed strange.