Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pound Sterling


Karole

Recommended Posts

Posted

Hi All,

I am hoping that someone here can help. I am assisting a client with their oscommerce store.

 

Their store default and only currency is Pound Sterling. All of the values are coming up as pounds, but when the amounts are transferred into Paypal, they are the same. But this is wrong as they then get converted and the amount paid in pounds is considerable less.

 

Here is a quote from someone I had check it since they have a default of Pounds in their paypal account.

 

"I put through an order for ?2.50 plus ?2.00 postage a total of ?4.50. It transferred me to PayPal but still came up with a default currency of USD saying the cost was $4.50 not ?4.50 but I decided to go through with the whole transaction to see what would happen.

 

As you go through it then converts the $4.50 into sterling so we only receive ?2.38 instead of ?4.50!."

 

This is the code from paypal.php:

 

$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['GPB']['value'], 2)) .

tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost']. $currencies->get_value('GPB'), 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'));

 

 

Any suggestions on how to fix this??

Thanks,

 

Karole

Posted
tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']). $currencies->currencies['GPB']['value'], 2))

 

GPB rather than GBP would that make a difference ?

Your online success is Paramount.

Posted

Boy do I feel dumb!!!

 

That is why I need someone else peeking on occasion.....

Thanks,

 

Karole

Posted
Boy do I feel dumb!!!

 

That is why I need someone else peeking on occasion.....

actually it is on two lines:

 

tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']). $currencies->currencies['GPB']['value'], 2)) .
tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost']. $currencies->get_value('GPB'), 2)) .

 

i know the feeling though.

Your online success is Paramount.

Posted

Although the GBP is the way it is supposed to be, it still seems to not convert properly when it gets to the paypal form.

 

I just did a test order and the total in the store was for:

 

Sub-Total: ?26.98

Best Way: ?3.50

Total: ?30.48

Balance to pay ?30.48

 

But when I click continue it tells me that I owe $30.48 US. Now my paypal is set up to default as a US, but I have been charged in pound before and it has converted properly on other times.

 

So....it still doesn't work.

 

:(

Thanks,

 

Karole

Posted

I did change both of them....so it doesn't seem to be the problem.

 

Thanks....

Thanks,

 

Karole

Posted

OK, here is more information.

The store is ONLY set up in GBP with no other currency available. However, if consistently says $'s not pounds on the form to Paypal...

 

Anyone have any ideas what to do???

 

Please I am desperate and can't figure out how to fix this.

 

Karole

Thanks,

 

Karole

Posted

Try:

 

tep_draw_hidden_field('currency_code', $my_currency)

 

Where $my_currency is that the right currency code to use, really osC should be handling this for you rather than being hard coded, but I don't have time to look more thoroughly. Also checkout the PayPal Shopping Cart Manual if needed.

"Any fool can know. The point is to understand." -- Albert Einstein

Posted

Mine work okay but I have GBP set as my default currency in my Paypal account. ??

Posted

Hi

 

 

How did you get on with resolving this as I have exactly the same problem?

 

Regards

 

Paul

Posted

Are you using an older version of oscommerce? I was. A friend who knows php took a look at if for me and he fixed the code since I had an old paypal mod.

 

Karole

Thanks,

 

Karole

Archived

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

×
×
  • Create New...