Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Module is using the wrong currency total


MrMint

Recommended Posts

Hey folks,

 

I'm having a bit of trouble with the moneris payment module. My shopping cart has two currencies (CAD, USD) which works fine all the way up until the payment module is called. No matter what I do, it sends the payment request total for the USD amount (which is the default).

 

How do I get the module to use the proper total?

 

From the moneris module, the following is the line used to fetch the total:

tep_draw_hidden_field('charge_total', number_format($order->info['total'], 2, '.', '')) .

 

Any help would be much appreciated.

 

Thanks!

 

-Ken

Link to comment
Share on other sites

  • 2 months later...

Okay I'm having the same issue with the CAD and USD currencies. Problem is Moneris assigns two store ID's, one for the USD and one for the CAD. When you configure your payment module you're assigning the store ID. There needs to be a script that reads what currency the user is viewing in and then assigning the store ID based on currency...

 

Something like...

If currency = CAD then

Store ID = 1234Canada

Else

Store ID = 2345US

 

Problem I have is how, or where do we write this code.

 

Any help would be appreciated.

Edited by jkc
Link to comment
Share on other sites

The latest Optimal Payments/Firepay contribution uses 2 currencies (Canada & USA).  Maybe you can hack it for Moneris.

 

Thxs JR ... at first glance all looks good. I'll run it through some more tests tomorrow and post comments.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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