mikeuk Posted May 17, 2004 Posted May 17, 2004 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:
Guest Posted May 17, 2004 Posted May 17, 2004 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
mikeuk Posted May 17, 2004 Author Posted May 17, 2004 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?! :)
mikeuk Posted May 17, 2004 Author Posted May 17, 2004 I got it working now. Thanks for the code Johnson.
mikeuk Posted May 17, 2004 Author Posted May 17, 2004 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:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.