Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add flag graphic to Currencies box


mikeuk

Recommended Posts

Posted

I m trying to add a flag image in my currency box but without success.

 

Within catalog/includes/boxes/currencies.php I have modded this line:

$boxContent = tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get');

 

to

 

$boxContent = tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get') . tep_image(DIR_WS_IMAGES . 'flagall.jpg', 'allflags');

 

I have placed the flagall.jpg in catalog/images/ and it is not showing up.

 

Help anyone? :rolleyes:

Posted

Try this:

 

    $info_box_contents[] = array('form' => tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get'),
                                'align' => 'center',
                                'text' => tep_image(DIR_WS_IMAGES . 'flagall.jpg', 'allflags') . '<br>' . tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id());

 

Matti

Posted

Hi Johnson,

 

Thanks for the modded code but I have copied and pasted it and it works only as a language not a currency change.

 

i.e. the language is changing not the currency.

 

Also the currency pull down menu disappeared and the default language image appeared.

 

any other code that will make what I need work?!

:)

Posted

Following on from the code by Johnson, does anyone know how to make individual flags, e.g. usa, euros, uk, clickable so the correct currency appears instead/as well as the pull down menu?

 

:unsure:

Archived

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

×
×
  • Create New...