Version Notes
Countdown timer for Special product price to date. Timer displays according to the special price and to date set while adding products.
Download this release
Release Info
Developer | LEAD |
Extension | Price_Countdown |
Version | 1.4.0 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.4.0
- app/code/local/Apptha/Timer/Block/Product/List.php +37 -33
- app/code/local/Apptha/Timer/Block/Product/View.php +8 -3
- app/code/local/Apptha/Timer/Helper/Data.php +18 -13
- app/code/local/Apptha/Timer/etc/config.xml +3 -3
- app/code/local/Apptha/Timer/etc/system.xml +2 -2
- app/design/frontend/base/default/template/timer/product/list.phtml +65 -47
- app/design/frontend/base/default/template/timer/product/view.phtml +8 -7
- app/design/frontend/rwd/default/layout/timer.xml +88 -0
- app/design/frontend/rwd/default/template/timer/product/list.phtml +280 -0
- app/design/frontend/rwd/default/template/timer/product/view.phtml +102 -0
- package.xml +4 -4
- skin/frontend/base/default/timer/timer.css +2 -1
app/code/local/Apptha/Timer/Block/Product/List.php
CHANGED
@@ -1,41 +1,45 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Apptha
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
class Apptha_Timer_Block_Product_List extends Mage_Catalog_Block_Product_List
|
31 |
{
|
32 |
-
public function getPriceCountDown($_product){
|
33 |
-
if(Mage::helper('timer')->isEnabled()){
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
39 |
}
|
40 |
return false;
|
41 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
* Apptha
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the EULA
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://www.apptha.com/LICENSE.txt
|
11 |
+
*
|
12 |
+
* ==============================================================
|
13 |
+
* MAGENTO EDITION USAGE NOTICE
|
14 |
+
* ==============================================================
|
15 |
+
* This package designed for Magento COMMUNITY edition
|
16 |
+
* Apptha does not guarantee correct work of this extension
|
17 |
+
* on any other Magento edition except Magento COMMUNITY edition.
|
18 |
+
* Apptha does not provide extension support in case of
|
19 |
+
* incorrect edition usage.
|
20 |
+
* ==============================================================
|
21 |
+
*
|
22 |
+
* @category Apptha
|
23 |
+
* @package Apptha_PriceCount
|
24 |
+
* @version 0.1.4
|
25 |
+
* @author Apptha Team <developers@contus.in>
|
26 |
+
* @copyright Copyright (c) 2014 Apptha. (http://www.apptha.com)
|
27 |
+
* @license http://www.apptha.com/LICENSE.txt
|
28 |
+
*
|
29 |
+
*/
|
30 |
class Apptha_Timer_Block_Product_List extends Mage_Catalog_Block_Product_List
|
31 |
{
|
32 |
+
public function getPriceCountDown($_product) {
|
33 |
+
if(Mage::helper('timer')->isEnabled()) {
|
34 |
+
$currentDate = Mage::getModel('core/date')->date('Y-m-d');
|
35 |
+
$todate = $_product->getSpecialToDate();
|
36 |
+
$fromdate = $_product->getSpecialFromDate();
|
37 |
+
if($_product->getSpecialPrice() != 0 || $_product->getSpecialPrice()) {
|
38 |
+
if($_product->getSpecialToDate() != null) {
|
39 |
+
if(strtotime($todate) >= strtotime($currentDate) && strtotime($fromdate) <= strtotime($currentDate))
|
40 |
+
return true;
|
41 |
+
}
|
42 |
+
}
|
43 |
}
|
44 |
return false;
|
45 |
}
|
app/code/local/Apptha/Timer/Block/Product/View.php
CHANGED
@@ -31,9 +31,14 @@ class Apptha_Timer_Block_Product_View extends Mage_Catalog_Block_Product_View
|
|
31 |
{
|
32 |
public function getPriceCountDown(){
|
33 |
if(Mage::helper('timer')->isEnabled()){
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
}
|
39 |
}
|
31 |
{
|
32 |
public function getPriceCountDown(){
|
33 |
if(Mage::helper('timer')->isEnabled()){
|
34 |
+
$currentDate = Mage::getModel('core/date')->date('Y-m-d');
|
35 |
+
$todate = $this->getProduct()->getSpecialToDate();
|
36 |
+
$fromdate = $this->getProduct()->getSpecialFromDate();
|
37 |
+
if($this->getProduct()->getSpecialPrice() != 0 || $this->getProduct()->getSpecialPrice()) {
|
38 |
+
if($this->getProduct()->getSpecialToDate() != null) {
|
39 |
+
if(strtotime($todate) >= strtotime($currentDate) && strtotime($fromdate) <= strtotime($currentDate)){
|
40 |
+
return true;
|
41 |
+
}
|
42 |
}
|
43 |
}
|
44 |
}
|
app/code/local/Apptha/Timer/Helper/Data.php
CHANGED
@@ -57,23 +57,28 @@ class Apptha_Timer_Helper_Data extends Mage_Core_Helper_Abstract
|
|
57 |
return $this->conf(self::XML_PATH_TITLE, $store);
|
58 |
}
|
59 |
|
60 |
-
public function isShowTitle(){
|
61 |
-
if($this->isTimerHeading() == 'showall'
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
66 |
}
|
67 |
-
return false;
|
68 |
}
|
69 |
|
70 |
-
public function isShowCaption(){
|
71 |
-
if ($this->isTimerCaption() == 'showall'
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
|
|
|
|
|
|
75 |
}
|
76 |
-
return false;
|
77 |
}
|
78 |
|
79 |
}
|
57 |
return $this->conf(self::XML_PATH_TITLE, $store);
|
58 |
}
|
59 |
|
60 |
+
public function isShowTitle($currentpage = null){
|
61 |
+
if($this->isTimerHeading() == 'showall'){
|
62 |
+
return true;
|
63 |
+
} else if($this->isTimerHeading() == $currentpage){
|
64 |
+
return true;
|
65 |
+
} else if($this->isTimerHeading() != 'hideall'){
|
66 |
+
return false;
|
67 |
+
} else {
|
68 |
+
return false;
|
69 |
}
|
|
|
70 |
}
|
71 |
|
72 |
+
public function isShowCaption($currentpage = null){
|
73 |
+
if ($this->isTimerCaption() == 'showall'){
|
74 |
+
return true;
|
75 |
+
} else if($this->isTimerCaption() == $currentpage) {
|
76 |
+
return true;
|
77 |
+
} else if($this->isTimerCaption() != 'hideall'){
|
78 |
+
return false;
|
79 |
+
}else {
|
80 |
+
return false;
|
81 |
}
|
|
|
82 |
}
|
83 |
|
84 |
}
|
app/code/local/Apptha/Timer/etc/config.xml
CHANGED
@@ -32,7 +32,7 @@
|
|
32 |
<config>
|
33 |
<modules>
|
34 |
<Apptha_Timer>
|
35 |
-
<version>1.
|
36 |
</Apptha_Timer>
|
37 |
</modules>
|
38 |
<global>
|
@@ -75,8 +75,8 @@
|
|
75 |
<timer>
|
76 |
<general>
|
77 |
<enabled>1</enabled>
|
78 |
-
<
|
79 |
-
<
|
80 |
<title>Price CountDown</title>
|
81 |
</general>
|
82 |
<apptha_timer_color>
|
32 |
<config>
|
33 |
<modules>
|
34 |
<Apptha_Timer>
|
35 |
+
<version>0.1.4</version>
|
36 |
</Apptha_Timer>
|
37 |
</modules>
|
38 |
<global>
|
75 |
<timer>
|
76 |
<general>
|
77 |
<enabled>1</enabled>
|
78 |
+
<timer_heading>showall</timer_heading>
|
79 |
+
<timer_catption>showall</timer_catption>
|
80 |
<title>Price CountDown</title>
|
81 |
</general>
|
82 |
<apptha_timer_color>
|
app/code/local/Apptha/Timer/etc/system.xml
CHANGED
@@ -84,13 +84,13 @@
|
|
84 |
<comment>Timer Caption</comment>
|
85 |
</timer_catption>
|
86 |
<title translate="label">
|
87 |
-
<label>Timer
|
88 |
<frontend_type>text</frontend_type>
|
89 |
<sort_order>3</sort_order>
|
90 |
<show_in_default>1</show_in_default>
|
91 |
<show_in_website>1</show_in_website>
|
92 |
<show_in_store>1</show_in_store>
|
93 |
-
<comment>Timer
|
94 |
</title>
|
95 |
</fields>
|
96 |
</general>
|
84 |
<comment>Timer Caption</comment>
|
85 |
</timer_catption>
|
86 |
<title translate="label">
|
87 |
+
<label>Timer Heading Text:</label>
|
88 |
<frontend_type>text</frontend_type>
|
89 |
<sort_order>3</sort_order>
|
90 |
<show_in_default>1</show_in_default>
|
91 |
<show_in_website>1</show_in_website>
|
92 |
<show_in_store>1</show_in_store>
|
93 |
+
<comment>Timer Heading Text.</comment>
|
94 |
</title>
|
95 |
</fields>
|
96 |
</general>
|
app/design/frontend/base/default/template/timer/product/list.phtml
CHANGED
@@ -53,7 +53,6 @@ $_helper = $this->helper('catalog/output');
|
|
53 |
<?php $_iterator = 0; ?>
|
54 |
<ol class="products-list" id="products-list">
|
55 |
<?php foreach ($_productCollection as $_product):?>
|
56 |
-
<?php $toDate = $_product->getSpecialTODate(); ?>
|
57 |
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
|
58 |
|
59 |
<?php // Product Image ?>
|
@@ -69,43 +68,61 @@ $_helper = $this->helper('catalog/output');
|
|
69 |
|
70 |
<!--Condition for Timer Controllers goes here-->
|
71 |
<?php if($this->getPriceCountDown($_product)) :?>
|
72 |
-
<?php if (Mage::helper('timer')->isShowTitle()): ?>
|
73 |
-
<div id="heading<?php echo $count; ?>" style="
|
74 |
<?php echo Mage::helper('timer')->getTimerTitle(); ?>
|
75 |
</div>
|
76 |
<?php endif; ?>
|
77 |
<div id="countbox_<?php echo $count; ?>" class="timer-list"></div>
|
78 |
-
<?php if (Mage::helper('timer')->isShowCaption()): ?>
|
79 |
<div class='clear'></div>
|
80 |
<div class='timerdate' id="caption<?php echo $count; ?>">
|
81 |
-
<span class='hour' style='margin:
|
82 |
-
<span class='hour' style='margin:
|
83 |
-
<span class='min' style='margin:
|
84 |
-
<span class='sec' style='margin:
|
85 |
</div>
|
86 |
<?php endif;?>
|
87 |
<?php endif; ?>
|
88 |
<!--Condition for Timer Controllers End -->
|
89 |
|
90 |
<?php if($_product->isSaleable()): ?>
|
91 |
-
<p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
|
92 |
<?php else: ?>
|
93 |
-
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
94 |
<?php endif; ?>
|
95 |
<div class="desc std">
|
96 |
-
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
|
97 |
-
|
98 |
</div>
|
99 |
-
<ul class="add-to-links">
|
100 |
-
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
101 |
-
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
102 |
-
<?php endif; ?>
|
103 |
-
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
104 |
-
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
105 |
-
<?php endif; ?>
|
106 |
-
</ul>
|
107 |
</div>
|
108 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
</li>
|
110 |
<?php endforeach; ?>
|
111 |
</ol>
|
@@ -118,7 +135,6 @@ $_helper = $this->helper('catalog/output');
|
|
118 |
<?php $_collectionSize = $_productCollection->count() ?>
|
119 |
<?php $_columnCount = $this->getColumnCount();?>
|
120 |
<?php $i=0; foreach ($_productCollection as $_product): ?>
|
121 |
-
<?php $toDate = $_product->getSpecialTODate();?>
|
122 |
<?php if ($i++%$_columnCount==0): ?>
|
123 |
<ul class="products-grid">
|
124 |
<?php endif ?>
|
@@ -126,25 +142,25 @@ $_helper = $this->helper('catalog/output');
|
|
126 |
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
127 |
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
|
128 |
<?php if($_product->getRatingSummary()): ?>
|
129 |
-
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
130 |
<?php endif; ?>
|
131 |
<?php echo $this->getPriceHtml($_product, true) ?>
|
132 |
|
133 |
<!--Condition for Timer Controllers goes here-->
|
134 |
<?php if($this->getPriceCountDown($_product)) :?>
|
135 |
-
<?php if (Mage::helper('timer')->isShowTitle()): ?>
|
136 |
-
<div id="heading<?php echo $count; ?>" style="
|
137 |
<?php echo Mage::helper('timer')->getTimerTitle(); ?>
|
138 |
</div>
|
139 |
<?php endif; ?>
|
140 |
<div id="countbox_<?php echo $count; ?>" class="timer-list"></div>
|
141 |
-
<?php if (Mage::helper('timer')->isShowCaption()): ?>
|
142 |
<div class='clear'></div>
|
143 |
<div class='timerdate' id="caption<?php echo $count; ?>">
|
144 |
-
<span class='hour' style='margin:
|
145 |
-
<span class='hour' style='margin:
|
146 |
-
<span class='min' style='margin:
|
147 |
-
<span class='sec' style='margin:
|
148 |
</div>
|
149 |
<?php endif;?>
|
150 |
<?php endif; ?>
|
@@ -167,6 +183,24 @@ $_helper = $this->helper('catalog/output');
|
|
167 |
<?php endif; ?>
|
168 |
</ul>
|
169 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
</li>
|
171 |
<?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
|
172 |
</ul>
|
@@ -189,27 +223,11 @@ $timer_color = Mage::getStoreConfig('timer/apptha_timer_color/text');
|
|
189 |
$desc_color = Mage::getStoreConfig('timer/apptha_timer_color/description');
|
190 |
$head_color = Mage::getStoreConfig('timer/apptha_timer_color/heading_text_color');
|
191 |
?>
|
192 |
-
|
193 |
-
<script type="text/javascript">
|
194 |
-
var dthen<?php echo $count; ?> = new Date("<?php echo Date("m/d/y", strtotime($toDate)).' 11:59:00 PM'; ?>");
|
195 |
-
start = "<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>";
|
196 |
-
start_date = Date.parse(start);
|
197 |
-
var dnow<?php echo $count; ?> = new Date(start_date);
|
198 |
-
if(CountStepper>0)
|
199 |
-
ddiff= new Date((dnow<?php echo $count; ?>)-(dthen<?php echo $count; ?>));
|
200 |
-
else
|
201 |
-
ddiff = new Date((dthen<?php echo $count; ?>)-(dnow<?php echo $count; ?>));
|
202 |
-
gsecs<?php echo $count; ?> = Math.floor(ddiff.valueOf()/1000);
|
203 |
-
var iid<?php echo $count; ?> = "countbox_<?php echo $count; ?>";
|
204 |
-
CountBack(gsecs<?php echo $count; ?>,"countbox_"+timer, timer);
|
205 |
-
timer++;
|
206 |
-
</script>
|
207 |
-
<?php $count = $count + 1; ?>
|
208 |
-
<?php endif;?>
|
209 |
<!-- Timer Script End here -->
|
210 |
<!--Dynamic style changes goes here-->
|
211 |
<style>
|
212 |
-
.timer-grid{float: left;width: 100%;padding: 0;color: #<?php echo $timer_color; ?>;font-size: 18px;font-family: arial;font-weight: bold;}
|
213 |
.timer-list{float: left;width: 100%;padding: 0;color: #<?php echo $timer_color; ?>;font-size: 18px;font-family:arial;font-weight: bold;}
|
214 |
.timerdate{float: left;width: 100%;padding:0 0 3px 0;color: #<?php echo $desc_color; ?>;font-size: 12px;}
|
|
|
215 |
</style>
|
53 |
<?php $_iterator = 0; ?>
|
54 |
<ol class="products-list" id="products-list">
|
55 |
<?php foreach ($_productCollection as $_product):?>
|
|
|
56 |
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
|
57 |
|
58 |
<?php // Product Image ?>
|
68 |
|
69 |
<!--Condition for Timer Controllers goes here-->
|
70 |
<?php if($this->getPriceCountDown($_product)) :?>
|
71 |
+
<?php if (Mage::helper('timer')->isShowTitle('listpage')): ?>
|
72 |
+
<div id="heading<?php echo $count; ?>" class="timer-heading" style="font-size: 14px; font-weight:bold;padding-top:0px;clear: both;">
|
73 |
<?php echo Mage::helper('timer')->getTimerTitle(); ?>
|
74 |
</div>
|
75 |
<?php endif; ?>
|
76 |
<div id="countbox_<?php echo $count; ?>" class="timer-list"></div>
|
77 |
+
<?php if (Mage::helper('timer')->isShowCaption('listpage')): ?>
|
78 |
<div class='clear'></div>
|
79 |
<div class='timerdate' id="caption<?php echo $count; ?>">
|
80 |
+
<span class='hour' style='margin:0'><?php echo $this->__('D') ?></span>
|
81 |
+
<span class='hour' style='margin:0 0 0 25px'><?php echo $this->__('H') ?></span>
|
82 |
+
<span class='min' style='margin:0 0 0 22px'><?php echo $this->__('M') ?></span>
|
83 |
+
<span class='sec' style='margin:0 0 0 23px'><?php echo $this->__('S') ?></span>
|
84 |
</div>
|
85 |
<?php endif;?>
|
86 |
<?php endif; ?>
|
87 |
<!--Condition for Timer Controllers End -->
|
88 |
|
89 |
<?php if($_product->isSaleable()): ?>
|
90 |
+
<p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
|
91 |
<?php else: ?>
|
92 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
93 |
<?php endif; ?>
|
94 |
<div class="desc std">
|
95 |
+
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
|
96 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
|
97 |
</div>
|
98 |
+
<ul class="add-to-links">
|
99 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
100 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
101 |
+
<?php endif; ?>
|
102 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
103 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
104 |
+
<?php endif; ?>
|
105 |
+
</ul>
|
106 |
</div>
|
107 |
</div>
|
108 |
+
<?php if($this->getPriceCountDown($_product)) :?>
|
109 |
+
<?php $toDate = $_product->getSpecialTODate();?>
|
110 |
+
<script type="text/javascript">
|
111 |
+
var dthen<?php echo $count; ?> = new Date("<?php echo Date("m/d/y", strtotime($toDate)).' 11:59:00 PM'; ?>");
|
112 |
+
start = "<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>";
|
113 |
+
start_date = Date.parse(start);
|
114 |
+
var dnow<?php echo $count; ?> = new Date(start_date);
|
115 |
+
if(CountStepper>0)
|
116 |
+
ddiff= new Date((dnow<?php echo $count; ?>)-(dthen<?php echo $count; ?>));
|
117 |
+
else
|
118 |
+
ddiff = new Date((dthen<?php echo $count; ?>)-(dnow<?php echo $count; ?>));
|
119 |
+
gsecs<?php echo $count; ?> = Math.floor(ddiff.valueOf()/1000);
|
120 |
+
var iid<?php echo $count; ?> = "countbox_<?php echo $count; ?>";
|
121 |
+
CountBack(gsecs<?php echo $count; ?>,"countbox_"+timer, timer);
|
122 |
+
timer++;
|
123 |
+
</script>
|
124 |
+
<?php $count = $count + 1; ?>
|
125 |
+
<?php endif;?>
|
126 |
</li>
|
127 |
<?php endforeach; ?>
|
128 |
</ol>
|
135 |
<?php $_collectionSize = $_productCollection->count() ?>
|
136 |
<?php $_columnCount = $this->getColumnCount();?>
|
137 |
<?php $i=0; foreach ($_productCollection as $_product): ?>
|
|
|
138 |
<?php if ($i++%$_columnCount==0): ?>
|
139 |
<ul class="products-grid">
|
140 |
<?php endif ?>
|
142 |
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
143 |
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
|
144 |
<?php if($_product->getRatingSummary()): ?>
|
145 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
146 |
<?php endif; ?>
|
147 |
<?php echo $this->getPriceHtml($_product, true) ?>
|
148 |
|
149 |
<!--Condition for Timer Controllers goes here-->
|
150 |
<?php if($this->getPriceCountDown($_product)) :?>
|
151 |
+
<?php if (Mage::helper('timer')->isShowTitle('listpage')): ?>
|
152 |
+
<div id="heading<?php echo $count; ?>" class="timer-heading" style="font-size: 14px; font-weight:bold;padding-top:0px;clear: both;">
|
153 |
<?php echo Mage::helper('timer')->getTimerTitle(); ?>
|
154 |
</div>
|
155 |
<?php endif; ?>
|
156 |
<div id="countbox_<?php echo $count; ?>" class="timer-list"></div>
|
157 |
+
<?php if (Mage::helper('timer')->isShowCaption('listpage')): ?>
|
158 |
<div class='clear'></div>
|
159 |
<div class='timerdate' id="caption<?php echo $count; ?>">
|
160 |
+
<span class='hour' style='margin:0'><?php echo $this->__('D') ?></span>
|
161 |
+
<span class='hour' style='margin:0 0 0 25px'><?php echo $this->__('H') ?></span>
|
162 |
+
<span class='min' style='margin:0 0 0 22px'><?php echo $this->__('M') ?></span>
|
163 |
+
<span class='sec' style='margin:0 0 0 23px'><?php echo $this->__('S') ?></span>
|
164 |
</div>
|
165 |
<?php endif;?>
|
166 |
<?php endif; ?>
|
183 |
<?php endif; ?>
|
184 |
</ul>
|
185 |
</div>
|
186 |
+
<?php if($this->getPriceCountDown($_product)) :?>
|
187 |
+
<?php $toDate = $_product->getSpecialTODate();?>
|
188 |
+
<script type="text/javascript">
|
189 |
+
var dthen<?php echo $count; ?> = new Date("<?php echo Date("m/d/y", strtotime($toDate)).' 11:59:00 PM'; ?>");
|
190 |
+
start = "<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>";
|
191 |
+
start_date = Date.parse(start);
|
192 |
+
var dnow<?php echo $count; ?> = new Date(start_date);
|
193 |
+
if(CountStepper>0)
|
194 |
+
ddiff= new Date((dnow<?php echo $count; ?>)-(dthen<?php echo $count; ?>));
|
195 |
+
else
|
196 |
+
ddiff = new Date((dthen<?php echo $count; ?>)-(dnow<?php echo $count; ?>));
|
197 |
+
gsecs<?php echo $count; ?> = Math.floor(ddiff.valueOf()/1000);
|
198 |
+
var iid<?php echo $count; ?> = "countbox_<?php echo $count; ?>";
|
199 |
+
CountBack(gsecs<?php echo $count; ?>,"countbox_"+timer, timer);
|
200 |
+
timer++;
|
201 |
+
</script>
|
202 |
+
<?php $count = $count + 1; ?>
|
203 |
+
<?php endif;?>
|
204 |
</li>
|
205 |
<?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
|
206 |
</ul>
|
223 |
$desc_color = Mage::getStoreConfig('timer/apptha_timer_color/description');
|
224 |
$head_color = Mage::getStoreConfig('timer/apptha_timer_color/heading_text_color');
|
225 |
?>
|
226 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
<!-- Timer Script End here -->
|
228 |
<!--Dynamic style changes goes here-->
|
229 |
<style>
|
|
|
230 |
.timer-list{float: left;width: 100%;padding: 0;color: #<?php echo $timer_color; ?>;font-size: 18px;font-family:arial;font-weight: bold;}
|
231 |
.timerdate{float: left;width: 100%;padding:0 0 3px 0;color: #<?php echo $desc_color; ?>;font-size: 12px;}
|
232 |
+
.timer-heading{color:#<?php echo $head_color;?>;}
|
233 |
</style>
|
app/design/frontend/base/default/template/timer/product/view.phtml
CHANGED
@@ -48,25 +48,25 @@ $toDate = $_product->getSpecialTODate();
|
|
48 |
</ul>
|
49 |
<!--Condition for Timer Controllers goes here-->
|
50 |
<?php if ($this->getPriceCountDown()): ?>
|
51 |
-
<?php if (Mage::helper('timer')->isShowTitle()): ?>
|
52 |
<div id="heading<?php echo $count; ?>" style="color:#<?php echo $head_color; ?>; font-size: 18px; font-weight:bold;padding-top:15px;clear: both;">
|
53 |
<?php echo Mage::helper('timer')->getTimerTitle(); ?>
|
54 |
</div>
|
55 |
<?php endif; ?>
|
56 |
<div id="countbox_<?php echo $count; ?>" class="timer-view"></div>
|
57 |
-
<?php if (Mage::helper('timer')->isShowCaption()): ?>
|
58 |
<div class='clear'></div>
|
59 |
<div class='timerdate' id="caption<?php echo $count; ?>">
|
60 |
-
<span class='hour' style='margin:
|
61 |
<?php echo $this->__('Days') ?>
|
62 |
</span>
|
63 |
-
<span class='hour' style='margin:
|
64 |
<?php echo $this->__('Hours') ?>
|
65 |
</span>
|
66 |
-
<span class='min' style='margin:
|
67 |
<?php echo $this->__('Minutes') ?>
|
68 |
</span>
|
69 |
-
<span class='sec' style='margin:
|
70 |
<?php echo $this->__('Seconds') ?>
|
71 |
</span>
|
72 |
</div>
|
@@ -97,5 +97,6 @@ $toDate = $_product->getSpecialTODate();
|
|
97 |
?>
|
98 |
<style>
|
99 |
.timer-view{float: left;width: 100%;padding:0;color: #<?php echo $timer_color; ?>;font-size: 40px; font-family: arial;font-weight: bold;}
|
100 |
-
.timerdate{float: left;width: 100%;padding:0 0 15px
|
|
|
101 |
</style>
|
48 |
</ul>
|
49 |
<!--Condition for Timer Controllers goes here-->
|
50 |
<?php if ($this->getPriceCountDown()): ?>
|
51 |
+
<?php if (Mage::helper('timer')->isShowTitle('viewpage')): ?>
|
52 |
<div id="heading<?php echo $count; ?>" style="color:#<?php echo $head_color; ?>; font-size: 18px; font-weight:bold;padding-top:15px;clear: both;">
|
53 |
<?php echo Mage::helper('timer')->getTimerTitle(); ?>
|
54 |
</div>
|
55 |
<?php endif; ?>
|
56 |
<div id="countbox_<?php echo $count; ?>" class="timer-view"></div>
|
57 |
+
<?php if (Mage::helper('timer')->isShowCaption('viewpage')): ?>
|
58 |
<div class='clear'></div>
|
59 |
<div class='timerdate' id="caption<?php echo $count; ?>">
|
60 |
+
<span class='hour' style='margin:0px'>
|
61 |
<?php echo $this->__('Days') ?>
|
62 |
</span>
|
63 |
+
<span class='hour' style='margin:0 0 0 40px'>
|
64 |
<?php echo $this->__('Hours') ?>
|
65 |
</span>
|
66 |
+
<span class='min' style='margin:0 0 0 25px'>
|
67 |
<?php echo $this->__('Minutes') ?>
|
68 |
</span>
|
69 |
+
<span class='sec' style='margin:0 0 0 15px'>
|
70 |
<?php echo $this->__('Seconds') ?>
|
71 |
</span>
|
72 |
</div>
|
97 |
?>
|
98 |
<style>
|
99 |
.timer-view{float: left;width: 100%;padding:0;color: #<?php echo $timer_color; ?>;font-size: 40px; font-family: arial;font-weight: bold;}
|
100 |
+
.timerdate{float: left;width: 100%;padding:0 0 15px 1px;color: #<?php echo $desc_color; ?>;font-size: 13px;}
|
101 |
+
#heading1{color:#<?php echo $head_color;?>;}
|
102 |
</style>
|
app/design/frontend/rwd/default/layout/timer.xml
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Apptha
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the EULA
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://www.apptha.com/LICENSE.txt
|
12 |
+
*
|
13 |
+
* ==============================================================
|
14 |
+
* MAGENTO EDITION USAGE NOTICE
|
15 |
+
* ==============================================================
|
16 |
+
* This package designed for Magento COMMUNITY edition
|
17 |
+
* Apptha does not guarantee correct work of this extension
|
18 |
+
* on any other Magento edition except Magento COMMUNITY edition.
|
19 |
+
* Apptha does not provide extension support in case of
|
20 |
+
* incorrect edition usage.
|
21 |
+
* ==============================================================
|
22 |
+
*
|
23 |
+
* @category Apptha
|
24 |
+
* @package Apptha_PriceCount
|
25 |
+
* @version 0.1.4
|
26 |
+
* @author Apptha Team <developers@contus.in>
|
27 |
+
* @copyright Copyright (c) 2014 Apptha. (http://www.apptha.com)
|
28 |
+
* @license http://www.apptha.com/LICENSE.txt
|
29 |
+
*
|
30 |
+
**/
|
31 |
+
-->
|
32 |
+
<layout version="0.1.0">
|
33 |
+
<catalog_category_default>
|
34 |
+
<reference name="head">
|
35 |
+
<action method="addJs"><script>timer.js</script></action>
|
36 |
+
<action method="addCss"><stylesheet>timer/timer.css</stylesheet></action>
|
37 |
+
</reference>
|
38 |
+
<reference name="product_list">
|
39 |
+
<action method="setTemplate" ifconfig="timer/general/enabled">
|
40 |
+
<template>timer/product/list.phtml</template>
|
41 |
+
</action>
|
42 |
+
</reference>
|
43 |
+
</catalog_category_default>
|
44 |
+
<catalog_category_layered translate="label">
|
45 |
+
<reference name="head">
|
46 |
+
<action method="addJs"><script>timer.js</script></action>
|
47 |
+
<action method="addCss"><stylesheet>timer/timer.css</stylesheet></action>
|
48 |
+
</reference>
|
49 |
+
<reference name="product_list">
|
50 |
+
<action method="setTemplate" ifconfig="timer/general/enabled">
|
51 |
+
<template>timer/product/list.phtml</template>
|
52 |
+
</action>
|
53 |
+
</reference>
|
54 |
+
</catalog_category_layered>
|
55 |
+
<catalog_product_view>
|
56 |
+
<reference name="head">
|
57 |
+
<action method="addJs"><script>timer.js</script></action>
|
58 |
+
<action method="addCss"><stylesheet>timer/timer.css</stylesheet></action>
|
59 |
+
</reference>
|
60 |
+
<reference name="product.info.addto">
|
61 |
+
<action method="setTemplate" ifconfig="timer/general/enabled">
|
62 |
+
<template>timer/product/view.phtml</template>
|
63 |
+
</action>
|
64 |
+
</reference>
|
65 |
+
</catalog_product_view>
|
66 |
+
<catalogsearch_advanced_result>
|
67 |
+
<reference name="head">
|
68 |
+
<action method="addJs"><script>timer.js</script></action>
|
69 |
+
<action method="addCss"><stylesheet>timer/timer.css</stylesheet></action>
|
70 |
+
</reference>
|
71 |
+
<reference name="search_result_list">
|
72 |
+
<action method="setTemplate" ifconfig="timer/general/enabled">
|
73 |
+
<template>timer/product/list.phtml</template>
|
74 |
+
</action>
|
75 |
+
</reference>
|
76 |
+
</catalogsearch_advanced_result>
|
77 |
+
<catalogsearch_result_index>
|
78 |
+
<reference name="head">
|
79 |
+
<action method="addJs"><script>timer.js</script></action>
|
80 |
+
<action method="addCss"><stylesheet>timer/timer.css</stylesheet></action>
|
81 |
+
</reference>
|
82 |
+
<reference name="search_result_list">
|
83 |
+
<action method="setTemplate" ifconfig="timer/general/enabled">
|
84 |
+
<template>timer/product/list.phtml</template>
|
85 |
+
</action>
|
86 |
+
</reference>
|
87 |
+
</catalogsearch_result_index>
|
88 |
+
</layout>
|
app/design/frontend/rwd/default/template/timer/product/list.phtml
ADDED
@@ -0,0 +1,280 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Product list template
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Product_List
|
32 |
+
*/
|
33 |
+
/* @var $this Mage_Catalog_Block_Product_List */
|
34 |
+
?>
|
35 |
+
<?php
|
36 |
+
/* Count for timer calculation declared here */
|
37 |
+
$count = 1;
|
38 |
+
$_productCollection=$this->getLoadedProductCollection();
|
39 |
+
$_helper = $this->helper('catalog/output');
|
40 |
+
?>
|
41 |
+
<?php if(!$_productCollection->count()): ?>
|
42 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
43 |
+
<?php else: ?>
|
44 |
+
<div class="category-products">
|
45 |
+
<?php echo $this->getToolbarHtml() ?>
|
46 |
+
<?php // List mode ?>
|
47 |
+
<?php if($this->getMode()!='grid'): ?>
|
48 |
+
<?php $_iterator = 0; ?>
|
49 |
+
<ol class="products-list" id="products-list">
|
50 |
+
<?php foreach ($_productCollection as $_product): ?>
|
51 |
+
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
|
52 |
+
<?php // Product Image ?>
|
53 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
54 |
+
<?php /* Based on the native RWD styling, product images are displayed at a max of ~400px wide when viewed on a
|
55 |
+
one column page layout with four product columns from a 1280px viewport. For bandwidth reasons,
|
56 |
+
we are going to serve a 300px image, as it will look fine at 400px and most of the times, the image
|
57 |
+
will be displayed at a smaller size (eg, if two column are being used or viewport is smaller than 1280px).
|
58 |
+
This $_imgSize value could even be decreased further, based on the page layout
|
59 |
+
(one column, two column, three column) and number of product columns. */ ?>
|
60 |
+
<?php $_imgSize = 300; ?>
|
61 |
+
<img id="product-collection-image-<?php echo $_product->getId(); ?>"
|
62 |
+
src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->keepFrame(false)->resize($_imgSize); ?>"
|
63 |
+
alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
64 |
+
</a>
|
65 |
+
<?php // Product description ?>
|
66 |
+
<div class="product-shop">
|
67 |
+
<div class="f-fix">
|
68 |
+
<div class="product-primary">
|
69 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
70 |
+
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
|
71 |
+
<?php if($_product->getRatingSummary()): ?>
|
72 |
+
<?php echo $this->getReviewsSummaryHtml($_product) ?>
|
73 |
+
<?php endif; ?>
|
74 |
+
|
75 |
+
<?php
|
76 |
+
$_nameAfterChildren = $this->getChild('name.after')->getSortedChildren();
|
77 |
+
foreach($_nameAfterChildren as $_nameAfterChildName):
|
78 |
+
$_nameAfterChild = $this->getChild('name.after')->getChild($_nameAfterChildName);
|
79 |
+
$_nameAfterChild->setProduct($_product);
|
80 |
+
?>
|
81 |
+
<?php echo $_nameAfterChild->toHtml(); ?>
|
82 |
+
<?php endforeach; ?>
|
83 |
+
</div>
|
84 |
+
<div class="product-secondary">
|
85 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
86 |
+
</div>
|
87 |
+
<!--Condition for Timer Controllers goes here-->
|
88 |
+
<?php if($this->getPriceCountDown($_product)) :?>
|
89 |
+
<?php if (Mage::helper('timer')->isShowTitle('listpage')): ?>
|
90 |
+
<div id="heading<?php echo $count; ?>" class="timer-heading" style="font-size: 14px; font-weight:bold;padding-top:0px;clear: both;">
|
91 |
+
<?php echo Mage::helper('timer')->getTimerTitle(); ?>
|
92 |
+
</div>
|
93 |
+
<?php endif; ?>
|
94 |
+
<div id="countbox_<?php echo $count; ?>" class="timer-list"></div>
|
95 |
+
<?php if (Mage::helper('timer')->isShowCaption('listpage')): ?>
|
96 |
+
<div class='clear'></div>
|
97 |
+
<div class='timerdate' id="caption<?php echo $count; ?>">
|
98 |
+
<span class='hour' style='margin:0'><?php echo $this->__('D') ?></span>
|
99 |
+
<span class='hour' style='margin:0 0 0 25px'><?php echo $this->__('H') ?></span>
|
100 |
+
<span class='min' style='margin:0 0 0 22px'><?php echo $this->__('M') ?></span>
|
101 |
+
<span class='sec' style='margin:0 0 0 23px'><?php echo $this->__('S') ?></span>
|
102 |
+
</div>
|
103 |
+
<?php endif;?>
|
104 |
+
<?php endif; ?>
|
105 |
+
<!--Condition for Timer Controllers End -->
|
106 |
+
<div class="product-secondary">
|
107 |
+
<?php if($_product->isSaleable() && !$_product->canConfigure()): ?>
|
108 |
+
<p class="action"><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
|
109 |
+
<?php elseif($_product->isSaleable()): ?>
|
110 |
+
<p class="action"><a title="<?php echo $this->__('View Details') ?>" class="button" href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('View Details') ?></a></p>
|
111 |
+
<?php else: ?>
|
112 |
+
<p class="action availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
113 |
+
<?php endif; ?>
|
114 |
+
<ul class="add-to-links">
|
115 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
116 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
117 |
+
<?php endif; ?>
|
118 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
119 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
120 |
+
<?php endif; ?>
|
121 |
+
</ul>
|
122 |
+
</div>
|
123 |
+
<div class="desc std">
|
124 |
+
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
|
125 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
|
126 |
+
</div>
|
127 |
+
</div>
|
128 |
+
</div>
|
129 |
+
<?php if($this->getPriceCountDown($_product)) :?>
|
130 |
+
<?php $toDate = $_product->getSpecialTODate();?>
|
131 |
+
<script type="text/javascript">
|
132 |
+
var dthen<?php echo $count; ?> = new Date("<?php echo Date("m/d/y", strtotime($toDate)).' 11:59:00 PM'; ?>");
|
133 |
+
start = "<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>";
|
134 |
+
start_date = Date.parse(start);
|
135 |
+
var dnow<?php echo $count; ?> = new Date(start_date);
|
136 |
+
if(CountStepper>0)
|
137 |
+
ddiff= new Date((dnow<?php echo $count; ?>)-(dthen<?php echo $count; ?>));
|
138 |
+
else
|
139 |
+
ddiff = new Date((dthen<?php echo $count; ?>)-(dnow<?php echo $count; ?>));
|
140 |
+
gsecs<?php echo $count; ?> = Math.floor(ddiff.valueOf()/1000);
|
141 |
+
var iid<?php echo $count; ?> = "countbox_<?php echo $count; ?>";
|
142 |
+
CountBack(gsecs<?php echo $count; ?>,"countbox_"+timer, timer);
|
143 |
+
timer++;
|
144 |
+
</script>
|
145 |
+
<?php $count = $count + 1; ?>
|
146 |
+
<?php endif;?>
|
147 |
+
</li>
|
148 |
+
<?php endforeach; ?>
|
149 |
+
</ol>
|
150 |
+
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
|
151 |
+
|
152 |
+
<?php else: ?>
|
153 |
+
|
154 |
+
<?php // Grid Mode ?>
|
155 |
+
|
156 |
+
<?php $_collectionSize = $_productCollection->count() ?>
|
157 |
+
<?php $_columnCount = $this->getColumnCount(); ?>
|
158 |
+
<?php $i=0; foreach ($_productCollection as $_product): ?>
|
159 |
+
<?php if ($i++%$_columnCount==0): ?>
|
160 |
+
<ul class="products-grid products-grid--max-<?php echo $_columnCount; ?>-col">
|
161 |
+
<?php endif ?>
|
162 |
+
<?php /*if ($i++%$_columnCount==0): ?>
|
163 |
+
<?php endif*/ ?>
|
164 |
+
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
|
165 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
166 |
+
<?php $_imgSize = 210; ?>
|
167 |
+
<img id="product-collection-image-<?php echo $_product->getId(); ?>"
|
168 |
+
src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($_imgSize); ?>"
|
169 |
+
alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
170 |
+
</a>
|
171 |
+
<div class="product-info">
|
172 |
+
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
|
173 |
+
|
174 |
+
<?php
|
175 |
+
$_nameAfterChildren = $this->getChild('name.after')->getSortedChildren();
|
176 |
+
foreach($_nameAfterChildren as $_nameAfterChildName):
|
177 |
+
$_nameAfterChild = $this->getChild('name.after')->getChild($_nameAfterChildName);
|
178 |
+
$_nameAfterChild->setProduct($_product);
|
179 |
+
?>
|
180 |
+
<?php echo $_nameAfterChild->toHtml(); ?>
|
181 |
+
<?php endforeach; ?>
|
182 |
+
|
183 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
184 |
+
<!--Condition for Timer Controllers goes here-->
|
185 |
+
<?php if($this->getPriceCountDown($_product)) :?>
|
186 |
+
<?php if (Mage::helper('timer')->isShowTitle('listpage')): ?>
|
187 |
+
<div id="heading<?php echo $count; ?>" class="timer-heading" style="font-size: 14px; font-weight:bold;padding-top:0px;clear: both;">
|
188 |
+
<?php echo Mage::helper('timer')->getTimerTitle(); ?>
|
189 |
+
</div>
|
190 |
+
<?php endif; ?>
|
191 |
+
<div id="countbox_<?php echo $count; ?>" class="timer-list"></div>
|
192 |
+
<?php if (Mage::helper('timer')->isShowCaption('listpage')): ?>
|
193 |
+
<div class='clear'></div>
|
194 |
+
<div class='timerdate' id="caption<?php echo $count; ?>">
|
195 |
+
<span class='hour' style='margin:0'><?php echo $this->__('D') ?></span>
|
196 |
+
<span class='hour' style='margin:0 0 0 25px'><?php echo $this->__('H') ?></span>
|
197 |
+
<span class='min' style='margin:0 0 0 20px'><?php echo $this->__('M') ?></span>
|
198 |
+
<span class='sec' style='margin:0 0 0 23px'><?php echo $this->__('S') ?></span>
|
199 |
+
</div>
|
200 |
+
<?php endif;?>
|
201 |
+
<?php endif; ?>
|
202 |
+
<!--Condition for Timer Controllers End -->
|
203 |
+
<?php if($_product->getRatingSummary()): ?>
|
204 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
205 |
+
<?php endif; ?>
|
206 |
+
<div class="actions">
|
207 |
+
<?php if($_product->isSaleable() && !$_product->canConfigure()): ?>
|
208 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
209 |
+
<?php elseif($_product->isSaleable()): ?>
|
210 |
+
<a title="<?php echo $this->__('View Details') ?>" class="button" href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('View Details') ?></a>
|
211 |
+
<?php else: ?>
|
212 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
213 |
+
<?php endif; ?>
|
214 |
+
<ul class="add-to-links">
|
215 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
216 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
217 |
+
<?php endif; ?>
|
218 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
219 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
220 |
+
<?php endif; ?>
|
221 |
+
</ul>
|
222 |
+
</div>
|
223 |
+
</div>
|
224 |
+
<?php if($this->getPriceCountDown($_product)) :?>
|
225 |
+
<?php $toDate = $_product->getSpecialTODate();?>
|
226 |
+
<script type="text/javascript">
|
227 |
+
var dthen<?php echo $count; ?> = new Date("<?php echo Date("m/d/y", strtotime($toDate)).' 11:59:00 PM'; ?>");
|
228 |
+
start = "<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>";
|
229 |
+
start_date = Date.parse(start);
|
230 |
+
var dnow<?php echo $count; ?> = new Date(start_date);
|
231 |
+
if(CountStepper>0)
|
232 |
+
ddiff= new Date((dnow<?php echo $count; ?>)-(dthen<?php echo $count; ?>));
|
233 |
+
else
|
234 |
+
ddiff = new Date((dthen<?php echo $count; ?>)-(dnow<?php echo $count; ?>));
|
235 |
+
gsecs<?php echo $count; ?> = Math.floor(ddiff.valueOf()/1000);
|
236 |
+
var iid<?php echo $count; ?> = "countbox_<?php echo $count; ?>";
|
237 |
+
CountBack(gsecs<?php echo $count; ?>,"countbox_"+timer, timer);
|
238 |
+
timer++;
|
239 |
+
</script>
|
240 |
+
<?php $count = $count + 1; ?>
|
241 |
+
<?php endif;?>
|
242 |
+
</li>
|
243 |
+
<?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
|
244 |
+
</ul>
|
245 |
+
<?php endif ?>
|
246 |
+
<?php endforeach ?>
|
247 |
+
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
|
248 |
+
<?php endif; ?>
|
249 |
+
|
250 |
+
<div class="toolbar-bottom">
|
251 |
+
<?php echo $this->getToolbarHtml() ?>
|
252 |
+
</div>
|
253 |
+
</div>
|
254 |
+
<?php endif; ?>
|
255 |
+
|
256 |
+
<?php
|
257 |
+
//set product collection on after blocks
|
258 |
+
$_afterChildren = $this->getChild('after')->getSortedChildren();
|
259 |
+
foreach($_afterChildren as $_afterChildName):
|
260 |
+
$_afterChild = $this->getChild('after')->getChild($_afterChildName);
|
261 |
+
$_afterChild->setProductCollection($_productCollection);
|
262 |
+
?>
|
263 |
+
<?php echo $_afterChild->toHtml(); ?>
|
264 |
+
<?php endforeach; ?>
|
265 |
+
|
266 |
+
<!-- Timer Script Start here -->
|
267 |
+
<?php
|
268 |
+
/* Admin Controllers for timer are declared here */
|
269 |
+
$timer_color = Mage::getStoreConfig('timer/apptha_timer_color/text');
|
270 |
+
$desc_color = Mage::getStoreConfig('timer/apptha_timer_color/description');
|
271 |
+
$head_color = Mage::getStoreConfig('timer/apptha_timer_color/heading_text_color');
|
272 |
+
?>
|
273 |
+
|
274 |
+
<!-- Timer Script End here -->
|
275 |
+
<!--Dynamic style changes goes here-->
|
276 |
+
<style>
|
277 |
+
.timer-list{float: left;width: 100%;padding: 0;color: #<?php echo $timer_color; ?>;font-size: 18px;font-family:arial;font-weight: bold;}
|
278 |
+
.timerdate{float: left;width: 100%;padding:0 0 3px 0;color: #<?php echo $desc_color; ?>;font-size: 12px;}
|
279 |
+
.timer-heading{color:#<?php echo $head_color;?>;}
|
280 |
+
</style>
|
app/design/frontend/rwd/default/template/timer/product/view.phtml
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Apptha
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the EULA
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://www.apptha.com/LICENSE.txt
|
11 |
+
*
|
12 |
+
* ==============================================================
|
13 |
+
* MAGENTO EDITION USAGE NOTICE
|
14 |
+
* ==============================================================
|
15 |
+
* This package designed for Magento COMMUNITY edition
|
16 |
+
* Apptha does not guarantee correct work of this extension
|
17 |
+
* on any other Magento edition except Magento COMMUNITY edition.
|
18 |
+
* Apptha does not provide extension support in case of
|
19 |
+
* incorrect edition usage.
|
20 |
+
* ==============================================================
|
21 |
+
*
|
22 |
+
* @category Apptha
|
23 |
+
* @package Apptha_PriceCount
|
24 |
+
* @version 0.1.4
|
25 |
+
* @author Apptha Team <developers@contus.in>
|
26 |
+
* @copyright Copyright (c) 2014 Apptha. (http://www.apptha.com)
|
27 |
+
* @license http://www.apptha.com/LICENSE.txt
|
28 |
+
*
|
29 |
+
*/
|
30 |
+
?>
|
31 |
+
<?php
|
32 |
+
/* Count for timer calculation declared here */
|
33 |
+
$count = 1;
|
34 |
+
$_product = $this->getProduct();
|
35 |
+
$toDate = $_product->getSpecialTODate();
|
36 |
+
?>
|
37 |
+
<?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
|
38 |
+
<ul class="add-to-links">
|
39 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
40 |
+
<li><a href="<?php echo $_wishlistSubmitUrl ?>" onclick="productAddToCartForm.submitLight(this, '<?php echo $_wishlistSubmitUrl ?>'); return false;" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
41 |
+
<?php endif; ?>
|
42 |
+
<?php
|
43 |
+
$_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
|
44 |
+
?>
|
45 |
+
<?php if ($_compareUrl) : ?>
|
46 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
47 |
+
<?php endif; ?>
|
48 |
+
</ul>
|
49 |
+
<!--Condition for Timer Controllers goes here-->
|
50 |
+
<?php if ($this->getPriceCountDown()): ?>
|
51 |
+
<?php if (Mage::helper('timer')->isShowTitle('viewpage')): ?>
|
52 |
+
<div id="heading<?php echo $count; ?>" style="color:#<?php echo $head_color; ?>; font-size: 18px; font-weight:bold;padding-top:15px;clear: both;">
|
53 |
+
<?php echo Mage::helper('timer')->getTimerTitle(); ?>
|
54 |
+
</div>
|
55 |
+
<?php endif; ?>
|
56 |
+
<div id="countbox_<?php echo $count; ?>" class="timer-view"></div>
|
57 |
+
<?php if (Mage::helper('timer')->isShowCaption('viewpage')): ?>
|
58 |
+
<div class='clear'></div>
|
59 |
+
<div class='timerdate' id="caption<?php echo $count; ?>">
|
60 |
+
<span class='hour' style='margin:0px'>
|
61 |
+
<?php echo $this->__('Days') ?>
|
62 |
+
</span>
|
63 |
+
<span class='hour' style='margin:0 0 0 33px'>
|
64 |
+
<?php echo $this->__('Hours') ?>
|
65 |
+
</span>
|
66 |
+
<span class='min' style='margin:0 0 0 24px'>
|
67 |
+
<?php echo $this->__('Minutes') ?>
|
68 |
+
</span>
|
69 |
+
<span class='sec' style='margin:0 0 0 14px'>
|
70 |
+
<?php echo $this->__('Seconds') ?>
|
71 |
+
</span>
|
72 |
+
</div>
|
73 |
+
<?php endif;?>
|
74 |
+
<script type="text/javascript">
|
75 |
+
var dthen<?php echo $count; ?> = new Date("<?php echo Date("m/d/y", strtotime($toDate)).' 11:59:00 PM'; ?>");
|
76 |
+
start = "<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>";
|
77 |
+
start_date = Date.parse(start);
|
78 |
+
var dnow<?php echo $count; ?> = new Date(start_date);
|
79 |
+
if(CountStepper>0)
|
80 |
+
ddiff= new Date((dnow<?php echo $count; ?>)-(dthen<?php echo $count; ?>));
|
81 |
+
else
|
82 |
+
ddiff = new Date((dthen<?php echo $count; ?>)-(dnow<?php echo $count; ?>));
|
83 |
+
gsecs<?php echo $count; ?> = Math.floor(ddiff.valueOf()/1000);
|
84 |
+
var iid<?php echo $count; ?> = "countbox_<?php echo $count; ?>";
|
85 |
+
CountBack(gsecs<?php echo $count; ?>,"countbox_"+timer, timer);
|
86 |
+
timer++;
|
87 |
+
</script>
|
88 |
+
<?php $count = $count + 1; ?>
|
89 |
+
<?php endif; ?>
|
90 |
+
|
91 |
+
<!--Dynamic style changes goes here-->
|
92 |
+
<?php
|
93 |
+
/* Admin Controllers for timer are declared here */
|
94 |
+
$desc_color = Mage::getStoreConfig('timer/apptha_timer_color/description');
|
95 |
+
$timer_color = Mage::getStoreConfig('timer/apptha_timer_color/text');
|
96 |
+
$head_color = Mage::getStoreConfig('timer/apptha_timer_color/heading_text_color');
|
97 |
+
?>
|
98 |
+
<style>
|
99 |
+
.timer-view{float: left;width: 100%;padding:0;color: #<?php echo $timer_color; ?>;font-size: 40px; font-family: arial;font-weight: bold;}
|
100 |
+
.timerdate{float: left;width: 100%;padding:0 0 15px 1px;color: #<?php echo $desc_color; ?>;font-size: 13px;}
|
101 |
+
#heading1{color:#<?php echo $head_color;?>;}
|
102 |
+
</style>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Price_Countdown</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Countdown timer for Special product price to date. Timer displays according to the special price and to date set while adding products.</description>
|
11 |
<notes>Countdown timer for Special product price to date. Timer displays according to the special price and to date set while adding products.</notes>
|
12 |
<authors><author><name>LEAD</name><user>apptha</user><email>info@apptha.com</email></author></authors>
|
13 |
-
<date>2014-12-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Apptha"><dir name="Timer"><dir name="Block"><dir name="Product"><file name="List.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Price_Countdown</name>
|
4 |
+
<version>1.4.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Countdown timer for Special product price to date. Timer displays according to the special price and to date set while adding products.</description>
|
11 |
<notes>Countdown timer for Special product price to date. Timer displays according to the special price and to date set while adding products.</notes>
|
12 |
<authors><author><name>LEAD</name><user>apptha</user><email>info@apptha.com</email></author></authors>
|
13 |
+
<date>2014-12-30</date>
|
14 |
+
<time>15:12:48</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Apptha"><dir name="Timer"><dir name="Block"><dir name="Product"><file name="List.php" hash="e0a98fd3c4cbedfb89036d801a03dbbb"/><file name="View.php" hash="cc6c07bb85ce7b350b6148b61dd00116"/></dir></dir><dir name="Helper"><file name="Data.php" hash="660c7e8b9e1d6ca566f3879cc201b520"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Showin.php" hash="83ad0ebf1167ce3067434be4d6811e35"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="24dddb8493454306c33741bc566e9be9"/><file name="config.xml" hash="ac297e99a100e6496c4420f90b3fd135"/><file name="system.xml" hash="2cd1e4496c0416f809389631bbeed2c6"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Apptha_Timer.xml" hash="6bfae81454a51f0f63f8f88c16af9f00"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="timer.xml" hash="767876c536b76550cfc14801542d8e19"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="timer.xml" hash="1c386c2b37e39a42b00053ba49e02e72"/></dir><dir name="template"><dir name="timer"><dir name="product"><file name="list.phtml" hash="4c10e56e8ddc238e4c8db337823cd9d0"/><file name="view.phtml" hash="b13bf7d2748fc09b511b92da79fa78d2"/></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="timer.xml" hash="1c386c2b37e39a42b00053ba49e02e72"/></dir><dir name="template"><dir name="timer"><dir name="product"><file name="list.phtml" hash="76792439027f8929d3e769ac58f98b4c"/><file name="view.phtml" hash="8e7deb1f7c3efe61f501ae4d34c7984f"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="timer"><file name="timer.css" hash="26694a9b9c8bd186a0defe4159058bf8"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><file name="timer.js" hash="3b73d62168c95a362f26ca973c8480a1"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
skin/frontend/base/default/timer/timer.css
CHANGED
@@ -39,4 +39,5 @@
|
|
39 |
.timerdate .day{margin:1px 1px; width:20px; text-align: center;}
|
40 |
.timerdate .hour{margin:1px 1px;width:20px; text-align: center;}
|
41 |
.timerdate .min{margin:1px 1px; width:20px; text-align: center;}
|
42 |
-
.timerdate .sec{margin:1px 1px; width:20px; text-align: center;}
|
|
39 |
.timerdate .day{margin:1px 1px; width:20px; text-align: center;}
|
40 |
.timerdate .hour{margin:1px 1px;width:20px; text-align: center;}
|
41 |
.timerdate .min{margin:1px 1px; width:20px; text-align: center;}
|
42 |
+
.timerdate .sec{margin:1px 1px; width:20px; text-align: center;}
|
43 |
+
.products-grid .actions{position:relative !important;bottom:0;}
|