View Single Post
  #1120  
Old 01-12-2016, 09:15 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart - reBOOT - Responsive Template

Google Translate sidebar widget... DEMO

1) Apply SQL Patch...
Code:
REPLACE INTO xcart_languages SET code='en', name='lbl_translate', value='Translate', topic='Labels';
2) Upload attached widget_translate.tpl file to skin/reboot/custom/widgets

3) In skin/reboot/customer/bar.tpl OR skin/reboot/customer/bar_right.tpl insert...
Code:
{include file="custom/widgets/widget_translate.tpl"}
4) Clear template cache.

----

reBOOT v4.7.3 + users can apply this patch...
Code:
REPLACE INTO xcart_languages SET code='en', name='lbl_translate', value='Translate', topic='Labels'; REPLACE INTO xcart_config VALUES ('reboot_sidebar_translate','','Y','Reboot',365,'checkbox','','','',''); REPLACE INTO xcart_languages VALUES ('en','opt_reboot_sidebar_translate','Enable translate menu in sidebar','Options'); REPLACE INTO xcart_languages VALUES ('en','opt_descr_reboot_sidebar_translate','','Options');
And use...
Code:
{if $config.Reboot.reboot_sidebar_translate eq "Y"} {include file="custom/widgets/widget_translate.tpl"} {/if}
Attached Files
File Type: tpl widget_translate.tpl (755 Bytes, 3 views)
__________________
xcartmods.co.uk
Reply With Quote