Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

InternetSecure - problem US/CAN $


neurotoxic

Recommended Posts

I am having problems setting up InternetSecure with osCommerce. What happens is when you select a currency from the osC website -- when you get to IS confirmation page, the prices are not always displayed with the right currency (ex: you select USD, and IS displays prices in Canadian $).

 

I believe it has to do with the Currency Switch, which I must edit from the Admin area. Here is what the code looks like. Is there anything wrong? Because no matter what option I select, there always seems to be a problem. Either it's always CAN and never US, always US and never CAN -- no matter what currency the client selected on the website...

 

switch (MODULE_PAYMENT_ISECURE_CURRENCY) {
? ? ? ?case 'Always USD':
? ? ? ? ?$trx_currency = '::{US}';
? ? ? ? ?break;
? ? ? ?case 'Always CAN':
? ? ? ? ?$trx_currency = '';
? ? ? ? ?break;
? ? case 'Either CAN or USD, else USD':
? ? ? ? ?if ( ($currency == 'CAN') || ($currency == 'USD') ) {
? ? ? ? ? $trx_currency = ?'::{US}';
?} else {
? ? ? ? ? ?$trx_currency = '';
? ? ? ? ?};
? ? ? ? ?break;
? ? ? ?case 'Either USD or CAN, else CAN':
? ? ? ? ?if ( ($currency == 'USD') || ($currency == 'CAN') ) {
? ? ? ? ? $trx_currency = '';
? } else {
?$trx_currency = '::{US}';
? ? ? ? ?}
? ? ? ? ?break;
? ? ?}

 

Thanks!

Edited by neurotoxic
Link to comment
Share on other sites

  • 3 weeks later...

There are definite issues with the current contribition.

 

Internetsecure is working on revisions and will be posting modified code next week. :)

Link to comment
Share on other sites

Most excellent! I've been hoping IS would get involved in completing this contribution, and there they are! Bravo, InternetSecure!

 

Can there be a notice posted in this thread to trigger an update message, when the completed contribution is available? I'm monitoring this thread for new posts.

 

Just a thought. :wub:

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