Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base8 - Obsidian - This, is what's new.
Figured it out. Just in case someone else needs this, the code you added underneatch mobile needs to be added as well under tablet and all is now working. I'm no pro so if there is something wrong with this, please feel free to say.
shop/includes/templates/responsive_classic/common/tpl_header.php
Code:<!-- bof languages/currencies header display --> <div id="navCurrenciesWrapperMobile" class="notforward clearBoth"> <?php if (HEADER_LANGUAGES_DISPLAY == 'true') require(DIR_WS_MODULES . 'header_languages.php'); if (HEADER_CURRENCIES_DISPLAY == 'true') require(DIR_WS_MODULES . 'header_currencies.php'); ?> </div> <!-- eof languages/currencies header display --> <?php } else if ( $detect->isTablet() || $_SESSION['layoutType'] == 'tablet' ) { ?> <!-- <div id="navMainSearch1" class="forward"><?php // require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div> --> <!-- bof languages/currencies header display --> <div id="navCurrenciesWrapperMobile" class="notforward clearBoth"> <?php if (HEADER_LANGUAGES_DISPLAY == 'true') require(DIR_WS_MODULES . 'header_languages.php'); if (HEADER_CURRENCIES_DISPLAY == 'true') require(DIR_WS_MODULES . 'header_currencies.php'); ?> </div> <!-- eof languages/currencies header display -->
Hi guys, does anybody know how to implement switching language/currencies as a small drop-down menus with a simple text instead of flags. Would appreciate a hint where to find a simple script for that purpose...
includes/templates/YOUR_TEMPLATE/common/tpl_header_languages.php and tpl_header_currencies.php build the output display.
You can use the zen dropdown function to convert to dropdowns, just hide/replace the image/link code for $content .=
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base8 - Obsidian - This, is what's new.
https://www.zen-cart.com/downloads.php?do=file&id=30
Have you installed the module into YOUR_TEMPLATE ?
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base8 - Obsidian - This, is what's new.
Yea I considered responsive classic as mine and now I discovered the two mentioned files sitting in includes/templates/template_default/common/Have you installed the module into YOUR_TEMPLATE ?
Should I copy the tpl_header_languages.php into responsive_classic? Removing I guess everything afterin this lane:Code:$content .=
Code:$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'], '', '', 'align="absmiddle"') . '</a> ';
All of the template override files in the default folder can be copied into the override template folder YOUR_TEMPLATE or responsive_classic as you mentioned.
I would make the move, upload and test to see they are working before changing any of the code. That will preserve your default fileset and prevent breaking the rule of 'one change at a time'.
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base8 - Obsidian - This, is what's new.
Is there any way to change the order of the currency choices i.e. to have the AUD$ appear first instead of the USD$? Thanks.
Bookmarks