Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Horrible Template & Currencies Problem

Horrible Template & Currencies Problem

Locked

Views: 980

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
14 Feb 2008, 9:10 PM
#1
twdhosting avatar

twdhosting

Zen Follower

Join Date:
Mar 2005
Posts:
119
Plugin Contributions:
0

Horrible Template & Currencies Problem

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

14 Feb 2008, 10:26 PM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Horrible Template & Currencies Problem

pm sent

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others