Version Notes
Products Sold Counter is an awesome way to make your customer engage with your store.
Download this release
Release Info
| Developer | Synotive Technologies |
| Extension | Products_Sold_Counter_By_Synotive |
| Version | 1.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.0 to 1.1.1
app/code/community/SPL/CounterSales/etc/config.xml
CHANGED
|
@@ -19,7 +19,7 @@
|
|
| 19 |
<config>
|
| 20 |
<modules>
|
| 21 |
<SPL_CounterSales>
|
| 22 |
-
<version>1.1.
|
| 23 |
</SPL_CounterSales>
|
| 24 |
</modules>
|
| 25 |
<global>
|
| 19 |
<config>
|
| 20 |
<modules>
|
| 21 |
<SPL_CounterSales>
|
| 22 |
+
<version>1.1.1</version>
|
| 23 |
</SPL_CounterSales>
|
| 24 |
</modules>
|
| 25 |
<global>
|
app/design/frontend/base/default/template/countersales/list.phtml
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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) 2013 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 |
+
?>
|
| 34 |
+
<?php
|
| 35 |
+
$version= Mage::getVersion();
|
| 36 |
+
$ver= sprintf("%.1f", $version);
|
| 37 |
+
if($ver < 1.9){
|
| 38 |
+
?>
|
| 39 |
+
<?php
|
| 40 |
+
$_productCollection=$this->getLoadedProductCollection();
|
| 41 |
+
$_helper = $this->helper('catalog/output');
|
| 42 |
+
?>
|
| 43 |
+
<?php if(!$_productCollection->count()): ?>
|
| 44 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
| 45 |
+
<?php else: ?>
|
| 46 |
+
<div class="category-products">
|
| 47 |
+
<?php echo $this->getToolbarHtml() ?>
|
| 48 |
+
<?php // List mode ?>
|
| 49 |
+
<?php if($this->getMode()!='grid'): ?>
|
| 50 |
+
<?php $_iterator = 0; ?>
|
| 51 |
+
<ol class="products-list" id="products-list">
|
| 52 |
+
<?php foreach ($_productCollection as $_product): ?>
|
| 53 |
+
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>" style="position:relative;">
|
| 54 |
+
<?php // Product Image ?>
|
| 55 |
+
<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) ?>" />
|
| 56 |
+
<?php $salesValue = Mage::getStoreConfig('catalog/spl_countersales/enabledsales');
|
| 57 |
+
if($salesValue && $_product->getSalesCount()){ ?>
|
| 58 |
+
<div style="position: absolute; text-shadow: 0px 0px 1px rgb(204, 204, 204); font-style: italic; line-height: 13px; border-radius: 150px; text-align: center; border: 2px solid rgb(255, 255, 255); background: linear-gradient(to bottom, rgb(254, 254, 254) 2%, rgb(219, 219, 219) 50%, rgb(226, 226, 226) 99%) repeat scroll 0% 0% transparent; box-shadow: 0px 0px 6px rgb(204, 204, 204); color: rgb(51, 51, 51); height: 40px; width: 55px; font-size: 12px; padding: 13px 0px 0px; left: 0px; bottom: 25px;">
|
| 59 |
+
<?php echo sprintf ("%.0f", $_product->getSalesCount()); ?><BR> <span style="font-size:11px; ">SOLD</span></div>
|
| 60 |
+
<?php } ?>
|
| 61 |
+
</a>
|
| 62 |
+
<?php // Product description ?>
|
| 63 |
+
<div class="product-shop">
|
| 64 |
+
<div class="f-fix">
|
| 65 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
| 66 |
+
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
|
| 67 |
+
<?php if($_product->getRatingSummary()): ?>
|
| 68 |
+
<?php echo $this->getReviewsSummaryHtml($_product) ?>
|
| 69 |
+
<?php endif; ?>
|
| 70 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
| 71 |
+
<?php if($_product->isSaleable()): ?>
|
| 72 |
+
<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>
|
| 73 |
+
<?php else: ?>
|
| 74 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
| 75 |
+
<?php endif; ?>
|
| 76 |
+
<div class="desc std">
|
| 77 |
+
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
|
| 78 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
|
| 79 |
+
</div>
|
| 80 |
+
<ul class="add-to-links">
|
| 81 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
| 82 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
| 83 |
+
<?php endif; ?>
|
| 84 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
| 85 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
| 86 |
+
<?php endif; ?>
|
| 87 |
+
</ul>
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
</li>
|
| 91 |
+
<?php endforeach; ?>
|
| 92 |
+
</ol>
|
| 93 |
+
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
|
| 94 |
+
|
| 95 |
+
<?php else: ?>
|
| 96 |
+
|
| 97 |
+
<?php // Grid Mode ?>
|
| 98 |
+
|
| 99 |
+
<?php $_collectionSize = $_productCollection->count() ?>
|
| 100 |
+
<?php $_columnCount = $this->getColumnCount(); ?>
|
| 101 |
+
<?php $i=0; foreach ($_productCollection as $_product): ?>
|
| 102 |
+
<?php if ($i++%$_columnCount==0): ?>
|
| 103 |
+
<ul class="products-grid">
|
| 104 |
+
<?php endif ?>
|
| 105 |
+
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>" style="position:relative;">
|
| 106 |
+
<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) ?>" />
|
| 107 |
+
|
| 108 |
+
<?php $salesValue = Mage::getStoreConfig('catalog/spl_countersales/enabledsales');
|
| 109 |
+
if($salesValue && $_product->getSalesCount()){ ?>
|
| 110 |
+
<div style="position: absolute; text-shadow: 0px 0px 1px rgb(204, 204, 204); font-style: italic; line-height: 13px; border-radius: 150px; text-align: center; border: 2px solid rgb(255, 255, 255); bottom: 152px; background: linear-gradient(to bottom, rgb(254, 254, 254) 2%, rgb(219, 219, 219) 50%, rgb(226, 226, 226) 99%) repeat scroll 0% 0% transparent; box-shadow: 0px 0px 6px rgb(204, 204, 204); color: rgb(51, 51, 51); height: 40px; width: 55px; font-size: 12px; padding: 13px 0px 0px; left: 10px;">
|
| 111 |
+
<?php echo sprintf ("%.0f", $_product->getSalesCount()); ?><BR> <span style="font-size:11px; ">SOLD</span></div>
|
| 112 |
+
<?php } ?>
|
| 113 |
+
</a>
|
| 114 |
+
<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>
|
| 115 |
+
<?php if($_product->getRatingSummary()): ?>
|
| 116 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
| 117 |
+
<?php endif; ?>
|
| 118 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
| 119 |
+
<div class="actions">
|
| 120 |
+
<?php if($_product->isSaleable()): ?>
|
| 121 |
+
<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>
|
| 122 |
+
<?php else: ?>
|
| 123 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
| 124 |
+
<?php endif; ?>
|
| 125 |
+
<ul class="add-to-links">
|
| 126 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
| 127 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
| 128 |
+
<?php endif; ?>
|
| 129 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
| 130 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
| 131 |
+
<?php endif; ?>
|
| 132 |
+
</ul>
|
| 133 |
+
</div>
|
| 134 |
+
</li>
|
| 135 |
+
<?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
|
| 136 |
+
</ul>
|
| 137 |
+
<?php endif ?>
|
| 138 |
+
<?php endforeach ?>
|
| 139 |
+
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
|
| 140 |
+
<?php endif; ?>
|
| 141 |
+
|
| 142 |
+
<div class="toolbar-bottom">
|
| 143 |
+
<?php echo $this->getToolbarHtml() ?>
|
| 144 |
+
</div>
|
| 145 |
+
</div>
|
| 146 |
+
<?php endif; ?>
|
| 147 |
+
<?php }else{ ?>
|
| 148 |
+
<?php
|
| 149 |
+
$_productCollection=$this->getLoadedProductCollection();
|
| 150 |
+
$_helper = $this->helper('catalog/output');
|
| 151 |
+
?>
|
| 152 |
+
<?php if(!$_productCollection->count()): ?>
|
| 153 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
| 154 |
+
<?php else: ?>
|
| 155 |
+
<div class="category-products">
|
| 156 |
+
<?php echo $this->getToolbarHtml() ?>
|
| 157 |
+
<?php // List mode ?>
|
| 158 |
+
<?php if($this->getMode()!='grid'): ?>
|
| 159 |
+
<?php $_iterator = 0; ?>
|
| 160 |
+
<ol class="products-list" id="products-list">
|
| 161 |
+
<?php foreach ($_productCollection as $_product): ?>
|
| 162 |
+
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>" style="position:relative;">
|
| 163 |
+
<?php // Product Image ?>
|
| 164 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
| 165 |
+
<?php /* Based on the native RWD styling, product images are displayed at a max of ~400px wide when viewed on a
|
| 166 |
+
one column page layout with four product columns from a 1280px viewport. For bandwidth reasons,
|
| 167 |
+
we are going to serve a 300px image, as it will look fine at 400px and most of the times, the image
|
| 168 |
+
will be displayed at a smaller size (eg, if two column are being used or viewport is smaller than 1280px).
|
| 169 |
+
This $_imgSize value could even be decreased further, based on the page layout
|
| 170 |
+
(one column, two column, three column) and number of product columns. */ ?>
|
| 171 |
+
<?php $_imgSize = 300; ?>
|
| 172 |
+
<img id="product-collection-image-<?php echo $_product->getId(); ?>"
|
| 173 |
+
src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->keepFrame(false)->resize($_imgSize); ?>"
|
| 174 |
+
alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
| 175 |
+
<?php $salesValue = Mage::getStoreConfig('catalog/spl_countersales/enabledsales');
|
| 176 |
+
if($salesValue && $_product->getSalesCount()){ ?>
|
| 177 |
+
|
| 178 |
+
<div style="position: absolute; width: 40%; text-align: center; vertical-align: middle; bottom: 0px; height: 50%; left: -10px;">
|
| 179 |
+
<div style="position: absolute; text-shadow: 0px 0px 1px rgb(204, 204, 204); font-style: italic; line-height: 13px; border-radius: 150px; text-align: center; border: 2px solid rgb(255, 255, 255); bottom: 0px; background: linear-gradient(to bottom, rgb(254, 254, 254) 2%, rgb(219, 219, 219) 50%, rgb(226, 226, 226) 99%) repeat scroll 0% 0% transparent; box-shadow: 0px 0px 6px rgb(204, 204, 204); color: rgb(51, 51, 51); height: 60px; width: 60px; font-size: 12px; padding: 13px 0px 0px; left: 10px;">
|
| 180 |
+
<?php echo sprintf ("%.0f", $_product->getSalesCount()); ?><BR> <span style="font-size:11px; ">SOLD</span></div>
|
| 181 |
+
</div>
|
| 182 |
+
<?php } ?>
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
</a>
|
| 186 |
+
<?php // Product description ?>
|
| 187 |
+
<div class="product-shop">
|
| 188 |
+
<div class="f-fix">
|
| 189 |
+
<div class="product-primary">
|
| 190 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
| 191 |
+
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
|
| 192 |
+
<?php if($_product->getRatingSummary()): ?>
|
| 193 |
+
<?php echo $this->getReviewsSummaryHtml($_product) ?>
|
| 194 |
+
<?php endif; ?>
|
| 195 |
+
|
| 196 |
+
<?php
|
| 197 |
+
$_nameAfter = $this->getChild('name.after');
|
| 198 |
+
// New if here
|
| 199 |
+
if($_nameAfter):
|
| 200 |
+
$_nameAfterChildren = $this->getChild('name.after')->getSortedChildren();
|
| 201 |
+
foreach($_nameAfterChildren as $_nameAfterChildName):
|
| 202 |
+
$_nameAfterChild = $this->getChild('name.after')->getChild($_nameAfterChildName);
|
| 203 |
+
$_nameAfterChild->setProduct($_product);
|
| 204 |
+
?>
|
| 205 |
+
<?php echo $_nameAfterChild->toHtml(); ?>
|
| 206 |
+
<?php endforeach;
|
| 207 |
+
endif; ?>
|
| 208 |
+
</div>
|
| 209 |
+
<div class="product-secondary">
|
| 210 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
| 211 |
+
</div>
|
| 212 |
+
<div class="product-secondary">
|
| 213 |
+
<?php if($_product->isSaleable() && !$_product->canConfigure()): ?>
|
| 214 |
+
<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>
|
| 215 |
+
<?php elseif($_product->isSaleable()): ?>
|
| 216 |
+
<p class="action"><a title="<?php echo $this->__('View Details') ?>" class="button" href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('View Details') ?></a></p>
|
| 217 |
+
<?php else: ?>
|
| 218 |
+
<p class="action availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
| 219 |
+
<?php endif; ?>
|
| 220 |
+
<ul class="add-to-links">
|
| 221 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
| 222 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
| 223 |
+
<?php endif; ?>
|
| 224 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
| 225 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
| 226 |
+
<?php endif; ?>
|
| 227 |
+
</ul>
|
| 228 |
+
</div>
|
| 229 |
+
<div class="desc std">
|
| 230 |
+
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
|
| 231 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
|
| 232 |
+
</div>
|
| 233 |
+
</div>
|
| 234 |
+
</div>
|
| 235 |
+
</li>
|
| 236 |
+
<?php endforeach; ?>
|
| 237 |
+
</ol>
|
| 238 |
+
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
|
| 239 |
+
|
| 240 |
+
<?php else: ?>
|
| 241 |
+
|
| 242 |
+
<?php // Grid Mode ?>
|
| 243 |
+
|
| 244 |
+
<?php $_collectionSize = $_productCollection->count() ?>
|
| 245 |
+
<?php $_columnCount = $this->getColumnCount(); ?>
|
| 246 |
+
<ul class="products-grid products-grid--max-<?php echo $_columnCount; ?>-col">
|
| 247 |
+
<?php $i=0; foreach ($_productCollection as $_product): ?>
|
| 248 |
+
<?php /*if ($i++%$_columnCount==0): ?>
|
| 249 |
+
<?php endif*/ ?>
|
| 250 |
+
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>" style="position:relative;">
|
| 251 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
| 252 |
+
<?php $_imgSize = 210; ?>
|
| 253 |
+
<img id="product-collection-image-<?php echo $_product->getId(); ?>"
|
| 254 |
+
src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($_imgSize); ?>"
|
| 255 |
+
alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
| 256 |
+
<?php $salesValue = Mage::getStoreConfig('catalog/spl_countersales/enabledsales');
|
| 257 |
+
if($salesValue && $_product->getSalesCount()){ ?>
|
| 258 |
+
|
| 259 |
+
<div style="position: absolute; width: 40%; text-align: center; vertical-align: middle; bottom: 0px; height: 50%; left: -10px;">
|
| 260 |
+
<div style="position: absolute; text-shadow: 0px 0px 1px rgb(204, 204, 204); font-style: italic; line-height: 13px; border-radius: 150px; text-align: center; border: 2px solid rgb(255, 255, 255); bottom: 0px; background: linear-gradient(to bottom, rgb(254, 254, 254) 2%, rgb(219, 219, 219) 50%, rgb(226, 226, 226) 99%) repeat scroll 0% 0% transparent; box-shadow: 0px 0px 6px rgb(204, 204, 204); color: rgb(51, 51, 51); height: 60px; width: 60px; font-size: 12px; padding: 13px 0px 0px; left: 10px;">
|
| 261 |
+
<?php echo sprintf ("%.0f", $_product->getSalesCount()); ?><BR> <span style="font-size:11px; ">SOLD</span></div>
|
| 262 |
+
</div>
|
| 263 |
+
<?php } ?>
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
</a>
|
| 267 |
+
<div class="product-info">
|
| 268 |
+
<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>
|
| 269 |
+
|
| 270 |
+
<?php
|
| 271 |
+
$_nameAfter = $this->getChild('name.after');
|
| 272 |
+
// New if here
|
| 273 |
+
if($_nameAfter):
|
| 274 |
+
$_nameAfterChildren = $_nameAfter->getSortedChildren();
|
| 275 |
+
foreach($_nameAfterChildren as $_nameAfterChildName):
|
| 276 |
+
$_nameAfterChild = $this->getChild('name.after')->getChild($_nameAfterChildName);
|
| 277 |
+
$_nameAfterChild->setProduct($_product);
|
| 278 |
+
?>
|
| 279 |
+
<?php echo $_nameAfterChild->toHtml(); ?>
|
| 280 |
+
<?php endforeach; ?>
|
| 281 |
+
<?php endif; ?>
|
| 282 |
+
|
| 283 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
| 284 |
+
<?php if($_product->getRatingSummary()): ?>
|
| 285 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
| 286 |
+
<?php endif; ?>
|
| 287 |
+
<div class="actions">
|
| 288 |
+
<?php if($_product->isSaleable() && !$_product->canConfigure()): ?>
|
| 289 |
+
<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>
|
| 290 |
+
<?php elseif($_product->isSaleable()): ?>
|
| 291 |
+
<a title="<?php echo $this->__('View Details') ?>" class="button" href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('View Details') ?></a>
|
| 292 |
+
<?php else: ?>
|
| 293 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
| 294 |
+
<?php endif; ?>
|
| 295 |
+
<ul class="add-to-links">
|
| 296 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
| 297 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?>
|
| 298 |
+
</a></li>
|
| 299 |
+
<?php endif; ?>
|
| 300 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
| 301 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
| 302 |
+
<?php endif; ?>
|
| 303 |
+
</ul>
|
| 304 |
+
</div>
|
| 305 |
+
</div>
|
| 306 |
+
</li>
|
| 307 |
+
<?php /*if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
|
| 308 |
+
<?php endif*/ ?>
|
| 309 |
+
<?php endforeach ?>
|
| 310 |
+
</ul>
|
| 311 |
+
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
|
| 312 |
+
|
| 313 |
+
<?php endif; ?>
|
| 314 |
+
|
| 315 |
+
<div class="toolbar-bottom">
|
| 316 |
+
<?php echo $this->getToolbarHtml() ?>
|
| 317 |
+
</div>
|
| 318 |
+
</div>
|
| 319 |
+
|
| 320 |
+
<?php endif; ?>
|
| 321 |
+
|
| 322 |
+
<?php
|
| 323 |
+
//set product collection on after blocks
|
| 324 |
+
$_afterChildren = $this->getChild('after');
|
| 325 |
+
if ($_afterChildren):
|
| 326 |
+
$_afterChildren = $this->getChild('after')->getSortedChildren();
|
| 327 |
+
foreach($_afterChildren as $_afterChildName):
|
| 328 |
+
$_afterChild = $this->getChild('after')->getChild($_afterChildName);
|
| 329 |
+
$_afterChild->setProductCollection($_productCollection);
|
| 330 |
+
?>
|
| 331 |
+
<?php echo $_afterChild->toHtml(); ?>
|
| 332 |
+
<?php endforeach; ?>
|
| 333 |
+
<?php endif; ?>
|
| 334 |
+
<!--<script>
|
| 335 |
+
function sendLoadMoreProductsRequest(url) {
|
| 336 |
+
new Ajax.Request(url, {
|
| 337 |
+
onSuccess: function(response) {
|
| 338 |
+
//Create dummy element
|
| 339 |
+
var div = document.createElement('div');
|
| 340 |
+
div.innerHTML = response.responseText;
|
| 341 |
+
//refresh the page class element
|
| 342 |
+
$$('.pages')[0].innerHTML = $(div).select('.pages')[0].innerHTML;
|
| 343 |
+
//append the list to the existing product list
|
| 344 |
+
$$('.products-grid')[0].innerHTML += $(div).select('.products-grid')[0].innerHTML;
|
| 345 |
+
//check if there are more products to be loaded or not
|
| 346 |
+
if(!$(div).select('.next.i-next')[0]){
|
| 347 |
+
$('load-more-products').style.display = "none";
|
| 348 |
+
}
|
| 349 |
+
}
|
| 350 |
+
});
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
+
function callbackFunc(e) {
|
| 354 |
+
if($$('.next.i-next')[0]){
|
| 355 |
+
var nextPageUrl = $$('.next.i-next')[0].readAttribute('href');
|
| 356 |
+
sendLoadMoreProductsRequest(nextPageUrl);
|
| 357 |
+
}
|
| 358 |
+
else{
|
| 359 |
+
//hide button
|
| 360 |
+
$$(e.currentTarget).hide();
|
| 361 |
+
}
|
| 362 |
+
}
|
| 363 |
+
|
| 364 |
+
//Assigning click event to the button which triggers the "next" link
|
| 365 |
+
$('load-more-products').observe('click', callbackFunc);
|
| 366 |
+
//<![CDATA[
|
| 367 |
+
//check if there are more products to be loaded or not
|
| 368 |
+
if(!$$('.next.i-next')[0]){
|
| 369 |
+
$('load-more-products').style.display = "none";
|
| 370 |
+
}
|
| 371 |
+
function testScroll(ev){
|
| 372 |
+
if($$('.scroll-to-top')[0]){
|
| 373 |
+
console.log(window.pageYOffset);
|
| 374 |
+
if(window.pageYOffset>400){
|
| 375 |
+
$$('.scroll-to-top')[0].style.display = "block";
|
| 376 |
+
}
|
| 377 |
+
else{
|
| 378 |
+
$$('.scroll-to-top')[0].style.display = "none";
|
| 379 |
+
}
|
| 380 |
+
}
|
| 381 |
+
}
|
| 382 |
+
window.onscroll = testScroll;
|
| 383 |
+
//]]>
|
| 384 |
+
</script>-->
|
| 385 |
+
<?php } ?>
|
app/design/frontend/base/default/template/countersales/media.phtml
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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) 2013 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 |
+
/**
|
| 28 |
+
* Product media data template
|
| 29 |
+
*
|
| 30 |
+
* @see Mage_Catalog_Block_Product_View_Media
|
| 31 |
+
*/
|
| 32 |
+
?>
|
| 33 |
+
<?php
|
| 34 |
+
$version= Mage::getVersion();
|
| 35 |
+
$ver= sprintf("%.1f", $version);
|
| 36 |
+
if($ver < 1.9){
|
| 37 |
+
?>
|
| 38 |
+
<?php
|
| 39 |
+
$_product = $this->getProduct();
|
| 40 |
+
$_helper = $this->helper('catalog/output');
|
| 41 |
+
?>
|
| 42 |
+
<?php $salesValue = Mage::getStoreConfig('catalog/spl_countersales/enabledsales');
|
| 43 |
+
if($salesValue && $_product->getSalesCount()){ ?>
|
| 44 |
+
<div style="position: relative;">
|
| 45 |
+
<div style="position: absolute; text-shadow: 0px 0px 1px rgb(204, 204, 204); font-style: italic; line-height: 13px; border-radius: 150px; text-align: center; border: 2px solid rgb(255, 255, 255); background: linear-gradient(to bottom, rgb(254, 254, 254) 2%, rgb(219, 219, 219) 50%, rgb(226, 226, 226) 99%) repeat scroll 0% 0% transparent; box-shadow: 0px 0px 6px rgb(204, 204, 204); color: rgb(51, 51, 51); height: 40px; width: 55px; font-size: 12px; padding: 13px 0px 0px; left: 0px; top: 0px;z-index:10;">
|
| 46 |
+
<?php echo sprintf ("%.0f", $_product->getSalesCount()); ?><BR> <span style="font-size:11px; ">SOLD</span></div>
|
| 47 |
+
</div>
|
| 48 |
+
<?php } ?>
|
| 49 |
+
<?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?>
|
| 50 |
+
<p class="product-image product-image-zoom">
|
| 51 |
+
<?php
|
| 52 |
+
$_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->escapeHtml($this->getImageLabel()).'" title="'.$this->escapeHtml($this->getImageLabel()).'" />';
|
| 53 |
+
echo $_helper->productAttribute($_product, $_img, 'image');
|
| 54 |
+
?>
|
| 55 |
+
|
| 56 |
+
</p>
|
| 57 |
+
<p class="zoom-notice" id="track_hint"><?php echo $this->__('Double click on above image to view full picture') ?></p>
|
| 58 |
+
<div class="zoom">
|
| 59 |
+
<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" />
|
| 60 |
+
<div id="track">
|
| 61 |
+
<div id="handle"></div>
|
| 62 |
+
</div>
|
| 63 |
+
<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" />
|
| 64 |
+
</div>
|
| 65 |
+
<script type="text/javascript">
|
| 66 |
+
//<![CDATA[
|
| 67 |
+
Event.observe(window, 'load', function() {
|
| 68 |
+
product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint');
|
| 69 |
+
});
|
| 70 |
+
//]]>
|
| 71 |
+
</script>
|
| 72 |
+
<?php else: ?>
|
| 73 |
+
<p class="product-image">
|
| 74 |
+
<?php
|
| 75 |
+
$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->escapeHtml($this->getImageLabel()).'" title="'.$this->escapeHtml($this->getImageLabel()).'" />';
|
| 76 |
+
echo $_helper->productAttribute($_product, $_img, 'image');
|
| 77 |
+
?>
|
| 78 |
+
</p>
|
| 79 |
+
<?php endif; ?>
|
| 80 |
+
<?php if (count($this->getGalleryImages()) > 0): ?>
|
| 81 |
+
<div class="more-views">
|
| 82 |
+
<h2><?php echo $this->__('More Views') ?></h2>
|
| 83 |
+
<ul>
|
| 84 |
+
<?php foreach ($this->getGalleryImages() as $_image): ?>
|
| 85 |
+
<li>
|
| 86 |
+
<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->escapeHtml($_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->escapeHtml($_image->getLabel()) ?>" /></a>
|
| 87 |
+
</li>
|
| 88 |
+
<?php endforeach; ?>
|
| 89 |
+
</ul>
|
| 90 |
+
</div>
|
| 91 |
+
<?php endif; ?>
|
| 92 |
+
<?php }else{?>
|
| 93 |
+
|
| 94 |
+
<?php
|
| 95 |
+
$_product = $this->getProduct();
|
| 96 |
+
$_helper = $this->helper('catalog/output');
|
| 97 |
+
?>
|
| 98 |
+
<div class="product-image product-image-zoom">
|
| 99 |
+
<div class="product-image-gallery" style="position: relative;">
|
| 100 |
+
<?php
|
| 101 |
+
$salesValue = Mage::getStoreConfig('catalog/spl_countersales/enabledsales');
|
| 102 |
+
if($salesValue && $_product->getSalesCount()){ ?>
|
| 103 |
+
<div style="position: relative;">
|
| 104 |
+
<div style="position: absolute; width: 40%; text-align: center; vertical-align: middle; top: 0px; height: 50%; left: -10px;">
|
| 105 |
+
<div style="background: linear-gradient(to bottom, rgb(254, 254, 254) 2%, rgb(219, 219, 219) 50%, rgb(226, 226, 226) 99%) repeat scroll 0 0 transparent; border: 2px solid rgb(255, 255, 255); border-radius: 150px; box-shadow: 0 0 6px rgb(204, 204, 204); color: rgb(51, 51, 51); font-size: 12px; font-style: italic; height: 80px; left: 14px; line-height: 13px; padding: 22px 0 0; position: absolute; text-align: center; text-shadow: 0 0 1px rgb(204, 204, 204); top: 4px; width: 80px;">
|
| 106 |
+
<?php echo sprintf ("%.0f", $_product->getSalesCount()); ?><BR> <span style="font-size:11px; ">SOLD</span></div>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
<?php } ?>
|
| 110 |
+
<img id="image-main"
|
| 111 |
+
class="gallery-image visible"
|
| 112 |
+
src="<?php echo $this->helper('catalog/image')->init($_product, 'image') ?>"
|
| 113 |
+
alt="<?php echo $this->escapeHtml($this->getImageLabel()) ?>"
|
| 114 |
+
title="<?php echo $this->escapeHtml($this->getImageLabel()); ?>" />
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
<?php
|
| 118 |
+
$i=0;
|
| 119 |
+
foreach ($this->getGalleryImages() as $_image):
|
| 120 |
+
$_imageUrl = $this->helper('catalog/image')
|
| 121 |
+
->init($_product, 'image', $_image->getFile())
|
| 122 |
+
->keepFrame(false)
|
| 123 |
+
->constrainOnly(true)
|
| 124 |
+
->resize(1200);
|
| 125 |
+
?>
|
| 126 |
+
<img id="image-<?php echo $i; ?>"
|
| 127 |
+
class="gallery-image"
|
| 128 |
+
src="<?php echo $_imageUrl; ?>"
|
| 129 |
+
data-zoom-image="<?php echo $_imageUrl; ?>" />
|
| 130 |
+
<?php
|
| 131 |
+
$i++;
|
| 132 |
+
endforeach;
|
| 133 |
+
?>
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
|
| 137 |
+
<?php if (count($this->getGalleryImages()) > 0): ?>
|
| 138 |
+
<div class="more-views">
|
| 139 |
+
<h2><?php echo $this->__('More Views') ?></h2>
|
| 140 |
+
<ul class="product-image-thumbs">
|
| 141 |
+
<?php $i=0; foreach ($this->getGalleryImages() as $_image): ?>
|
| 142 |
+
<?php
|
| 143 |
+
if (($filterClass = $this->getGalleryFilterHelper()) && ($filterMethod = $this->getGalleryFilterMethod()) && !Mage::helper($filterClass)->$filterMethod($_product, $_image)):
|
| 144 |
+
continue;
|
| 145 |
+
endif;
|
| 146 |
+
?>
|
| 147 |
+
<li>
|
| 148 |
+
<a class="thumb-link" href="#" title="<?php echo $this->escapeHtml($_image->getLabel()) ?>" data-image-index="<?php echo $i; ?>">
|
| 149 |
+
<img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(75); ?>"
|
| 150 |
+
width="75" height="75" alt="<?php echo $this->escapeHtml($_image->getLabel()) ?>" />
|
| 151 |
+
</a>
|
| 152 |
+
</li>
|
| 153 |
+
<?php $i++; endforeach; ?>
|
| 154 |
+
</ul>
|
| 155 |
+
</div>
|
| 156 |
+
<?php endif; ?>
|
| 157 |
+
|
| 158 |
+
<?php echo $this->getChildHtml('after'); ?>
|
| 159 |
+
|
| 160 |
+
<?php } ?>
|
| 161 |
+
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Products_Sold_Counter_By_Synotive</name>
|
| 4 |
-
<version>1.1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Products Sold Counter is an awesome way to make your customer engage with your store.</summary>
|
| 10 |
-
<description>Products Sold Counter is an awesome way to make your customer engage with your store
|
| 11 |
-
<notes>Products Sold Counter is
|
| 12 |
<authors><author><name>Synotive Technologies</name><user>Synotive</user><email>magento@synotive.com</email></author></authors>
|
| 13 |
-
<date>2015-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="SPL"><dir name="CounterSales"><dir name="Helper"><file name="Data.php" hash="ab669f2479f772cb3755b4f3fd4d6b6f"/></dir><dir name="Model"><file name="Observer.php" hash="e6aa1edb5ed53e3452a343db9fe8e850"/></dir><dir name="etc"><file name="config.xml" hash="
|
| 16 |
<compatible/>
|
| 17 |
-
<dependencies><required><php><min>5.0.0</min><max>5.
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Products_Sold_Counter_By_Synotive</name>
|
| 4 |
+
<version>1.1.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Products Sold Counter is an awesome way to make your customer engage with your store.</summary>
|
| 10 |
+
<description>Products Sold Counter is an awesome way to make your customer engage with your store. </description>
|
| 11 |
+
<notes>Products Sold Counter is an awesome way to make your customer engage with your store.</notes>
|
| 12 |
<authors><author><name>Synotive Technologies</name><user>Synotive</user><email>magento@synotive.com</email></author></authors>
|
| 13 |
+
<date>2015-02-04</date>
|
| 14 |
+
<time>05:20:59</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="SPL"><dir name="CounterSales"><dir name="Helper"><file name="Data.php" hash="ab669f2479f772cb3755b4f3fd4d6b6f"/></dir><dir name="Model"><file name="Observer.php" hash="e6aa1edb5ed53e3452a343db9fe8e850"/></dir><dir name="etc"><file name="config.xml" hash="561d733a91580e73fbd4384996bbff00"/><file name="system.xml" hash="be69c4ccb9e33c535bd32a794a5231af"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SPL_CounterSales.xml" hash="fe1cd2cf82b1c2f3d88603b2e1c35762"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="countersales.xml" hash="b9a4604d1effc32a98136bebc6436d99"/></dir><dir name="template"><dir name="countersales"><file name="list.phtml" hash="707f24e9b75aee90b220fab5c0cceae9"/><file name="media.phtml" hash="d92844402790a893f1288943b8b1b9ca"/></dir></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
+
<dependencies><required><php><min>5.0.0</min><max>5.6.0</max></php></required></dependencies>
|
| 18 |
</package>
|
