Converting Currency On Selecting Paypal
Posted: Fri May 10, 2013 8:15 pm
Hello Every One,
I am new here, trying to build a shopping portal.
Most Of my friends recommended OpenCart for this.
Just came up with a problem, when ever user try to checkout with currency as INR (Not supported by paypal) then it doesn't show paypal for checkout. (Modifying catalog/model/payment/paypal_standard.php Makes It Work)
instead i want to do something like showing all payment gateways, but if paypal standard is selected then automatically convert the total amount visible on confirm page into USD.
I have been doing php coding since a long time but i am familiar with fetching codes of opencart so not able to get it to work.
Piece Of Work I Thought Of
======================================
if ($selected_currency == 'INR' && $selected_gateway == 'paypal_standard') {
// 0.022 is conversion rate from inr to usd
// proceeding all values in inr to usd this way
$values_in_inr=$value_in_inr*0.022;
}
======================================
Waiting For Reply,
Rahul Shandilya
I am new here, trying to build a shopping portal.
Most Of my friends recommended OpenCart for this.
Just came up with a problem, when ever user try to checkout with currency as INR (Not supported by paypal) then it doesn't show paypal for checkout. (Modifying catalog/model/payment/paypal_standard.php Makes It Work)
instead i want to do something like showing all payment gateways, but if paypal standard is selected then automatically convert the total amount visible on confirm page into USD.
I have been doing php coding since a long time but i am familiar with fetching codes of opencart so not able to get it to work.
Piece Of Work I Thought Of
======================================
if ($selected_currency == 'INR' && $selected_gateway == 'paypal_standard') {
// 0.022 is conversion rate from inr to usd
// proceeding all values in inr to usd this way
$values_in_inr=$value_in_inr*0.022;
}
======================================
Waiting For Reply,
Rahul Shandilya