I think that I just answered this question, but it may have been on another thread. If you want the slide show banners to be multi lingual, one way to do it would be to clone the tpl_home_slider.php file using a new banner group for your second language and then add an if statement to the tpl_header.php files to call the second language tpl_home_slider.php file when the second language is detected.
The time that I have to devote to the free templates project is limited so any advances/improvements that you make and share can be included in a package update. Unfortunately, a lot of users figure these types of things out and never share with the community.
Thanks,
Anne
Thanks for the directions Anne!
For those who'd like to try it out, this is what I did for a slide in Spanish.
1) Clone includes/templates/westminster_new/common/tpl_home_slider.php and rename it tpl_home_slider_es.php
2) Open tpl_home_slider_es.php and replaced (on line 4) homepageslide1 with homepageslide2
3) Open includes/languages/spanish/html_includes/westminster_new/define_main_page.php and change (on line 22 and 23)
toPHP Code:
<?php require($template->get_template_dir('tpl_home_slider.php',DIR_WS_TEMPLATE, $current_page_base,'common')
. '/tpl_home_slider.php');?>
4) Open Tools/Banner Manager in the admin and create 5 new banners, entering homepageslide2 in the "or enter a new banner group below" field.PHP Code:
<?php require($template->get_template_dir('tpl_home_slider_es.php',DIR_WS_TEMPLATE, $current_page_base,'common')
. '/tpl_home_slider_es.php');?>
Looks good on my end.
.... now with the footer ....
Last edited by Thannaree; 22 Dec 2014 at 09:57 AM.
Thanks Anne!
Note that this works on westminster_new (did not try on winchester). I have posted this solution on the relevant thread. Perhaps this could be removed from here?
Anne,
I am not sure if this has been reported to you yet, but the loading of "jquery.carouFredSel-6.0.2.js" gives a ssl error when sites are in https.
in the files tpl_index_default.php and tpl_index_categories.php
the line:
Should IMHO be changed to:PHP Code:
<script type="text/javascript" src="<?php echo HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_TEMPLATE; ?>jscript/jquery.carouFredSel-6.0.2.js"></script>
PHP Code:
<script type="text/javascript" src="<?php echo DIR_WS_CATALOG . DIR_WS_TEMPLATE; ?>jscript/jquery.carouFredSel-6.0.2.js"></script>
Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.
Sorry..... DELETE!
Last edited by kalastaja; 24 Jan 2015 at 01:26 PM. Reason: Fixed!
Bookmarks