A current client has asked me to help him because the "template" he has bought is a right cut 'n shut job.
I have managed to salvage a lot of it and integrate it into zen 1.3.8 but there is one last thing that is bugging me / us.
The currency dropdown menu in the header will redirect to the advanced search page if you do not have any products on the page (if you are on the main page or the FAQ page for example). It's driving me NUTS!
The template author looks to have cloned the contents of several core zen files relating to the currencies dropdown and droppped them into the tpl_header.php file:
<td bgcolor="#47b635"><div align="center"><strong>Currencies:</strong><br>
<br style="line-height:3px;">
<!-- Currencies -->
<?=zen_draw_form('currencies', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get')?>
<?
if (isset($currencies) && is_object($currencies)) {
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($_GET);
while (list($key, $value) = each($_GET)) {
if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
$hidden_get_variables .= zen_draw_hidden_field($key, $value);
}
}
}
?>
<?=zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'class="select" onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id()?>
<!-- End Currencies -->
</div></td>
The site is thetoychest.co.uk
Any ideas as to why it is doing this and a quick fix?
Thanks
Tony



