Version Notes
Release for download
Download this release
Release Info
Developer | Magento Core Team |
Extension | QAZ_Qsticker |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 0.1.0 to 1.0.1
app/code/community/Qaz/Qsticker/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Qaz_Qsticker>
|
5 |
-
<version>0.1
|
6 |
</Qaz_Qsticker>
|
7 |
</modules>
|
8 |
<frontend>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Qaz_Qsticker>
|
5 |
+
<version>1.0.1</version>
|
6 |
</Qaz_Qsticker>
|
7 |
</modules>
|
8 |
<frontend>
|
app/design/frontend/default/default/template/qaz/qsticker/catalog/product/list.phtml
ADDED
@@ -0,0 +1,280 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package base_default
|
24 |
+
* @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php
|
29 |
+
/**
|
30 |
+
* Product list template
|
31 |
+
*
|
32 |
+
* @see Mage_Catalog_Block_Product_List
|
33 |
+
*/
|
34 |
+
|
35 |
+
?>
|
36 |
+
<?php
|
37 |
+
$_productCollection=$this->getLoadedProductCollection();
|
38 |
+
$_helper = $this->helper('catalog/output');
|
39 |
+
?>
|
40 |
+
<?php if(!$_productCollection->count()): ?>
|
41 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
42 |
+
<?php else: ?>
|
43 |
+
<div class="category-products">
|
44 |
+
<?php echo $this->getToolbarHtml() ?>
|
45 |
+
<?php // List mode ?>
|
46 |
+
<?php if($this->getMode()!='grid'): ?>
|
47 |
+
<?php $_iterator = 0; ?>
|
48 |
+
<ol class="products-list" id="products-list">
|
49 |
+
<?php foreach ($_productCollection as $_product): ?>
|
50 |
+
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
|
51 |
+
<?php // Product Image ?>
|
52 |
+
<?php
|
53 |
+
|
54 |
+
$configs = Mage::getModel('qsticker/sticker_qstickerconfigs')->sticker();
|
55 |
+
$date = date("Y-m-d H:i:s");
|
56 |
+
$todate = $_product['news_to_date'];
|
57 |
+
$fromdate=$_product['news_from_date'];
|
58 |
+
$special=$_product['special_price'];
|
59 |
+
$price=$_product['price'];
|
60 |
+
$stodate=$_product['special_to_date'];
|
61 |
+
$sfromdate=$_product['special_from_date'];
|
62 |
+
if($configs['general_prolist'])
|
63 |
+
{
|
64 |
+
if ($configs['salesticker_enable']) {
|
65 |
+
|
66 |
+
if (!$special == null) {
|
67 |
+
|
68 |
+
if (isset($sfromdate) and $date >= $sfromdate) {
|
69 |
+
{
|
70 |
+
if(isset ($stodate)){
|
71 |
+
if($date <= $stodate ){
|
72 |
+
?>
|
73 |
+
<div class="<?php echo "l-".$configs['salesticker_sale_sticker_style']; ?>">
|
74 |
+
<span class="l-off">
|
75 |
+
<?php
|
76 |
+
echo round(100 - ($special / $price) * 100) . "%";
|
77 |
+
?>
|
78 |
+
</span>
|
79 |
+
|
80 |
+
</div>
|
81 |
+
<?php
|
82 |
+
|
83 |
+
}
|
84 |
+
|
85 |
+
}else{
|
86 |
+
?>
|
87 |
+
<div class="<?php echo "l-".$configs['salesticker_sale_sticker_style']; ?>">
|
88 |
+
<span class="l-off">
|
89 |
+
<?php
|
90 |
+
echo round(100 - ($special / $price) * 100) . "%";
|
91 |
+
?>
|
92 |
+
</span>
|
93 |
+
|
94 |
+
</div>
|
95 |
+
<?php
|
96 |
+
}
|
97 |
+
|
98 |
+
}
|
99 |
+
|
100 |
+
}
|
101 |
+
}
|
102 |
+
}
|
103 |
+
?>
|
104 |
+
<?php
|
105 |
+
if ($configs['newsticker_enable']) {
|
106 |
+
|
107 |
+
if(isset($fromdate) and $date >= $fromdate){
|
108 |
+
|
109 |
+
if(isset ($todate)){
|
110 |
+
if($date <= $todate){
|
111 |
+
?>
|
112 |
+
<div class="<?php echo "l-".$configs['newsticker_new_sticker_style']; ?>"></div>
|
113 |
+
<?php
|
114 |
+
}
|
115 |
+
}else{
|
116 |
+
?>
|
117 |
+
|
118 |
+
<div class="<?php echo "l-".$configs['newsticker_new_sticker_style']; ?>"></div>
|
119 |
+
<?php
|
120 |
+
}
|
121 |
+
|
122 |
+
}
|
123 |
+
}
|
124 |
+
}
|
125 |
+
?>
|
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 |
+
<?php // Product description ?>
|
128 |
+
<div class="product-shop">
|
129 |
+
<div class="f-fix">
|
130 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
131 |
+
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
|
132 |
+
<?php if($_product->getRatingSummary()): ?>
|
133 |
+
<?php echo $this->getReviewsSummaryHtml($_product) ?>
|
134 |
+
<?php endif; ?>
|
135 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
136 |
+
<?php if($_product->isSaleable()): ?>
|
137 |
+
<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>
|
138 |
+
<?php else: ?>
|
139 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
140 |
+
<?php endif; ?>
|
141 |
+
<div class="desc std">
|
142 |
+
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
|
143 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
|
144 |
+
</div>
|
145 |
+
<ul class="add-to-links">
|
146 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
147 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
148 |
+
<?php endif; ?>
|
149 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
150 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
151 |
+
<?php endif; ?>
|
152 |
+
</ul>
|
153 |
+
</div>
|
154 |
+
</div>
|
155 |
+
</li>
|
156 |
+
<?php endforeach; ?>
|
157 |
+
</ol>
|
158 |
+
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
|
159 |
+
|
160 |
+
<?php else: ?>
|
161 |
+
|
162 |
+
<?php // Grid Mode ; ?>
|
163 |
+
|
164 |
+
<?php $_collectionSize = $_productCollection->count() ?>
|
165 |
+
<?php $_columnCount = $this->getColumnCount(); ?>
|
166 |
+
<?php $i=0; foreach ($_productCollection as $_product): ?>
|
167 |
+
<?php if ($i++%$_columnCount==0): ?>
|
168 |
+
<ul class="products-grid">
|
169 |
+
<?php endif ?>
|
170 |
+
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
|
171 |
+
<?php
|
172 |
+
|
173 |
+
$configs = Mage::getModel('qsticker/sticker_qstickerconfigs')->sticker();
|
174 |
+
$date = date("Y-m-d H:i:s");
|
175 |
+
$todate = $_product['news_to_date'];
|
176 |
+
$fromdate=$_product['news_from_date'];
|
177 |
+
$special=$_product['special_price'];
|
178 |
+
$price=$_product['price'];
|
179 |
+
$stodate=$_product['special_to_date'];
|
180 |
+
$sfromdate=$_product['special_from_date'];
|
181 |
+
if($configs['general_prolist'])
|
182 |
+
{
|
183 |
+
if ($configs['salesticker_enable']) {
|
184 |
+
|
185 |
+
if (!$special == null) {
|
186 |
+
|
187 |
+
if (isset($sfromdate) and $date >= $sfromdate) {
|
188 |
+
{
|
189 |
+
if(isset ($stodate)){
|
190 |
+
if($date <= $stodate ){
|
191 |
+
?>
|
192 |
+
<div class="<?php echo "l-".$configs['salesticker_sale_sticker_style']; ?>">
|
193 |
+
<span class="l-off">
|
194 |
+
<?php
|
195 |
+
echo round(100 - ($special / $price) * 100) . "%";
|
196 |
+
?>
|
197 |
+
</span>
|
198 |
+
|
199 |
+
</div>
|
200 |
+
<?php
|
201 |
+
|
202 |
+
}
|
203 |
+
|
204 |
+
}else{
|
205 |
+
?>
|
206 |
+
<div class="<?php echo "l-".$configs['salesticker_sale_sticker_style']; ?>">
|
207 |
+
<span class="l-off">
|
208 |
+
<?php
|
209 |
+
echo round(100 - ($special / $price) * 100) . "%";
|
210 |
+
?>
|
211 |
+
</span>
|
212 |
+
|
213 |
+
</div>
|
214 |
+
<?php
|
215 |
+
}
|
216 |
+
|
217 |
+
}
|
218 |
+
|
219 |
+
}
|
220 |
+
}
|
221 |
+
}
|
222 |
+
?>
|
223 |
+
<?php
|
224 |
+
if ($configs['newsticker_enable']) {
|
225 |
+
|
226 |
+
if(isset($fromdate) and $date >= $fromdate){
|
227 |
+
|
228 |
+
if(isset ($todate)){
|
229 |
+
if($date <= $todate){
|
230 |
+
?>
|
231 |
+
<div class="<?php echo "l-".$configs['newsticker_new_sticker_style']; ?>"></div>
|
232 |
+
<?php
|
233 |
+
}
|
234 |
+
}else{
|
235 |
+
?>
|
236 |
+
|
237 |
+
<div class="<?php echo "l-".$configs['newsticker_new_sticker_style']; ?>"></div>
|
238 |
+
<?php
|
239 |
+
}
|
240 |
+
|
241 |
+
}
|
242 |
+
}
|
243 |
+
}
|
244 |
+
?>
|
245 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
246 |
+
|
247 |
+
<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>
|
248 |
+
<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>
|
249 |
+
<?php if($_product->getRatingSummary()): ?>
|
250 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
251 |
+
<?php endif; ?>
|
252 |
+
<?php echo $this->getPriceHtml($_product, true);echo $special;?>
|
253 |
+
<div class="actions">
|
254 |
+
<?php if($_product->isSaleable()): ?>
|
255 |
+
<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>
|
256 |
+
<?php else: ?>
|
257 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
258 |
+
<?php endif; ?>
|
259 |
+
<ul class="add-to-links">
|
260 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
261 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
262 |
+
<?php endif; ?>
|
263 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
264 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
265 |
+
<?php endif; ?>
|
266 |
+
</ul>
|
267 |
+
</div>
|
268 |
+
</li>
|
269 |
+
<?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
|
270 |
+
</ul>
|
271 |
+
<?php endif ?>
|
272 |
+
<?php endforeach ?>
|
273 |
+
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
|
274 |
+
<?php endif; ?>
|
275 |
+
|
276 |
+
<div class="toolbar-bottom">
|
277 |
+
<?php echo $this->getToolbarHtml() ?>
|
278 |
+
</div>
|
279 |
+
</div>
|
280 |
+
<?php endif; ?>
|
app/design/frontend/default/default/template/qaz/qsticker/catalog/product/view/media.phtml
ADDED
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 base_default
|
23 |
+
* @copyright Copyright (c) 2011 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 |
+
* Product media data template
|
28 |
+
*
|
29 |
+
* @see Mage_Catalog_Block_Product_View_Media
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<?php
|
33 |
+
$_product = $this->getProduct();
|
34 |
+
$_helper = $this->helper('catalog/output');
|
35 |
+
$configs = Mage::getModel('qsticker/sticker_qstickerconfigs')->sticker();
|
36 |
+
$date = date("Y-m-d H:i:s");
|
37 |
+
$todate = $_product['news_to_date'];
|
38 |
+
$fromdate = $_product['news_from_date'];
|
39 |
+
$special = $_product['special_price'];
|
40 |
+
$price = $_product['price'];
|
41 |
+
$stodate = $_product['special_to_date'];
|
42 |
+
$sfromdate = $_product['special_from_date'];
|
43 |
+
//file_put_contents("d:\debug.txt", print_r($_product,1), FILE_APPEND);
|
44 |
+
|
45 |
+
if ($configs['general_prodetails']) {
|
46 |
+
if ($configs['salesticker_enable']) {
|
47 |
+
|
48 |
+
if (!$special == null) {
|
49 |
+
|
50 |
+
if (isset($sfromdate) and $date >= $sfromdate) {
|
51 |
+
{
|
52 |
+
if(isset ($stodate)){
|
53 |
+
if($date <= $stodate ){
|
54 |
+
?>
|
55 |
+
<div class="<?php echo $configs['salesticker_sale_sticker_style']; ?>">
|
56 |
+
<span class="off">
|
57 |
+
<?php
|
58 |
+
echo round(100 - ($special / $price) * 100) . "%";
|
59 |
+
?>
|
60 |
+
</span>
|
61 |
+
<span class="<?php echo $configs['salesticker_sale_text_style']; ?>"><?php echo $configs['salesticker_sale_text']; ?></span>
|
62 |
+
</div>
|
63 |
+
<?php
|
64 |
+
|
65 |
+
}
|
66 |
+
|
67 |
+
}else{
|
68 |
+
?>
|
69 |
+
<div class="<?php echo $configs['salesticker_sale_sticker_style']; ?>">
|
70 |
+
<span class="off">
|
71 |
+
<?php
|
72 |
+
echo round(100 - ($special / $price) * 100) . "%";
|
73 |
+
?>
|
74 |
+
</span>
|
75 |
+
<span class="<?php echo $configs['salesticker_sale_text_style']; ?>"><?php echo $configs['salesticker_sale_text']; ?></span>
|
76 |
+
</div>
|
77 |
+
<?php
|
78 |
+
}
|
79 |
+
|
80 |
+
}
|
81 |
+
|
82 |
+
}
|
83 |
+
}
|
84 |
+
}
|
85 |
+
?>
|
86 |
+
<?php
|
87 |
+
if ($configs['newsticker_enable']) {
|
88 |
+
|
89 |
+
if(isset($fromdate) and $date >= $fromdate){
|
90 |
+
|
91 |
+
if(isset ($todate)){
|
92 |
+
if($date <= $todate){
|
93 |
+
?>
|
94 |
+
<div class="<?php echo $configs['newsticker_new_sticker_style']; ?>"></div>
|
95 |
+
<?php
|
96 |
+
}
|
97 |
+
}else{
|
98 |
+
?>
|
99 |
+
|
100 |
+
<div class="<?php echo $configs['newsticker_new_sticker_style']; ?>"></div>
|
101 |
+
<?php
|
102 |
+
}
|
103 |
+
|
104 |
+
}
|
105 |
+
}
|
106 |
+
}
|
107 |
+
?>
|
108 |
+
|
109 |
+
<?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?>
|
110 |
+
<p class="product-image product-image-zoom">
|
111 |
+
<?php
|
112 |
+
$_img = '<img id="image" src="' . $this->helper('catalog/image')->init($_product, 'image') . '" alt="' . $this->htmlEscape($this->getImageLabel()) . '" title="' . $this->htmlEscape($this->getImageLabel()) . '" />';
|
113 |
+
echo $_helper->productAttribute($_product, $_img, 'image');
|
114 |
+
?>
|
115 |
+
</p>
|
116 |
+
<p class="zoom-notice" id="track_hint"><?php echo $this->__('Double click on above image to view full picture') ?></p>
|
117 |
+
<div class="zoom">
|
118 |
+
<img id="zoom_out" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_out.gif') ?>" alt="<?php echo $this->__('Zoom Out') ?>" title="<?php echo $this->__('Zoom Out') ?>" class="btn-zoom-out" />
|
119 |
+
<div id="track">
|
120 |
+
<div id="handle"></div>
|
121 |
+
</div>
|
122 |
+
<img id="zoom_in" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_in.gif') ?>" alt="<?php echo $this->__('Zoom In') ?>" title="<?php echo $this->__('Zoom In') ?>" class="btn-zoom-in" />
|
123 |
+
</div>
|
124 |
+
<script type="text/javascript">
|
125 |
+
//<![CDATA[
|
126 |
+
Event.observe(window, 'load', function() {
|
127 |
+
product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint');
|
128 |
+
});
|
129 |
+
//]]>
|
130 |
+
</script>
|
131 |
+
<?php else: ?>
|
132 |
+
<p class="product-image">
|
133 |
+
<?php
|
134 |
+
$_img = '<img src="' . $this->helper('catalog/image')->init($_product, 'image')->resize(265) . '" alt="' . $this->htmlEscape($this->getImageLabel()) . '" title="' . $this->htmlEscape($this->getImageLabel()) . '" />';
|
135 |
+
echo $_helper->productAttribute($_product, $_img, 'image');
|
136 |
+
?>
|
137 |
+
</p>
|
138 |
+
<?php endif; ?>
|
139 |
+
<?php if (count($this->getGalleryImages()) > 0): ?>
|
140 |
+
<div class="more-views">
|
141 |
+
<h2><?php echo $this->__('More Views') ?></h2>
|
142 |
+
<ul>
|
143 |
+
<?php foreach ($this->getGalleryImages() as $_image): ?>
|
144 |
+
<li>
|
145 |
+
<a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300,height=300,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
|
146 |
+
</li>
|
147 |
+
<?php endforeach; ?>
|
148 |
+
</ul>
|
149 |
+
</div>
|
150 |
+
<?php endif; ?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>QAZ_Qsticker</name>
|
4 |
-
<version>0.1
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -34,10 +34,10 @@ are displayed </p>
|
|
34 |

