Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2010
    Posts
    2
    Plugin Contributions
    0

    Default currency drop down list error

    I downloaded and installed a theme but an error shows up where the currency drop down list suppose to be.

    I'm having trouble figuring out why it shows the error where i have not touched any of the codes.

    Here is the error message i get

    $ 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); } } } ?>

    Can someone please lead me in the right direction on how this can be solved?

    Where i can correct the code?

    Or what this error means


    You can view my store at www.oohweesupplements.co.nz/shop/

    Thanks in advance

  2. #2
    Join Date
    Mar 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: currency drop down list error

    bump anyone

  3. #3
    Join Date
    Jul 2009
    Location
    Prague, Czech Republic
    Posts
    530
    Plugin Contributions
    0

    Default Re: currency drop down list error

    If you haven't touched any of the code, I would suggest uploading the template files again if you haven't already. There's nothing wrong with the template itself as I have it in action here and as you can see works fine - I also used Firebug to drop in the currency drop down code from mine into yours and the drop down on your site worked just fine, no errors at all

  4. #4
    Join Date
    Apr 2010
    Location
    Austin, TX, USA
    Posts
    1
    Plugin Contributions
    0

    Default Re: currency drop down list error

    I ran into the same issue. Look for the following code in /includes/templates/template_name/common/tpl_header.php:

    PHP Code:
    <?
            if (isset($currencies) && is_object($currencies)) {
    Add 'php' (without the quotes) after the question mark, so that it looks like this:
    PHP Code:
    <?php
            
    if (isset($currencies) && is_object($currencies)) {
    This fixed the issue for me.

 

 

Similar Threads

  1. Change Currency drop-down box
    By metaus in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Jul 2012, 01:39 PM
  2. Currency drop down menu on product page?
    By Thannaree in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 22 Apr 2011, 03:52 AM
  3. currency drop down box removal
    By nevada in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Feb 2010, 02:51 PM
  4. Currency drop-down in Header
    By Berserker in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Jan 2010, 09:43 AM
  5. Remove Drop Down Currency List
    By anakeimai in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Aug 2009, 03:03 PM

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