Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Currencies changer on my store


dreampho

Recommended Posts

Posted

Hi. I have the currencies infoBox located under the shopping cart infoBox in the right column of my store. I've modified the default behaviour so it appears on all pages instead of disappearing during the checkout process. To do this, I moved the currencies infoBox code in /catalog/column_right.php from the bottom of the file to immediately below the shopping cart infoBox code at the top. My current code looks like this:

 

/* ### HACK - Hide Shopping Cart
 require(DIR_WS_BOXES . 'shopping_cart.php');
*/
if ($cart->count_contents() > 0) include(DIR_WS_BOXES . 'shopping_cart.php');
/* HACK ### */
/* ### HACK - include currencies box & change currency during checkout */
include(DIR_WS_BOXES . 'currencies.php');
/* HACK ### */

/* ### HACK - move 'Currencies' from bottom of column to top under shopping cart - replaced by above 'include'
 if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
include(DIR_WS_BOXES . 'currencies.php');
 }
HACK ### */

 

The 'Hide Shopping Cart' comments/code are another contribution I've installed that hides the shopping cart infoBox if the cart is empty. You can safely ignore that modification and place the currencies code wherever you like, including in /catalog/column_left.php.

 

This currencies modification also changes the product/shipping/order totals on the fly when the currencies drop-down is changed, and works during the checkout procedure as well.

 

Cheers. HTH.

Archived

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

×
×
  • Create New...