|
35 |
<p>If you have any question or want support , Please contact with me : <a href="mailto:kevin.qazware@gmail.com">Kevin Black</a></p></description>
|
36 |
<notes>Release for download</notes>
|
37 |
-
<authors><author><name>Kevin Black</name><user>auto-converted</user><email>kevin
|
38 |
-
<date>2012-
|
39 |
-
<time>09:
|
40 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Qaz_All.xml" hash="abff101149db6be3dd3340323e9fad85"/><file name="Qaz_Qsticker.xml" hash="c5fac05d3764f1ecf78a142efbc07327"/></dir></target><target name="magecommunity"><dir name="Qaz"><dir name="All"><dir name="Helper"><file name="Data.php" hash="a531698b0373f15ed017a921e0bfbe4b"/></dir><dir name="etc"><file name="config.xml" hash="6c6f6676c558ccb25c43a2c016f2d09d"/><file name="system.xml" hash="29a1180abd3b6a53b024f2bde75207bc"/></dir></dir><dir name="Qsticker"><dir name="Helper"><file name="Data.php" hash="d1181fa3a998c97b8093c15a0775ca1e"/></dir><dir name="Model"><dir name="Sticker"><file name="Newstyle.php" hash="46ecccb0548ec1f9b9d3df0ef021667c"/><file name="Qstickerconfigs.php" hash="749e5c4e134006fc234a73ca5722aa78"/><file name="Salestyle.php" hash="b9599475df8446612772361af958a6ab"/><file name="Saletextstyle.php" hash="483621ea8b9e54bb9ddd9e80297459db"/></dir></dir><dir name="etc"><file name="config.xml" hash="
|
41 |
<compatible/>
|
42 |
<dependencies/>
|
43 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>QAZ_Qsticker</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
34 |

