baalwww Posted May 19, 2006 Share Posted May 19, 2006 I have my admin set to add a handling fee of $5. I received my first order since, and the order info on OSC shows the handling fee, and an order total that includes the handling fee. The order amount passed to Paypal Pro, and thus the amount charged to the customer, did not include the $5. HELP! Quote Link to comment Share on other sites More sharing options...
ritcho Posted May 22, 2006 Share Posted May 22, 2006 I have my admin set to add a handling fee of $5. I received my first order since, and the order info on OSC shows the handling fee, and an order total that includes the handling fee. The order amount passed to Paypal Pro, and thus the amount charged to the customer, did not include the $5. HELP! Hi, I was having a similar problem, and needed it fixed fast, so i took matters into my own hands.... if you look at cart/includes/modules/payment/paypal.php you should see on about line 89: tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . if you have a look, it seems to be taking the shipping amount off the total amount and then passing it to paypal. (- $order->info['shipping_cost']). I just deleted this part and it seems to work perfectly now. The code may seem a little different because i have optimised it for australian paypal, but it should still work if this hasn't been done. Warning: I am only an amature, so please backup before trying this. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 22, 2006 Share Posted May 22, 2006 I have my admin set to add a handling fee of $5. I received my first order since, and the order info on OSC shows the handling fee, and an order total that includes the handling fee. The order amount passed to Paypal Pro, and thus the amount charged to the customer, did not include the $5. HELP! Usually you set the handling fee in the shipping modules. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 22, 2006 Share Posted May 22, 2006 Hi, I was having a similar problem, and needed it fixed fast, so i took matters into my own hands.... if you look at cart/includes/modules/payment/paypal.php you should see on about line 89: tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . if you have a look, it seems to be taking the shipping amount off the total amount and then passing it to paypal. (- $order->info['shipping_cost']). I just deleted this part and it seems to work perfectly now. The code may seem a little different because i have optimised it for australian paypal, but it should still work if this hasn't been done. Warning: I am only an amature, so please backup before trying this. It would depend on what PayPal contrib you have installed. If your solution works, that is good. I don't know of any optimisation for Australian PayPal (apart from to specify AUD and paypal.com.au). I am still using the US one while specifying AUD as a currency. Quote Link to comment Share on other sites More sharing options...
baalwww Posted May 22, 2006 Author Share Posted May 22, 2006 It would depend on what PayPal contrib you have installed. If your solution works, that is good. I don't know of any optimisation for Australian PayPal (apart from to specify AUD and paypal.com.au). I am still using the US one while specifying AUD as a currency. OK. I had set the handlng fee under Order Total. So I've gone in and set that to false, and set a handling fee in within the shipping vendors. The line you pointed out is curious in that the shipping and handling were both included in the OS order and total, but the HANDLING was not passed to paypal, the shipping WAS. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.