Pages:

Change currency in paypal

helloo

Avatar: helloo

2010-02-14 20:16

Hi. I'm new here and I have a problem. When people order on my payed QC and choose paypal. then paypal choose USD. But I have currency DK KR. (danish krone) and it's only 1/5 of USD. You can say it's a good bussness for me..)) But my clients are very angry..))
Anyone know where I can chance this??

» Quick.Cart v3.x

Dan

helloo

Avatar: helloo

2010-02-14 23:15

Ohh my god.. I'm sorry.. I have found out what I did wrong..)) I wrote DKKR in currency. But the right code is DKK.. So now it's work just fine..
Thanks

Dan

kalanta

No avatar

2010-03-18 12:00

PayPal doesn't accept Russian currency. What to do?

<input type="hidden" name="currency_code" value="RUB" />

https://www.paypal.com/cgi-bin/webscr?cmd=p/sell/mc/mc_wa-outside

beholder

Avatar: beholder

2010-03-18 14:35

Kalanta: you can use some on the fly dual-currency conversion in QC which would send the right sum to Paypal in USD or EUR. The conversion would work only on orders_print page and it would be just 1 or 2 variables with converted sums.

kalanta

No avatar

2010-03-18 16:33

Write me more about this solution.

beholder

Avatar: beholder

2010-03-19 01:46

well, this is pretty much untested, but I'd put it to actions_client/p.php under line:
$sOrderProducts = $oOrder->listProducts( 'orders_print.tpl', $iOrder, 'ORDER_PRINT_' );

and I'd convert $aData['sOrderSummary'] (make some new variable and then use it in orders_print.tpl).

Do the same thing if you need to convert some shipping variable or something.

kalanta

No avatar

2010-03-19 07:35

There should be a simple solution. I want to use my paypal with converted order total price.

This:
<input type="hidden" name="amount_1" value="$aData[sOrderSummary]" /> Should look like this:
<input type="hidden" name="amount_1" value="$aData[sOrderSummary2]" />

$aData[sOrderSummary2] should be = $aData[sOrderSummary]*0.4

Variable $aData[sOrderSummary2] shouldn't be displayed in orders print, order form... Just inside of payment form.

I'm not a programmer, so I don't know where to add the new variable in .php file.

beholder

Avatar: beholder

2010-03-19 15:21

I just told you where you should compute the new variable. Have you tried?

kalanta

No avatar

2010-03-19 15:39

Ok, I know where, but I don't know how exactly it should look. I tried in my way and I failed.

beholder

Avatar: beholder

2010-03-19 17:37

this way I guess:
$aData['sOrderSummary2'] = $aData['sOrderSummary']*0.4;

kalanta

No avatar

2010-03-19 17:47

I tried this before and it didn't work. After redirecting to paypal I got "Error Detected: Your shopping cart is empty."

beholder

Avatar: beholder

2010-03-20 00:48

hmm, I'd have to see the newly generated page to see what is wrong with it. Should work, I've done something like this (with dual currency) couple of times..

kalanta

No avatar

2010-03-20 08:38

Actually, I'm just trying this solution http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=5761 on free quick.cart v3.0 default version in my pc. You can download it here:

http://www.yourfilelink.com/get.php?fid=536303

In action_clients/p.php I added one line:

$sOrderProducts = $oOrder->listProducts( 'orders_print.tpl', $iOrder, 'ORDER_PRINT_' );
$aData['sOrderSummary2'] = $aData['sOrderSummary']*0.4; //I added this line only

And in templates/order_print.tpl I added:

<!-- BEGIN ORDER_PAYPAL -->
<form target="paypal" name="_$aData[iOrder]" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="sample@paypal.com">
<input type="hidden" name="item_name" value="Commande N $aOrder[iOrder]">
<input type="hidden" name="currency_code" value="$config[currency_symbol]">
<input type="hidden" name="amount" value="$aData[sOrderSummary2]">
<input type="hidden" name="no_note" value="1">
<input type="image" src="paypal.png"; name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
<!-- END ORDER_PAYPAL -->

beholder

Avatar: beholder

2010-03-20 16:22

you need to change currency symbol to some other than the one from webshop:
<input type="hidden" name="currency_code" value="EUR">

but other than that it should work, I don't see why not.

beholder

Avatar: beholder

2010-03-20 16:45

Actually, I made it work with this line instead:
$aData['sOrderSummary2'] = $aOrder['sOrderSummary'] * 0.4;

kalanta

No avatar

2010-03-20 17:10

Have you tested it? I tried and no result. After order paypal amount value is empty.

Source: http://img257.imageshack.us/img257/5034/clipboard01hl.jpg

beholder

Avatar: beholder

2010-03-20 20:15

I have tested it. The $aOrder['sOrderSummary'] contains the order summary, it must work. Unless your script is different from mine, since I am trying it on EXT version and you probably have just some paypal mod installed on the free version. BUT it should work flawlessly, I even got redirected to paypal ok.

beholder

Avatar: beholder

2010-03-20 20:23

you should remove
<!-- BEGIN ORDER_PAYPAL -->
and
<!-- END ORDER_PAYPAL -->

since I couldn't find where that block is generated and it's actually wrongly inserted between other blocks.
I can't confirm this would fix your problem but it could.

kalanta

No avatar

2010-03-20 20:45

$aData['sOrderSummary2'] still displays no price.

beholder

Avatar: beholder

2010-03-21 00:24

put $aOrder[sOrderSummary] to the tpl file and see what it does.. I think it may not be filled, but hey, it should be.

Pages:
Back to top
about us | contact