ewebbed Posted November 20, 2002 Posted November 20, 2002 Hi I received the following email from PayPal announcing their new currencies: http://www.paypal.com/cgi-bin/webscr?cmd=p...c/mc_wa-outside Is there a file i can change within oscommerce that allows me to have the payment in GBP instead of dollars? Many Thanks James cooke
Guest Posted November 20, 2002 Posted November 20, 2002 Hi James! You can check out the new release of the PayPal IPN Payment Module released a few minutes ago! :) Read that message and there you will also find the links to the module. I hope it helps! best regards
ewebbed Posted November 20, 2002 Author Posted November 20, 2002 hi again So is that the only way to change the currency, i only offer GBP so is there a 'simple' fix to the current files that will enable me to do this? Simple as in minimum effort!! thanks james
Guest Posted November 21, 2002 Posted November 21, 2002 Hi James Try editing the /catalog/includes/payment/modules/paypal.php file and change from this code: $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->currencies['USD']['value'], 2)) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value('USD'), 2)) . 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')); To this: $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->currencies['GBP']['value'], 2)) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value('GBP'), 2)) . tep_draw_hidden_field('currency_code','GBP') . 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')); I think that should work Make sure you have GBP as an available currency in your shop! Best regards
Guest Posted November 21, 2002 Posted November 21, 2002 Hi James Try editing the /catalog/includes/payment/modules/paypal.php file and change from this code: $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->currencies['USD']['value'], 2)) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value('USD'), 2)) . 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')); To this: $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->currencies['GBP']['value'], 2)) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value('GBP'), 2)) . tep_draw_hidden_field('currency_code','GBP') . 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')); I think that should work Make sure you have GBP as an available currency in your shop! Best regards
Recommended Posts
Archived
This topic is now archived and is closed to further replies.