Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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
Posted

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...

Regards

hADeSik

Posted

If Client select Currencies EUR or PLN ist OK (Prices will be converted to USD for payment.) ;)

Regards

hADeSik

Posted

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

Posted

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 :(

Regards

hADeSik

Posted

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

Posted

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.)

Regards

hADeSik

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...