Jump to content

Geri Sayım Sayacı


Recommended Posts

Merhaba

 

Sitesinde belirli gün ve saatlerde indirim uygulayan arkadaşlar için Türkçe geri sayım sayacı yapılmasını göstereceğim

 

ilk olarak ekteki dosyaları site ana dizinine kopyalıyoruz...

 

(yeni başlayan arkadaşlar için)

sayacın yazı karakterini veya arka plan rengini değiştirmek isteyen arkadaşlar site ana dizininde css klasöründe bulunan jquery.countdown.css dosyasında yapmalıdır...

 

Tema'nızın product.tpl dosyasında

 

 

 

bul:

<ul id="usefull_link_block">

 

 

Değiştir:

<ul id="usefull_link_block">
{* ----------------------- GERİ SAYIM BAŞLANGIÇ ----------------------- *}

{if ($product->specificPrice.to|date_format:'%B') == 'janvier' or ($product->specificPrice.to|date_format:'%B') == 'januar'}
 {assign var="month_counter" value="january"}
 {elseif ($product->specificPrice.to|date_format:'%B') == 'fevrier' or ($product->specificPrice.to|date_format:'%B') == 'februar'}
 {assign var="month_counter" value="february"}
 {elseif ($product->specificPrice.to|date_format:'%B') == 'mars' or ($product->specificPrice.to|date_format:'%B') == 'marz'}
 {assign var="month_counter" value="march"}
 {elseif ($product->specificPrice.to|date_format:'%B') == 'avril'}
 {assign var="month_counter" value="april"}
 {elseif ($product->specificPrice.to|date_format:'%B') == 'mai'}
 {assign var="month_counter" value="may"}
 {elseif ($product->specificPrice.to|date_format:'%B') == 'juin' or ($product->specificPrice.to|date_format:'%B') == 'juni'}
 {assign var="month_counter" value="june"}
 {elseif ($product->specificPrice.to|date_format:'%B') == 'juillet' or ($product->specificPrice.to|date_format:'%B') == 'juli'}
 {assign var="month_counter" value="july"}
 {elseif ($product->specificPrice.to|date_format:'%B') == 'aout'}
 {assign var="month_counter" value="august"}
 {elseif ($product->specificPrice.to|date_format:'%B') == 'septembre'}
 {assign var="month_counter" value="september"}
 {elseif ($product->specificPrice.to|date_format:'%B') == 'octobre' or ($product->specificPrice.to|date_format:'%B') == 'oktober'}
 {assign var="month_counter" value="october"}
 {elseif ($product->specificPrice.to|date_format:'%B') == 'novembre'}
 {assign var="month_counter" value="november"}
 {elseif ($product->specificPrice.to|date_format:'%B') == 'decembre' or ($product->specificPrice.to|date_format:'%B') == 'dezember'}
 {assign var="month_counter" value="december"}
 {else}
 {assign var="month_counter" value="{$product->specificPrice.to|date_format:'%B'}"}
 {/if}
 {if ($product->specificPrice.reduction) AND ($product->specificPrice.to|date_format:'%Y-%m-%d %H:%M:%S' > $smarty.now|date_format:'%Y-%m-%d %H:%M:%S')} </p>


<link rel="stylesheet" type="text/css" href="{$base_dir}css/jquery.countdown.css" />
<script type="text/javascript" src="{$base_dir}js/jquery/jquery.countdown.js"></script>
<script type="text/javascript" src="{$base_dir}js/jquery/jquery.countdown-tr.js"></script>
<div id="reductioncountdown" style="overflow:auto;" ></div>
<script type="text/javascript">
$("#reductioncountdown").countdown({ldelim}until: new Date('{$month_counter}{$product->specificPrice.to|date_format:' %e, %Y %H:%M:%S'}'){rdelim});
</script>
{/if}
{* ------------------------ GERİ SAYIM SON ------------------------ *}

 

 

Görünüm:

gf1gr.jpg

dosyalar.zip

  • Like 2
Link to comment
Share on other sites

  • 7 months later...
  • 1 month later...
  • 3 weeks later...

hocam öncelikle teşekkürler bu güzel modül için. Localhostta denedim çalışıyor fakat saniye geriye doğru saymıyor donup kalıyor sayfayı yeniledikçe geri sayımı gösteriyor. gerii sayımın ilerleyişini gösteremezmiyiz kullanıcılara bu konuda yardımcı olurmusunuz.

Link to comment
Share on other sites

hocam öncelikle teşekkürler bu güzel modül için. Localhostta denedim çalışıyor fakat saniye geriye doğru saymıyor donup kalıyor sayfayı yeniledikçe geri sayımı gösteriyor. gerii sayımın ilerleyişini gösteremezmiyiz kullanıcılara bu konuda yardımcı olurmusunuz.

Bu linkte kaynak kodlarından ilgili .js dosyalarını alıp güncelleyin düzelecektir...

Link to comment
Share on other sites

  • 2 weeks later...
  • 6 months later...
×
×
  • Create New...