By_Surmeneli
OpenCart-TR
- Katılım
- 19 Tem 2010
- Mesajlar
- 273
- Tepkime puanı
- 0
- Puanları
- 0
- Yaş
- 37
- Konum
- Trabzon
- Web sitesi
- www.kodcenneti.com
Arkadaşlar Bu Ürün görüntülemede gösteriyor baya hoşuma gitti paylaşım dedim. Kurulumu Aşağıdaki gibidir.
===============================================
IN catalog/controller/product/product.php FIND:
===============================================
Bul:
$this->data['special'] = $this->currency->format($this->tax->calculate($special, $product_info['tax_class_id'], $this->config->get('config_tax')));
==========
ABOVE ADD:
==========
Öncesine Ekle
$this->document->addScript('catalog/view/javascript/special_price_countdown.js');
$this->document->addStyle('catalog/view/theme/default/stylesheet/special_price_countdown.css');
$this->load->model('catalog/special_price_countdown');
$this->language->load('product/special_price_countdown');
$this->data['text_special_price'] = $this->language->get('text_special_price');
$this->data['text_calculating_time'] = $this->language->get('text_calculating_time');
$this->data['date_end'] = $this->model_catalog_special_price_countdown->getProductSpecialDates($this->request->get['product_id']);
========================================================================
IN catalog/view/theme/default/template/product/product.tpl FIND:
========================================================================
Bul:
==================
CHOOSE AN OPTION :
==================
İstediğin Bir Seçenek Sana Kalmış Ben En son satırı seçtim
**********************************************************
OPTION 1 :
<h1><?php echo $heading_title; ?></h1>
OR
***********************************************************
OPTION 2 :
<div class="right">
OR
***********************************************************
OPTION 3 :
<div class="right">
<div class="description">
***********************************************************
=========================================
INSERT AFTER THE OPTION YOU HAVE CHOSEN :
=========================================
sonrasına ekle Buradakini
<!-- Special Price Countdown-->
<table style="width: 100%; border-collapse: collapse;">
<?php if ($special) { ?>
<tr class="countTable">
<th><? echo $text_special_price;?></th>
<th id="remain"><?php echo $text_calculating_time;?></th>
</tr>
<script type="text/javascript">
var days = <?php print $date_end["days_left"];?>-1;
var hours = 23-<?php print $date_end["hours"];?>;
var minutes = 59-<?php print $date_end["minutes"];?>;
var seconds = 59-<?php print $date_end["seconds"];?>;
setCountDown();
</script>
<?php }?>
</table>
<!-- END -->
=================================================================================
NOTE: if you see incorrect time left you should change timezone to match yours:
=================================================================================
Eğer Zaman Diliminde SOrun Yaşarsanız
===========================
IN system/startup.php FIND:
===========================
Bul
date_default_timezone_set('UTC');
=============
REPLACE WITH:
=============
Bununla Değiştir
date_default_timezone_set('EET'); // european time zone