Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 2 votes

Help with currency box


  • You cannot reply to this topic
No replies to this topic

#1 Alicena'Afgstar'Ahmadi

  • Community Member
  • 1 posts

Posted 24 January 2012, 14:59

hey all

i am new to oscommerce and abit of a newbie at times.

i recently integrated the Currency Flag Contribution from http://www.oscommerce.com/community/contributions,4609/page,8

i managed to install everything fine but then i ran into a problem while displaying the flags or in my case currency symbols in my header for some reason there is a info box around it.

Attached File  header.jpg   52.44K   8 downloads

here is my code

					   <td width="60" height="0">
	  <br><br style="margin:20px">
	
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_CURRENCIES);
new infoBoxHeading($info_box_contents, false, false);
reset($currencies->currencies);
$currencies_array = array();
while (list($key, $value) = each($currencies->currencies)) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = '';
reset($currencies->currencies);
while (list($key, $value) = each($currencies->currencies) ) {
if( $currency == $key )
$hidden_get_variables .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'currency=' . $key, $request_type) . '">' . tep_image(DIR_WS_ICONS . $value['image1'], $value['title']) . '</a> ';
else
$hidden_get_variables .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'currency=' . $key, $request_type) . '">' . tep_image(DIR_WS_ICONS . $value['image2'], $value['title']) . '</a> ';
}
$info_box_contents = array();
$info_box_contents[] = array('align' => 'center',
'text' => $hidden_get_variables);
new infoBox($info_box_contents);
?>
</td>


thanks in advance for your assistance