|
35 |
<p>If you have any question or want support , Please contact with me : <a href="mailto:kevin.qazware@gmail.com">Kevin Black</a></p></description>
|
36 |
<notes>Release for download</notes>
|
37 |
+
<authors><author><name>Kevin Black</name><user>auto-converted</user><email>kevin@qazware.com</email></author></authors>
|
38 |
+
<date>2012-03-28</date>
|
39 |
+
<time>09:00:14</time>
|
40 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Qaz_All.xml" hash="abff101149db6be3dd3340323e9fad85"/><file name="Qaz_Qsticker.xml" hash="c5fac05d3764f1ecf78a142efbc07327"/></dir></target><target name="magecommunity"><dir name="Qaz"><dir name="All"><dir name="Helper"><file name="Data.php" hash="a531698b0373f15ed017a921e0bfbe4b"/></dir><dir name="etc"><file name="config.xml" hash="6c6f6676c558ccb25c43a2c016f2d09d"/><file name="system.xml" hash="29a1180abd3b6a53b024f2bde75207bc"/></dir></dir><dir name="Qsticker"><dir name="Helper"><file name="Data.php" hash="d1181fa3a998c97b8093c15a0775ca1e"/></dir><dir name="Model"><dir name="Sticker"><file name="Newstyle.php" hash="46ecccb0548ec1f9b9d3df0ef021667c"/><file name="Qstickerconfigs.php" hash="749e5c4e134006fc234a73ca5722aa78"/><file name="Salestyle.php" hash="b9599475df8446612772361af958a6ab"/><file name="Saletextstyle.php" hash="483621ea8b9e54bb9ddd9e80297459db"/></dir></dir><dir name="etc"><file name="config.xml" hash="12684a6a756a23e2fb67d9fb491d3795"/><file name="system.xml" hash="daf3884f78e5af758afebc41345288df"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="qaz"><dir name="qsticker"><dir name="css"><file name="global.css" hash="31de539789bef3daf65b41ad48f3abca"/></dir><dir name="images"><file name="StickerA.png" hash="4b2785db4c7bcc6ef6d4a1b706859690"/><file name="StickerB.png" hash="93819bda8d8a9947e1794fc228a1f340"/><file name="list_StickerA.png" hash="9386e74f44a99a2c1dec5737b8a240ed"/><file name="list_StickerB.png" hash="3f654256244d7f3f28535fe0eb0c9bac"/><file name="list_new-blue.png" hash="e647953a11abe4388383272d304d9da6"/><file name="list_new-white.png" hash="ed6fbeefe9369e9b61a5b1c7636a2bb0"/><file name="list_new-yellow.png" hash="68a412726c86b684d562964f4077e159"/><file name="list_sale-black.png" hash="1caa82a85559296396177fb4d9c26877"/><file name="list_sale-blue.png" hash="4ab948591d76077d8708f2b7899a8c9b"/><file name="list_sale-lime.png" hash="f44658b728949bb8d0afad2f5078efd3"/><file name="list_sale-white.png" hash="66939af52c4a04820537aef261f80e1c"/><file name="new-blue.png" hash="11386c5354416e241db6e736d543a66a"/><file name="new-white.png" hash="39b5f47bc3a6af7ec9dca4d5c0c5acfd"/><file name="new-yellow.png" hash="81121ed3d78432abdce7d28bfa61e556"/><file name="sale-black.png" hash="a88f1b6aed9324241b41ddde63c9f3ee"/><file name="sale-blue.png" hash="6793d0420dc84eaf25630eb8e8b0c7cc"/><file name="sale-lime.png" hash="13ee830d208dcff34cdb45b10365479b"/><file name="sale-white.png" hash="b48d531afffb817e6ee379c7e4bf7d20"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="qsticker.xml" hash="50094373d64770f9a3358d295e066bc2"/></dir><dir name="template"><dir name="qaz"><dir name="qsticker"><dir name="catalog"><dir name="product"><dir name="view"><file name="media.phtml" hash="15ac26a5cb1b077178abeebaa5b9a71f"/></dir><file name="list.phtml" hash="cf137f284ef66fc650d93dc2094326e4"/></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
41 |
<compatible/>
|
42 |
<dependencies/>
|
43 |
</package>
|