<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>TS CountDown Timer</name>
<code>CountDown-Timer-v1-1-by-Tramplin-Studio</code>
<version>1.1</version>
<author>Tramplin Studio</author>
<link>https://tramplin-studio.store/</link>
<file path="catalog/controller/common/header.php">
<operation>
<search><![CDATA[public function index() {]]></search>
<add position="after"><![CDATA[
$this->load->model('extension/module/ts_countdown_timer');
$data['ts_countdown_timer_customize'] = $this->model_extension_module_ts_countdown_timer->getCustomize();
if ($data['ts_countdown_timer_customize']) {
$this->document->addStyle('catalog/view/javascript/tramplin-studio/CountdownTimer/CountdownTimer.css');
$this->document->addScript('catalog/view/javascript/tramplin-studio/CountdownTimer/jquery.corner.js');
$this->document->addScript('catalog/view/javascript/tramplin-studio/CountdownTimer/CountdownTimer.js');
}
]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/common/header.tpl">
<operation>
<search><![CDATA[</head>]]></search>
<add position="before"><![CDATA[
<?php if($ts_countdown_timer_customize) { ?>
<script type="text/javascript">var cdtCustomize = JSON.parse('<?php echo $ts_countdown_timer_customize; ?>');</script>
<?php } ?>
]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/common/header.twig">
<operation>
<search><![CDATA[</head>]]></search>
<add position="before"><![CDATA[
{% if (ts_countdown_timer_customize) %}
<script type="text/javascript">var cdtCustomize = JSON.parse('{{ ts_countdown_timer_customize }}');</script>
{% endif %}
]]></add>
</operation>
</file>
<file path="catalog/controller/product/product.php">
<operation>
<search><![CDATA[if ((float)$product_info['special']) {]]></search>
<add position="before"><![CDATA[
if ((float)$product_info['special']) {
$this->load->model('extension/module/ts_countdown_timer');
$data['ts_countdown_timer'] = $this->model_extension_module_ts_countdown_timer->getTimer($this->request->get['product_id'], 'product');
} else {
$data['ts_countdown_timer'] = false;
}
]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/product/product.{tpl,twig}">
<operation error="skip">
<search><![CDATA[<h2><?php echo $special; ?></h2>]]></search>
<add position="after"><![CDATA[
<?php if ($ts_countdown_timer) { ?>
<div class="TSCountDownTimer" id="cdtBlock-product-<?php echo $product_id; ?>"></div>
<script>$("#cdtBlock-product-<?php echo $product_id; ?>").TSCountDownTimer(JSON.parse('<?php echo $ts_countdown_timer; ?>'));</script>
<?php } ?>
]]></add>
</operation>
<operation error="skip">
<search><![CDATA[<h2>{{ special }}</h2>]]></search>
<add position="after"><![CDATA[
{% if (ts_countdown_timer) %}
<div class="TSCountDownTimer" id="cdtBlock-product-{{ product_id }}"></div>
<script>$("#cdtBlock-product-{{ product_id }}").TSCountDownTimer(JSON.parse('{{ ts_countdown_timer }}'));</script>
{% endif %}
]]></add>
</operation>
</file>
<file path="catalog/controller/product/category.php">
<operation>
<search><![CDATA[if ((float)$result['special']) {]]></search>
<add position="before"><![CDATA[
if ((float)$result['special']) {
$this->load->model('extension/module/ts_countdown_timer');
$ts_countdown_timer = $this->model_extension_module_ts_countdown_timer->getTimer($result['product_id'], 'category');
} else {
$ts_countdown_timer = false;
}
]]></add>
</operation>
<operation>
<search><![CDATA[=> $special,]]></search>
<add position="after"><![CDATA[
'ts_countdown_timer' => $ts_countdown_timer,
]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/product/category.{tpl,twig}">
<operation error="skip">
<search><![CDATA[<span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>]]></search>
<add position="after"><![CDATA[
<?php if ($product['ts_countdown_timer']) { ?>
<div class="TSCountDownTimer" id="cdtBlock-category-<?php echo $product['product_id']; ?>"></div>
<script>$("#cdtBlock-category-<?php echo $product['product_id']; ?>").TSCountDownTimer(JSON.parse('<?php echo $product['ts_countdown_timer']; ?>'));</script>
<?php } ?>
]]></add>
</operation>
<operation error="skip">
<search><![CDATA[<span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span>]]></search>
<add position="after"><![CDATA[
{% if (product['ts_countdown_timer']) %}
<div class="TSCountDownTimer" id="cdtBlock-category-{{ product['product_id'] }}"></div>
<script>$("#cdtBlock-category-{{ product['product_id'] }}").TSCountDownTimer(JSON.parse('{{ product['ts_countdown_timer'] }}'));</script>
{% endif %}
]]></add>
</operation>
</file>
<file path="catalog/controller/product/manufacturer.php">
<operation>
<search><![CDATA[if ((float)$result['special']) {]]></search>
<add position="before"><![CDATA[
if ((float)$result['special']) {
$this->load->model('extension/module/ts_countdown_timer');
$ts_countdown_timer = $this->model_extension_module_ts_countdown_timer->getTimer($result['product_id'], 'manufacturer');
} else {
$ts_countdown_timer = false;
}
]]></add>
</operation>
<operation>
<search><![CDATA[=> $special,]]></search>
<add position="after"><![CDATA[
'ts_countdown_timer' => $ts_countdown_timer,
]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/product/manufacturer_info.{tpl,twig}">
<operation error="skip">
<search><![CDATA[<span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>]]></search>
<add position="after"><![CDATA[
<?php if ($product['ts_countdown_timer']) { ?>
<div class="TSCountDownTimer" id="cdtBlock-manufacturer-<?php echo $product['product_id']; ?>"></div>
<script>$("#cdtBlock-manufacturer-<?php echo $product['product_id']; ?>").TSCountDownTimer(JSON.parse('<?php echo $product['ts_countdown_timer']; ?>'));</script>
<?php } ?>
]]></add>
</operation>
<operation error="skip">
<search><![CDATA[<span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span>]]></search>
<add position="after"><![CDATA[
{% if (product['ts_countdown_timer']) %}
<div class="TSCountDownTimer" id="cdtBlock-manufacturer-{{ product['product_id'] }}"></div>
<script>$("#cdtBlock-manufacturer-{{ product['product_id'] }}").TSCountDownTimer(JSON.parse('{{ product['ts_countdown_timer'] }}'));</script>
{% endif %}
]]></add>
</operation>
</file>
<file path="catalog/controller/product/special.php">
<operation>
<search><![CDATA[if ((float)$result['special']) {]]></search>
<add position="before"><![CDATA[
if ((float)$result['special']) {
$this->load->model('extension/module/ts_countdown_timer');
$ts_countdown_timer = $this->model_extension_module_ts_countdown_timer->getTimer($result['product_id'], 'special');
} else {
$ts_countdown_timer = false;
}
]]></add>
</operation>
<operation>
<search><![CDATA[=> $special,]]></search>
<add position="after"><![CDATA[
'ts_countdown_timer' => $ts_countdown_timer,
]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/product/special.{tpl,twig}">
<operation error="skip">
<search><![CDATA[<span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>]]></search>
<add position="after"><![CDATA[
<?php if ($product['ts_countdown_timer']) { ?>
<div class="TSCountDownTimer" id="cdtBlock-special-<?php echo $product['product_id']; ?>"></div>
<script>$("#cdtBlock-special-<?php echo $product['product_id']; ?>").TSCountDownTimer(JSON.parse('<?php echo $product['ts_countdown_timer']; ?>'));</script>
<?php } ?>
]]></add>
</operation>
<operation error="skip">
<search><![CDATA[<span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span>]]></search>
<add position="after"><![CDATA[
{% if (product['ts_countdown_timer']) %}
<div class="TSCountDownTimer" id="cdtBlock-special-{{ product['product_id'] }}"></div>
<script>$("#cdtBlock-special-{{ product['product_id'] }}").TSCountDownTimer(JSON.parse('{{ product['ts_countdown_timer'] }}'));</script>
{% endif %}
]]></add>
</operation>
</file>
<file path="catalog/controller/product/search.php">
<operation>
<search><![CDATA[if ((float)$result['special']) {]]></search>
<add position="before"><![CDATA[
if ((float)$result['special']) {
$this->load->model('extension/module/ts_countdown_timer');
$ts_countdown_timer = $this->model_extension_module_ts_countdown_timer->getTimer($result['product_id'], 'search');
} else {
$ts_countdown_timer = false;
}
]]></add>
</operation>
<operation>
<search><![CDATA[=> $special,]]></search>
<add position="after"><![CDATA[
'ts_countdown_timer' => $ts_countdown_timer,
]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/product/search.{tpl,twig}">
<operation error="skip">
<search><![CDATA[<span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>]]></search>
<add position="after"><![CDATA[
<?php if ($product['ts_countdown_timer']) { ?>
<div class="TSCountDownTimer" id="cdtBlock-search-<?php echo $product['product_id']; ?>"></div>
<script>$("#cdtBlock-search-<?php echo $product['product_id']; ?>").TSCountDownTimer(JSON.parse('<?php echo $product['ts_countdown_timer']; ?>'));</script>
<?php } ?>
]]></add>
</operation>
<operation error="skip">
<search><![CDATA[<span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span>]]></search>
<add position="after"><![CDATA[
{% if (product['ts_countdown_timer']) %}
<div class="TSCountDownTimer" id="cdtBlock-search-{{ product['product_id'] }}"></div>
<script>$("#cdtBlock-search-{{ product['product_id'] }}").TSCountDownTimer(JSON.parse('{{ product['ts_countdown_timer'] }}'));</script>
{% endif %}
]]></add>
</operation>
</file>
<file path="catalog/controller/extension/module/featured.php">
<operation>
<search><![CDATA[if ((float)$product_info['special']) {]]></search>
<add position="before"><![CDATA[
if ((float)$product_info['special']) {
$this->load->model('extension/module/ts_countdown_timer');
$ts_countdown_timer = $this->model_extension_module_ts_countdown_timer->getTimer($product_info['product_id'], 'featured');
} else {
$ts_countdown_timer = false;
}
]]></add>
</operation>
<operation>
<search><![CDATA[=> $special,]]></search>
<add position="after"><![CDATA[
'ts_countdown_timer' => $ts_countdown_timer,
]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/extension/module/featured.{tpl,twig}">
<operation error="skip">
<search><![CDATA[<span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>]]></search>
<add position="after"><![CDATA[
<?php if ($product['ts_countdown_timer']) { ?>
<div class="TSCountDownTimer" id="cdtBlock-featured-<?php echo $product['product_id']; ?>"></div>
<script>$("#cdtBlock-featured-<?php echo $product['product_id']; ?>").TSCountDownTimer(JSON.parse('<?php echo $product['ts_countdown_timer']; ?>'));</script>
<?php } ?>
]]></add>
</operation>
<operation error="skip">
<search><![CDATA[<span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span>]]></search>
<add position="after"><![CDATA[
{% if (product['ts_countdown_timer']) %}
<div class="TSCountDownTimer" id="cdtBlock-featured-{{ product['product_id'] }}"></div>
<script>$("#cdtBlock-featured-{{ product['product_id'] }}").TSCountDownTimer(JSON.parse('{{ product['ts_countdown_timer'] }}'));</script>
{% endif %}
]]></add>
</operation>
</file>
<file path="catalog/controller/extension/module/latest.php">
<operation>
<search><![CDATA[if ((float)$result['special']) {]]></search>
<add position="before"><![CDATA[
if ((float)$result['special']) {
$this->load->model('extension/module/ts_countdown_timer');
$ts_countdown_timer = $this->model_extension_module_ts_countdown_timer->getTimer($result['product_id'], 'latest');
} else {
$ts_countdown_timer = false;
}
]]></add>
</operation>
<operation>
<search><![CDATA[=> $special,]]></search>
<add position="after"><![CDATA[
'ts_countdown_timer' => $ts_countdown_timer,
]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/extension/module/latest.{tpl,twig}">
<operation error="skip">
<search><![CDATA[<span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>]]></search>
<add position="after"><![CDATA[
<?php if ($product['ts_countdown_timer']) { ?>
<div class="TSCountDownTimer" id="cdtBlock-latest-<?php echo $product['product_id']; ?>"></div>
<script>$("#cdtBlock-latest-<?php echo $product['product_id']; ?>").TSCountDownTimer(JSON.parse('<?php echo $product['ts_countdown_timer']; ?>'));</script>
<?php } ?>
]]></add>
</operation>
<operation error="skip">
<search><![CDATA[<span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span>]]></search>
<add position="after"><![CDATA[
{% if (product['ts_countdown_timer']) %}
<div class="TSCountDownTimer" id="cdtBlock-latest-{{ product['product_id'] }}"></div>
<script>$("#cdtBlock-latest-{{ product['product_id'] }}").TSCountDownTimer(JSON.parse('{{ product['ts_countdown_timer'] }}'));</script>
{% endif %}
]]></add>
</operation>
</file>
<file path="catalog/controller/extension/module/bestseller.php">
<operation>
<search><![CDATA[if ((float)$result['special']) {]]></search>
<add position="before"><![CDATA[
if ((float)$result['special']) {
$this->load->model('extension/module/ts_countdown_timer');
$ts_countdown_timer = $this->model_extension_module_ts_countdown_timer->getTimer($result['product_id'], 'bestseller');
} else {
$ts_countdown_timer = false;
}
]]></add>
</operation>
<operation>
<search><![CDATA[=> $special,]]></search>
<add position="after"><![CDATA[
'ts_countdown_timer' => $ts_countdown_timer,
]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/extension/module/bestseller.{tpl,twig}">
<operation error="skip">
<search><![CDATA[<span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>]]></search>
<add position="after"><![CDATA[
<?php if ($product['ts_countdown_timer']) { ?>
<div class="TSCountDownTimer" id="cdtBlock-bestseller-<?php echo $product['product_id']; ?>"></div>
<script>$("#cdtBlock-bestseller-<?php echo $product['product_id']; ?>").TSCountDownTimer(JSON.parse('<?php echo $product['ts_countdown_timer']; ?>'));</script>
<?php } ?>
]]></add>
</operation>
<operation error="skip">
<search><![CDATA[<span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span>]]></search>
<add position="after"><![CDATA[
{% if (product['ts_countdown_timer']) %}
<div class="TSCountDownTimer" id="cdtBlock-bestseller-{{ product['product_id'] }}"></div>
<script>$("#cdtBlock-bestseller-{{ product['product_id'] }}").TSCountDownTimer(JSON.parse('{{ product['ts_countdown_timer'] }}'));</script>
{% endif %}
]]></add>
</operation>
</file>
<file path="catalog/controller/extension/module/special.php">
<operation>
<search><![CDATA[if ((float)$result['special']) {]]></search>
<add position="before"><![CDATA[
if ((float)$result['special']) {
$this->load->model('extension/module/ts_countdown_timer');
$ts_countdown_timer = $this->model_extension_module_ts_countdown_timer->getTimer($result['product_id'], 'specialmod');
} else {
$ts_countdown_timer = false;
}
]]></add>
</operation>
<operation>
<search><![CDATA[=> $special,]]></search>
<add position="after"><![CDATA[
'ts_countdown_timer' => $ts_countdown_timer,
]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/extension/module/special.{tpl,twig}">
<operation error="skip">
<search><![CDATA[<span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>]]></search>
<add position="after"><![CDATA[
<?php if ($product['ts_countdown_timer']) { ?>
<div class="TSCountDownTimer" id="cdtBlock-specialmod-<?php echo $product['product_id']; ?>"></div>
<script>$("#cdtBlock-specialmod-<?php echo $product['product_id']; ?>").TSCountDownTimer(JSON.parse('<?php echo $product['ts_countdown_timer']; ?>'));</script>
<?php } ?>
]]></add>
</operation>
<operation error="skip">
<search><![CDATA[<span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span>]]></search>
<add position="after"><![CDATA[
{% if (product['ts_countdown_timer']) %}
<div class="TSCountDownTimer" id="cdtBlock-specialmod-{{ product['product_id'] }}"></div>
<script>$("#cdtBlock-specialmod-{{ product['product_id'] }}").TSCountDownTimer(JSON.parse('{{ product['ts_countdown_timer'] }}'));</script>
{% endif %}
]]></add>
</operation>
</file>
<file path="catalog/controller/product/product.php">
<operation>
<search><![CDATA[if ((float)$result['special']) {]]></search>
<add position="before"><![CDATA[
if ((float)$result['special']) {
$this->load->model('extension/module/ts_countdown_timer');
$ts_countdown_timer = $this->model_extension_module_ts_countdown_timer->getTimer($result['product_id'], 'related');
} else {
$ts_countdown_timer = false;
}
]]></add>
</operation>
<operation>
<search><![CDATA[=> $special,]]></search>
<add position="after"><![CDATA[
'ts_countdown_timer' => $ts_countdown_timer,
]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/product/product.{tpl,twig}">
<operation error="skip">
<search><![CDATA[<span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>]]></search>
<add position="after"><![CDATA[
<?php if ($product['ts_countdown_timer']) { ?>
<div class="TSCountDownTimer" id="cdtBlock-related-<?php echo $product['product_id']; ?>"></div>
<script>$("#cdtBlock-related-<?php echo $product['product_id']; ?>").TSCountDownTimer(JSON.parse('<?php echo $product['ts_countdown_timer']; ?>'));</script>
<?php } ?>
]]></add>
</operation>
<operation error="skip">
<search><![CDATA[<span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span>]]></search>
<add position="after"><![CDATA[
{% if (product['ts_countdown_timer']) %}
<div class="TSCountDownTimer" id="cdtBlock-related-{{ product['product_id'] }}"></div>
<script>$("#cdtBlock-related-{{ product['product_id'] }}").TSCountDownTimer(JSON.parse('{{ product['ts_countdown_timer'] }}'));</script>
{% endif %}
]]></add>
</operation>
</file>
</modification>
вот он, только я фигзнает что тут править