View Single Post
  #72  
Old 12-02-2010, 06:19 AM
 
PhilJ PhilJ is offline
 

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

Default Re: X-Cart Smart Template v4.4.x

Hi Klemens, you adjust the countdown date in skin/smart_template/custom/js/countdown/countdown.js

Read the install.html doc for details.

To change the countdown message, search for lbl_st_countdown_msg in languages.

If you want to use another language for the countdown time units, you can download a translation pack of the script here.

Follow the instructions in the 'Localisation' tab.

- Upload the relevant language pack to skin/smart_template/custom/js/countdown/
- Make the relevant changes in skin/smart_template/custom/js/countdown/jquery.countdown.js
- Then in skin/smart_template/custom/common.tpl

Replace...

Code:
<script type="text/javascript" src="{$AltSkinDir}/custom/js/countdown/jquery.countdown.min.js"></script> <script type="text/javascript" src="{$AltSkinDir}/custom/js/countdown/countdown.js"></script>

With something like...

Code:
{if $store_language eq 'en'} <script type="text/javascript" src="{$AltSkinDir}/custom/js/countdown/jquery.countdown.min.js"></script> <script type="text/javascript" src="{$AltSkinDir}/custom/js/countdown/countdown.js"></script> {elseif $store_language eq 'pl'} <script type="text/javascript" src="{$AltSkinDir}/custom/js/countdown/jquery.countdown.js"></script> <script type="text/javascript" src="{$AltSkinDir}/custom/js/countdown/jquery.countdown-pl.js"></script> <script type="text/javascript" src="{$AltSkinDir}/custom/js/countdown/countdown.js"></script> {/if}

HTH
__________________
xcartmods.co.uk
Reply With Quote