Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2009
    Posts
    120
    Plugin Contributions
    0

    help question Currency flags instead of dropdown in sidebox?

    Hi,

    I'm looking to get flag images in my currency selection sidebox instead of the dropdown.

    I've done a search and one of the threads mentioned manipulating the code. I've opened the tpl_languages and tpl_currencies folders but am not sure what to change?

    Here's the code in both.

    tpl_languages

    Code:
    <?php
     */
      $content = "";
      $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
    
      $lng_cnt = 0;
      while (list($key, $value) = each($lng->catalog_languages)) {
        $content .= '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . zen_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a>&nbsp;&nbsp;';
        $lng_cnt ++;
        if ($lng_cnt >= MAX_LANGUAGE_FLAGS_COLUMNS) {
          $lng_cnt = 0;
          $content .= '<br />';
        }
      }
    $content .= '</div>';
    ?>
    tpl_currencies

    Code:
    <?php
     */
        $content = "";
        $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
        $content .= zen_draw_form('currencies_form', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get');
        $content .= zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id();
        $content .= '</form>';
        $content .= '</div>';
    ?>
    Any idea what I need to change?

    Many thanks,

    gary

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Currency flags instead of dropdown in sidebox?

    This is for the header, but it should give you some ideas:

    http://www.zen-cart.com/index.php?ma...roducts_id=107

 

 

Similar Threads

  1. Currency flags instead of dropdown sidebox
    By mighty midget in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Jan 2012, 03:28 PM
  2. Language Drop-down Selector Instead of Flags?
    By cozyfolk in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Aug 2011, 03:02 AM
  3. Manufacturer sidebox with drop dropdown instead of scrolling
    By rickiesdiscount in forum Addon Sideboxes
    Replies: 7
    Last Post: 14 Jul 2010, 04:51 PM
  4. Country flags instead of drop-down currency selector
    By needhelp123 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 13
    Last Post: 1 Jun 2010, 11:28 AM
  5. Currency Flags in Header
    By kiermasz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 4 Jul 2006, 08:22 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