Contributions
PayPal in Australian (AUD) Currency
This is a replacement for the current PayPal module included with oscommerce, it has an additional option for AUD (Australian) Currency. Took me forever to get it right. Install it before you try and use it.
Expand All / Collapse All
This package has AUD, Australian PayPal, Australian zones and Australia Post shipping ready to go. I paid someone to do this for me and I thought I'd share the whole package.
I used a combination of the files below and found this worked for me perfectly.
Don't for get to go into your admin and remove paypal and then re-install it.
To send users to paypal Australia (rather than the US) make the following change:-
CHANGE THIS
$this->form_action_url = 'https://secure.paypal.com/cgi-bin/webscr';
TO THIS
$this->form_action_url = 'https://secure.paypal.com/au/cgi-bin/webscr';
I also added 'Only AUD' in the following line. You will need to remove th paypal option from the admin area then re-install.
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Currency', 'MODULE_PAYMENT_PAYPAL_CURRENCY', 'Selected Currency', 'The currency to use for credit card transactions', '6', '6', 'tep_cfg_select_option(array('Selected Currency','Only AUD','Only USD','Only CAD','Only EUR','Only GBP','Only JPY'), ', now())");
This is what I did to ensure orders placed in AUD (Aussie Dollars) actually showed up correctly in paypal.
In catalog/includes/modules/payment/paypal.php
find-
if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) {
$my_currency = 'USD';
}
and replace with
if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD', 'AUD'))) {
$my_currency = 'USD';
}
That's it. Save and enjoy.
Other currencies could also be brought online in the same manner, provided paypal supports them.
The previous entries did not work for me.
Hey Guys,
Great addition for Australians, i had trouble with it transferring the payment and shipping from osc to paypal page and this is the solution. It took me days to find out so i didnt want people to go through the same. In includes/modules/payment/paypal.php find-
tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * FEECHARGE_ORDER * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .
tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * FEECHARGE_SHIPPING * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .
to
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))) .
tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .
Kind Regards,
Timon
www.naturalbodyskincare.com
This is a replacement for the current PayPal module included with oscommerce, it has an additional option for AUD (Australian) Currency. Took me forever to get it right. Install it before you try and use it.
Note: Contributions are used at own risk.