dahammer2 Posted June 16, 2003 Posted June 16, 2003 This updates Save Wilks contribution to the slight changes in the pm2checkout payment module. Also the store I was working on used Australian dollars as the default currency so I had to do a currency convertion before sending to 2checkout This is a similar modification to the pm2checkout as Dave Wilks Contributed for the snapshot catalog-20030119.It will change the pm2checkout module so it doesn't request credit card details till you reach the 2checkout website. The release for this is based off the code in the snapshot 20030611. This should be the same as MS2 due to be released in a few days. Cor customers using other default currencys it will convert their cart total to US dollars before submitting to 2checkout. This will display a message telling the customer that there cart figure is being converted to US dollars when they goto the 2checkout payment gateway. Install: BACKUP BACKUP BACKUP replace both files retaining the structure http://www.oscommerce.com/community/contributions,904 Quote
hADeSik Posted June 21, 2003 Posted June 21, 2003 Hi, Error If my Client select Currencies USD (in 2CheckOut Order Total is Bad)... Order Total in Store = $10.77 sending to 2checkout Order Total = $40.00 ($10,77 = 40.00 PLN) PS: Sorry, my english is not very weird... Quote Regards hADeSik
hADeSik Posted June 21, 2003 Posted June 21, 2003 If Client select Currencies EUR or PLN ist OK (Prices will be converted to USD for payment.) ;) Quote Regards hADeSik
dahammer2 Posted June 21, 2003 Author Posted June 21, 2003 Indeed that is a bug! replace this at lines 90ish: if ($currency <> "USD") { $cOrderTotal = $currencies->get_value("USD") * $order->info['total']; } else $cOrderTotal = $order->info['total']; to this if (DEFAULT_CURRENCY <> 'USD') { $cOrderTotal = $currencies->get_value("USD") * $order->info['total']; } else $cOrderTotal = $order->info['total']; let me know if htat fixs it for you and I'll upload a update Quote
hADeSik Posted June 21, 2003 Posted June 21, 2003 Thanks ;) And display: Payment Information 2CheckOut - Prices will be converted to USD for payment. :? i'm try replace if ($currency <> "USD") $title = $this->title . MODULE_PAYMENT_2CHECKOUT_CURRENCY_CONVERSITION; else $title = $this->title; to if (DEFAULT_CURRENCY <> 'USD') $title = $this->title . MODULE_PAYMENT_2CHECKOUT_CURRENCY_CONVERSITION; else $title = $this->title; and no effect :( Quote Regards hADeSik
dahammer2 Posted June 21, 2003 Author Posted June 21, 2003 Hmm, that worked for me How is your pricing setup. Is your default currency EUR or PLN or USD? Possible logout of your test account and relog back in (if u didn't already). I have to pop out for 2 hours, I'll try and help you more then Quote
hADeSik Posted June 21, 2003 Posted June 21, 2003 My default currency is PLN. When shopper selects by way of currency USD to be sure to 2CheckOut sending correct operation informations, but in Store display information of conversion value. (on page Order Confirmation: Payment Information 2CheckOut - Prices will be converted to USD for payment.) Quote Regards hADeSik
dahammer2 Posted June 21, 2003 Author Posted June 21, 2003 Any chance I can have alink so I can check it out personally? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.