Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Switching currencies


palosanto

Recommended Posts

Posted

What would be the html/PHP code necessary to change the current page to another currency?

I would like to eliminate the currency dropdown box and put a US and Canadian flags instead which when clicked the corresponding currency is applied to whatever page is displayed, so basically the same effect than using the dropdown box.

 

This is my first attempt to switch to Canadian dollar:

 

<?php echo '<a href="' . tep_href_link(basename($PHP_SELF), '', 'NONSSL' , true) . '?currency=CAD">';

?>

 

<img border="0" src="images/cadflag_ani.gif" alt="Canadian dollar"></a>

 

Can someone please help me to correct this code?

 

Thanks

  • 3 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...