0

I have a Magento 1.7 store with USD base currency. I display prices in KWD. When a customer shops in KWD, the checkout page shows all items' KWD value, a total in KWD and then another line with the USD value: "total to be charged to your credit card", which is correct.

However, the 2Checkout receiving interface (according to a screenshot their support sent me) shows that KWD is being passed, not USD.

Base currency is set as USD, and the total to be bill shows up correctly as USD on the customer checkout screen however the numbers passed to 2Checkout in the background are in KWD for some reason and I end up with a PE 102 Error

Any ideas? Please note, Caching is set to off, and I have entered my currency conversion in Magento currency setup.

EntreQ8T
  • 3
  • 3

1 Answers1

0

The 2Checkout extension passes in the total in the buyers selected currency and passes in the currency code to override your 2Checkout base pricing currency. This way you can offer pricing in multiple currencies on your website. If you would like to change this behavior, you would need to change the Checkout model to use:

$amount   = round($order->getBaseGrandTotal(), 2);

instead of:

$amount   = round($order->getGrandTotal(), 2);

This will pull the total from the $order object in your base currency instead of the buyers display currency. Please note however that the 2Checkout PE 102 error is an account related error and is not related to currency.

Please feel free to contact me directly at christensoncraig@gmail.com so that I can help you make the appropriate modifications.

Craig-2Checkout
  • 741
  • 5
  • 7
  • Thanks! have made the above edit and `$tcoFields[’currency_code’] = $currency_code;` has been commented out in the Checkout.php file. Seems PE:102 error still reported even though I can see the http headers aren't passing a currency attribute now. Will contact 2Checkout and check. – EntreQ8T May 13 '13 at 09:05
  • Ok, found the solution, hard corded the currency code to USD in the Checkout.php file. Seems to be behaving now. I will have to change this hard coding currency code if I ever change the base currency I use in my 2Checkout account. – EntreQ8T May 13 '13 at 09:20