Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2005
    Posts
    123
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Horrible Template & Currencies Problem

    pm sent

 

 

Similar Threads

  1. Listed products looks horrible in red passion template - where i can fix it?
    By intrium in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Aug 2008, 07:00 PM
  2. ssl horrible problem
    By dora in forum Basic Configuration
    Replies: 2
    Last Post: 1 Jul 2008, 11:26 PM
  3. Clean Business Template & Firefox Problem
    By adnimas5 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 22 Jan 2008, 05:28 PM
  4. Currencies & PayPal
    By rush_woman in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 4
    Last Post: 19 Jun 2007, 09:34 AM
  5. update currencies & URL file-access & cURL
    By mrmarcus66 in forum General Questions
    Replies: 1
    Last Post: 10 Aug 2006, 05:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg