add currency dropdown to menu bar

If you run an e-commerce website that accepts multiple currencies, then customers will appreciate being able to change currencies quickly.

currency dropdown added to cre63_ats template

This modification adds a currency dropdown to a menu bar (part of the cre63_ats template for Cre Loaded), however it will work for all osCommerce-based carts with minor tweaks.

            
    currencies);
                   $currencies_array = array();
                   while (list($key, $value) = each($currencies->currencies)) {
                  $currencies_array[] = array('id' => $key, 'text' => $value['title']);
                }
                  $hidden_get_variables = '';
                  reset($_GET);
                  while (list($key, $value) = each($_GET)) {
                  if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {
                  $hidden_get_variables .= tep_draw_hidden_field($key, $value);
                }
              }
            }
                  echo tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get');
                  echo tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();"') . $hidden_get_variables . tep_hide_session_id();
                  echo '';
    ?>

Disable any ‘Switch to Default Language Currency’ setting you may have enabled in your Configuration panel.