Post by malrubaie » Thu Mar 20, 2014 1:13 am

Hello

Im using opencart 1.5.5.1 I have USD as the default currency and AED as additional but when the customer view the item in AED and continue to checkout the site doesn't send the amount to paypal in the default currency it sends the AED price which paypal understand as USD so if the customer viewing a 36 AED item he will be asked to pay 36 USD instead of 10 USD

Help please its stopping me from launching
Last edited by malrubaie on Thu Mar 27, 2014 4:44 pm, edited 1 time in total.

Opencart Version 1.5.5.1


Newbie

Posts

Joined
Sun Nov 17, 2013 7:53 am

Post by butte » Thu Mar 20, 2014 3:21 am

Check the places where PayPal is being told the currency. It may be that a customer can choose to see AED in OC but OC is sending USD to PayPal anyway. In your PP account look at the currency value(s) in your "buttons" there. In your OC PP module, see whether it agrees with PP itself.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by malrubaie » Thu Mar 20, 2014 3:46 pm

im not using paypal buttons. i have paypal standard as payment option to send a customer to paypal site to pay his total and i dont have an option to chose witch currency i send in the paypal standard module in OC
my paypal account is set only to USD. i need my site to send only the default currency to paypal even if the customer is viewing the items in another currency

Opencart Version 1.5.5.1


Newbie

Posts

Joined
Sun Nov 17, 2013 7:53 am

Post by malrubaie » Thu Mar 27, 2014 4:43 pm

Solved
malrubaie wrote:
Qphoria wrote:I've added that step into all my payment modules to convert it automatically so that the page doesn't have to change. But if you want to actually trigger the change on the page for modules that don't have currency support, you can:

If using 1.4.x:

1. EDIT:
catalog/controller/checkout/confirm.php <--normal checkout
and
catalog/controller/checkout/guest_step_3.php <-- guest checkout

2. FIND:

Code: Select all

$total_data = array();
3. BEFORE, ADD:

Code: Select all

$this->currency->set('USD');

if using 1.5.x:

1. EDIT: catalog/controller/checkout/checkout.php

2. FIND:

Code: Select all

$this->language->load('checkout/checkout');
3. AFTER, ADD:

Code: Select all

$this->currency->set('USD');

That will force the site to always change to USD when it hits the confirm page

works great thank you

Opencart Version 1.5.5.1


Newbie

Posts

Joined
Sun Nov 17, 2013 7:53 am
Who is online

Users browsing this forum: No registered users and 19 guests