Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trying to configure paypal.php to show shipping costs


jolicatellas

Recommended Posts

Posted

I have added the following code to my cat/inc/mod/payment/paypal.php file (over-write old code). Now quantity of items plus which items were purchased show up in PayPal... but there is no shipping cost. I have, of course, set Show Shipping as True in Order Total... but it's still not working.

 

$process_button_string = tep_draw_hidden_field('cmd', '_cart') .

tep_draw_hidden_field('upload', '1') .

tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) .

tep_draw_hidden_field('currency_code', $my_currency) .

tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) .

tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')) .

 

tep_draw_hidden_field('shipping_1',

number_format($order->info['shipping_cost'] *

$currencies->get_value($my_currency),

$currencies->get_decimal_places($my_currency))) .

 

tep_draw_hidden_field('tax_cart', number_format($order->info['tax']

* $currencies->get_value($my_currency),

$currencies->get_decimal_places($my_currency)));

 

for ($i=0; $i<sizeof($order->products); $i++) {

$j = $i+1;

$process_button_string .= tep_draw_hidden_field('item_name_' . $j, $order->products[$i]['name']) .

tep_draw_hidden_field('item_number_' . $j, $order->products[$i]['model']) .

tep_draw_hidden_field('quantity_' . $j, $order->products[$i]['qty']) .

tep_draw_hidden_field('amount_' . $j, $order->products[$i]['final_price']);

}

 

Anyone know what I am missing??

Posted

It seems I fixed it myself... by fluke.

 

I changed Currency in osCom admin, under Localization/currency... from 'AU Dollar' to 'AUD' so that is matched what was in english.php & paypal.php

 

Hey presto PayPal is working now, showing product, quantity, price & postage in Aussie Dollars! Yay!! :lol:

  • 3 months later...
Posted

Anyone???

 

I'm sure there are some guru's out there who know how to tweak the code.

 

PLEASE help... this one thing is making it so that my payments option costs don't get charged the same. :blink:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...