Magazento_Productivity - Version 1.0.2

Version Notes

last fixed issues:
=====
I installed this extension, but frontend template did not include..
Instead of that, dir of naming "ip_productactivity.xml" was created in app->design->frontend->base->default->template.
=====

Download this release

Release Info

Developer volgodark
Extension Magazento_Productivity
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/design/frontend/base/default/layout/ip_productactivity.xml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+
4
+ <default>
5
+ <reference name="head">
6
+ <action method="addCss"><stylesheet>ip_productactivity/style.css</stylesheet></action>
7
+ <action method="addCss"><stylesheet>ip_productactivity/tabs.css</stylesheet></action>
8
+ <action method="addItem">
9
+ <type>skin_js</type>
10
+ <name>ip_productactivity/livepipe.js</name>
11
+ </action>
12
+ <action method="addItem">
13
+ <type>skin_js</type>
14
+ <name>ip_productactivity/tabs.js</name>
15
+ </action>
16
+ </reference>
17
+ <reference name="after_body_start">
18
+ <block type="productactivity/extra"
19
+ name="ip_productactivity_extra"
20
+ before="-"
21
+ template="ip_productactivity/extra.phtml"/>
22
+ </reference>
23
+ </default>
24
+
25
+ <!-- default -->
26
+ <cms_page>
27
+ <reference name="content">
28
+ <block type="core/template"
29
+ name="magazento_homepage"
30
+ after="cms.wrapper"
31
+ template="ip_productactivity/data.phtml"/>
32
+ </reference>
33
+ </cms_page>
34
+ <!-- <default>
35
+ <reference name="content">
36
+ <block type="core/template"
37
+ name="magazento_homepage"
38
+ template="ip_productactivity/data.phtml"/>
39
+ </reference>
40
+ </default> -->
41
+
42
+
43
+ <!-- category -->
44
+ <catalog_category_default>
45
+ <reference name="content">
46
+ <block type="core/template"
47
+ name="magazento_homepage"
48
+ after="category.products"
49
+ template="ip_productactivity/data.phtml"/>
50
+ </reference>
51
+ </catalog_category_default>
52
+ <catalog_category_layered>
53
+ <reference name="content">
54
+ <block type="core/template"
55
+ name="magazento_homepage"
56
+ after="category.products"
57
+ template="ip_productactivity/data.phtml"/>
58
+ </reference>
59
+ </catalog_category_layered>
60
+
61
+ <!-- product -->
62
+ <catalog_product_view>
63
+ <reference name="content">
64
+ <block type="core/template"
65
+ name="magazento_homepage"
66
+ after="product.info"
67
+ template="ip_productactivity/data.phtml"/>
68
+ </reference>
69
+ </catalog_product_view>
70
+
71
+
72
+
73
+ </layout>
74
+
75
+
76
+
77
+
78
+
app/design/frontend/base/default/template/ip_productactivity/data.phtml ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type="text/javascript">
2
+ document.observe('dom:loaded', function() {
3
+ new Control.Tabs('ip_productactivity');
4
+ });
5
+
6
+ </script>
7
+
8
+ <div class="ip_productactivity_box" id="main-ops-container">
9
+ <ul id="ip_productactivity" class="subsection_tabs">
10
+ <?php if (Mage::getStoreConfig('productactivity/popular/enable')): ?>
11
+ <li class="tab first extra-class1 left"><a onclick="return false" href="#mainops1" class="">
12
+ <?php echo $this->helper('productactivity/data')->getTitlePopular(); ?></a>
13
+ </li>
14
+ <?php endif; ?>
15
+
16
+ <?php if (Mage::getStoreConfig('productactivity/new/enable')): ?>
17
+ <li class="tab first extra-class1 left"><a onclick="return false" href="#mainops2" class="">
18
+ <?php echo $this->helper('productactivity/data')->getTitleNew(); ?></a>
19
+ </li>
20
+ <?php endif; ?>
21
+
22
+ <?php if (Mage::getStoreConfig('productactivity/topsell/enable')): ?>
23
+ <li class="tab first extra-class1 left"><a onclick="return false" href="#mainops3" class="">
24
+ <?php echo $this->helper('productactivity/data')->getTitleTopSell(); ?></a>
25
+ </li>
26
+ <?php endif; ?>
27
+
28
+ <?php if (Mage::getStoreConfig('productactivity/toprated/enable')): ?>
29
+ <li class="tab first extra-class1 left"><a onclick="return false" href="#mainops4" class="">
30
+ <?php echo $this->helper('productactivity/data')->getTitleToprated(); ?></a>
31
+ </li>
32
+ <?php endif; ?>
33
+ <?php if (Mage::getStoreConfig('productactivity/review/enable')): ?>
34
+ <li class="tab first extra-class1 left"><a onclick="return false" href="#mainops5" class="">
35
+ <?php echo $this->helper('productactivity/data')->getTitleReview(); ?></a>
36
+ </li>
37
+ <?php endif; ?>
38
+ </ul>
39
+ <div>
40
+ <div id="mainops1" style="">
41
+ <?php if (Mage::getStoreConfig('productactivity/popular/enable')): ?>
42
+ <?php echo $this->getLayout()->createBlock('productactivity/popular')->setTemplate('ip_productactivity/popular.phtml')->toHtml(); ?>
43
+ <?php endif; ?>
44
+ </div>
45
+ <div id="mainops2" style="">
46
+ <?php if (Mage::getStoreConfig('productactivity/new/enable')): ?>
47
+ <?php echo $this->getLayout()->createBlock('productactivity/new')->setTemplate('ip_productactivity/new.phtml')->toHtml(); ?>
48
+ <?php endif; ?>
49
+ </div>
50
+ <div id="mainops3" style="">
51
+ <?php if (Mage::getStoreConfig('productactivity/topsell/enable')): ?>
52
+ <?php echo $this->getLayout()->createBlock('productactivity/topsell')->setTemplate('ip_productactivity/topsell.phtml')->toHtml(); ?>
53
+ <?php endif; ?>
54
+ </div>
55
+ <div id="mainops4" style="">
56
+ <?php if (Mage::getStoreConfig('productactivity/toprated/enable')): ?>
57
+ <?php echo $this->getLayout()->createBlock('productactivity/toprated')->setTemplate('ip_productactivity/toprated.phtml')->toHtml(); ?>
58
+ <?php endif; ?>
59
+ </div>
60
+ <div id="mainops5" style="">
61
+ <?php if (Mage::getStoreConfig('productactivity/review/enable')): ?>
62
+ <?php echo $this->getLayout()->createBlock('productactivity/review')->setTemplate('ip_productactivity/review.phtml')->toHtml(); ?>
63
+ <?php endif; ?>
64
+ </div>
65
+ </div>
66
+ <p class="magazento-powered">Powered by <a href="http://www.magazento.com/english/magento-ext/magazento-extensions" target="_blank">Magento modules</a></p>
67
+ </div>
68
+
app/design/frontend/base/default/template/ip_productactivity/new.phtml ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_products = $this->getProductCollection(); ?>
2
+ <?php $_collectionSize = sizeof($_products); ?>
3
+ <?php $_columnCount = Mage::getStoreConfig('productactivity/options/count'); ?>
4
+
5
+
6
+ <div class="block block-productactivity">
7
+ <div class="block-content">
8
+
9
+ <?php if (sizeof($_products)): ?>
10
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
11
+ <?php if ($i++%$_columnCount==0): ?>
12
+ <ul class="products-grid">
13
+ <?php endif ?>
14
+
15
+ <?php if ($_product->getData('is_salable')): ?>
16
+ <li class="item<?php if($i==sizeof($_products) ): ?> last<?php endif; ?>">
17
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(130); ?>" width="130" height="130" alt="" /></a>
18
+ <div class="product-details">
19
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
20
+ <?php if (Mage::getStoreConfig('productactivity/options/price')):?>
21
+ <?php echo $this->getPriceHtml($_product, true) ?>
22
+ <?php endif; ?>
23
+ <?php if (Mage::getStoreConfig('productactivity/options/actions')):?>
24
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
25
+
26
+
27
+ <div class="additional-links">
28
+ <?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
29
+ <ul class="add-to-links">
30
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
31
+ <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>
32
+ <?php endif; ?>
33
+ <?php
34
+ $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
35
+ ?>
36
+ <?php if($_compareUrl) : ?>
37
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
38
+ <?php endif; ?>
39
+ </ul>
40
+ </div>
41
+ <?php endif; ?>
42
+
43
+ </div>
44
+ </li>
45
+ <?php else: ?>
46
+ <?php if( Mage::getStoreConfig('productactivity/options/salable')) : ?>
47
+ <li class="item">
48
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(130); ?>" width="130" height="130" alt="" /></a>
49
+ <div class="product-details">
50
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
51
+ <?php if (Mage::getStoreConfig('productactivity/options/price')):?>
52
+ <?php echo $this->getPriceHtml($_product, true) ?>
53
+ <?php endif; ?>
54
+ <?php if (Mage::getStoreConfig('productactivity/options/actions')):?>
55
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
56
+
57
+ <div class="additional-links">
58
+ <?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
59
+ <ul class="add-to-links">
60
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
61
+ <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>
62
+ <?php endif; ?>
63
+ <?php
64
+ $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
65
+ ?>
66
+ <?php if($_compareUrl) : ?>
67
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
68
+ <?php endif; ?>
69
+ </ul>
70
+ </div>
71
+ <?php endif; ?>
72
+ </div>
73
+ </li>
74
+ <?php endif; ?>
75
+ <?php endif; ?>
76
+
77
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
78
+ </ul>
79
+ <?php endif ?>
80
+ <?php endforeach; ?>
81
+
82
+
83
+ <?php else: ?>
84
+ <ol id="productactivity-no-products" class="mini-products-list">
85
+ <li class="item odd">
86
+ <?php echo Mage::getStoreConfig('productactivity/options/noproduct') ?>
87
+ </li>
88
+ </ol>
89
+ <?php endif; ?>
90
+
91
+ </div>
92
+ </div>
app/design/frontend/base/default/template/ip_productactivity/popular.phtml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_products = $this->getProductCollection(); ?>
2
+ <?php $_collectionSize = sizeof($_products); ?>
3
+ <?php $_columnCount = Mage::getStoreConfig('productactivity/options/count'); ?>
4
+
5
+
6
+ <div class="block block-productactivity">
7
+ <div class="block-content">
8
+
9
+ <?php if (sizeof($_products)): ?>
10
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
11
+ <?php if ($i++%$_columnCount==0): ?>
12
+ <ul class="products-grid">
13
+ <?php endif ?>
14
+
15
+ <?php if ($_product->getData('is_salable')): ?>
16
+ <li class="item<?php if($i==sizeof($_products) ): ?> last<?php endif; ?>">
17
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(130); ?>" width="130" height="130" alt="" /></a>
18
+ <div class="product-details">
19
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
20
+ <?php if (Mage::getStoreConfig('productactivity/options/price')):?>
21
+ <?php echo $this->getPriceHtml($_product, true) ?>
22
+ <?php endif; ?>
23
+ <?php if (Mage::getStoreConfig('productactivity/options/actions')):?>
24
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
25
+
26
+ <div class="additional-links">
27
+ <?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
28
+ <ul class="add-to-links">
29
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
30
+ <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>
31
+ <?php endif; ?>
32
+ <?php
33
+ $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
34
+ ?>
35
+ <?php if($_compareUrl) : ?>
36
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
37
+ <?php endif; ?>
38
+ </ul>
39
+ </div>
40
+ <?php endif; ?>
41
+
42
+
43
+ </div>
44
+ </li>
45
+ <?php else: ?>
46
+ <?php if( Mage::getStoreConfig('productactivity/options/salable')) : ?>
47
+ <li class="item">
48
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(130); ?>" width="130" height="130" alt="" /></a>
49
+ <div class="product-details">
50
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
51
+ <?php if (Mage::getStoreConfig('productactivity/options/price')):?>
52
+ <?php echo $this->getPriceHtml($_product, true) ?>
53
+ <?php endif; ?>
54
+ <?php if (Mage::getStoreConfig('productactivity/options/actions')):?>
55
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
56
+
57
+
58
+ <div class="additional-links">
59
+ <?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
60
+ <ul class="add-to-links">
61
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
62
+ <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>
63
+ <?php endif; ?>
64
+ <?php
65
+ $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
66
+ ?>
67
+ <?php if($_compareUrl) : ?>
68
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
69
+ <?php endif; ?>
70
+ </ul>
71
+ </div>
72
+ <?php endif; ?>
73
+ </div>
74
+ </li>
75
+ <?php endif; ?>
76
+ <?php endif; ?>
77
+
78
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
79
+ </ul>
80
+ <?php endif ?>
81
+ <?php endforeach; ?>
82
+
83
+
84
+ <?php else: ?>
85
+ <ol id="productactivity-no-products" class="mini-products-list">
86
+ <li class="item odd">
87
+ <?php echo Mage::getStoreConfig('productactivity/options/noproduct') ?>
88
+ </li>
89
+ </ol>
90
+ <?php endif; ?>
91
+
92
+ </div>
93
+ </div>
app/design/frontend/base/default/template/ip_productactivity/review.phtml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_reviews = $this->getReviewsData();?>
2
+
3
+
4
+ <div class="block block-productactivity">
5
+ <div class="block-content">
6
+ <div class="content-home-wrapper">
7
+ <?php $i=0; $total = count($_reviews); foreach($_reviews as $review): ?>
8
+ <?php
9
+
10
+
11
+ $ratings = $review['ratings'][0];
12
+ $_product = $review['product'];
13
+
14
+ $i++;
15
+ $class ='';
16
+ if ($i == 1) $class ='class="first"';
17
+ if ($i == $total ) $class ='class="last"';
18
+ ?>
19
+ <dl <?php echo $class; ?>>
20
+ <div class="product-image">
21
+ <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(132, 124); ?>" width="132" height="124" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
22
+ </div>
23
+ <dt>
24
+ <a href="<?php echo $review['review_url']; ?>"><?php echo $review['title']; ?></a> <?php echo $this->__('Review by');?> <strong><?php echo $review['nickname']; ?></strong>
25
+ </dt>
26
+ <dd>
27
+ <table class="ratings-table">
28
+ <col width="1">
29
+ <col>
30
+ <tbody>
31
+ <?php foreach($ratings as $k => $rating): ?>
32
+ <tr>
33
+ <th><?php echo $k;?></th>
34
+ <td>
35
+ <div class="rating-box">
36
+ <div style="width: <?php echo $rating; ?>%;" class="rating"></div>
37
+ </div>
38
+ </td>
39
+ </tr>
40
+ <?php endforeach; ?>
41
+ </tbody>
42
+ </table>
43
+ <?php echo $review['detail']; ?><br/>
44
+
45
+
46
+ <?php if (Mage::getStoreConfig('productactivity/options/actions')):?>
47
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
48
+
49
+
50
+ <div class="additional-links">
51
+ <?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
52
+ <ul class="add-to-links">
53
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
54
+ <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>
55
+ <?php endif; ?>
56
+ <?php
57
+ $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
58
+ ?>
59
+ <?php if($_compareUrl) : ?>
60
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
61
+ <?php endif; ?>
62
+ </ul>
63
+ </div>
64
+ <?php endif; ?>
65
+
66
+ </dd>
67
+ </dl>
68
+ <?php endforeach; ?>
69
+ <?php if ($i==0): ?>
70
+ <ol id="productactivity-no-products" class="mini-products-list">
71
+ <li class="item odd">
72
+ <?php echo Mage::getStoreConfig('productactivity/options/noproduct'); ?>
73
+ </li>
74
+ </ol>
75
+ <?php endif;?>
76
+ </div>
77
+ </div>
78
+ </div>
app/design/frontend/base/default/template/ip_productactivity/toprated.phtml ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_products = $this->getTopRatedProduct();?>
2
+ <?php $_collectionSize = count($_products); ?>
3
+ <?php $_columnCount = Mage::getStoreConfig('productactivity/options/count'); ?>
4
+
5
+
6
+ <div class="block block-productactivity">
7
+ <div class="block-content">
8
+
9
+ <?php $i=0; foreach($_products as $_rating): ?>
10
+ <?php $_product = $_rating['product']; ?>
11
+
12
+ <?php if ($i++%$_columnCount==0): ?>
13
+ <ul class="products-grid">
14
+ <?php endif ?>
15
+
16
+ <?php if ($_product->getData('is_salable')): ?>
17
+ <li class="item<?php if($i==sizeof($_products) ): ?> last<?php endif; ?>">
18
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(130); ?>" width="130" height="130" alt="" /></a>
19
+ <div class="product-details">
20
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
21
+ <?php if (Mage::getStoreConfig('productactivity/options/price')):?>
22
+ <?php echo $this->getPriceHtml($_product, true) ?>
23
+ <?php endif; ?>
24
+ <?php if (Mage::getStoreConfig('productactivity/options/actions')):?>
25
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
26
+
27
+
28
+ <div class="additional-links">
29
+ <?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
30
+ <ul class="add-to-links">
31
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
32
+ <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>
33
+ <?php endif; ?>
34
+ <?php
35
+ $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
36
+ ?>
37
+ <?php if($_compareUrl) : ?>
38
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
39
+ <?php endif; ?>
40
+ </ul>
41
+ </div>
42
+ <?php endif; ?>
43
+ </div>
44
+ </li>
45
+ <?php else: ?>
46
+ <?php if( Mage::getStoreConfig('productactivity/options/salable')) : ?>
47
+ <li class="item">
48
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(130); ?>" width="130" height="130" alt="" /></a>
49
+ <div class="product-details">
50
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
51
+ <?php if (Mage::getStoreConfig('productactivity/options/price')):?>
52
+ <?php echo $this->getPriceHtml($_product, true) ?>
53
+ <?php endif; ?>
54
+ <?php if (Mage::getStoreConfig('productactivity/options/actions')):?>
55
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
56
+
57
+
58
+ <div class="additional-links">
59
+ <?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
60
+ <ul class="add-to-links">
61
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
62
+ <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>
63
+ <?php endif; ?>
64
+ <?php
65
+ $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
66
+ ?>
67
+ <?php if($_compareUrl) : ?>
68
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
69
+ <?php endif; ?>
70
+ </ul>
71
+ </div>
72
+ <?php endif; ?>
73
+ </div>
74
+ </li>
75
+ <?php endif; ?>
76
+ <?php endif; ?>
77
+
78
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
79
+ </ul>
80
+ <?php endif ?>
81
+
82
+
83
+ <?php endforeach; ?>
84
+
85
+ </div>
86
+ </div>
app/design/frontend/base/default/template/ip_productactivity/topsell.phtml ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_products = $this->getProductCollection(); ?>
2
+ <?php $_collectionSize = sizeof($_products); ?>
3
+ <?php $_columnCount = Mage::getStoreConfig('productactivity/options/count'); ?>
4
+
5
+
6
+ <div class="block block-productactivity">
7
+ <div class="block-content">
8
+
9
+ <?php if (sizeof($_products)): ?>
10
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
11
+ <?php if ($i++%$_columnCount==0): ?>
12
+ <ul class="products-grid">
13
+ <?php endif ?>
14
+
15
+ <?php if ($_product->getData('is_salable')): ?>
16
+ <li class="item<?php if($i==sizeof($_products) ): ?> last<?php endif; ?>">
17
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(130); ?>" width="130" height="130" alt="" /></a>
18
+ <div class="product-details">
19
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
20
+ <?php if (Mage::getStoreConfig('productactivity/options/price')):?>
21
+ <?php echo $this->getPriceHtml($_product, true) ?>
22
+ <?php endif; ?>
23
+ <?php if (Mage::getStoreConfig('productactivity/options/actions')):?>
24
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
25
+
26
+
27
+ <div class="additional-links">
28
+ <?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
29
+ <ul class="add-to-links">
30
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
31
+ <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>
32
+ <?php endif; ?>
33
+ <?php
34
+ $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
35
+ ?>
36
+ <?php if($_compareUrl) : ?>
37
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
38
+ <?php endif; ?>
39
+ </ul>
40
+ </div>
41
+ <?php endif; ?>
42
+ </div>
43
+ </li>
44
+ <?php else: ?>
45
+ <?php if( Mage::getStoreConfig('productactivity/options/salable')) : ?>
46
+ <li class="item">
47
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(130); ?>" width="130" height="130" alt="" /></a>
48
+ <div class="product-details">
49
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
50
+ <?php if (Mage::getStoreConfig('productactivity/options/price')):?>
51
+ <?php echo $this->getPriceHtml($_product, true) ?>
52
+ <?php endif; ?>
53
+ <?php if (Mage::getStoreConfig('productactivity/options/actions')):?>
54
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
55
+
56
+
57
+ <div class="additional-links">
58
+ <?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
59
+ <ul class="add-to-links">
60
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
61
+ <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>
62
+ <?php endif; ?>
63
+ <?php
64
+ $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
65
+ ?>
66
+ <?php if($_compareUrl) : ?>
67
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
68
+ <?php endif; ?>
69
+ </ul>
70
+ </div>
71
+ <?php endif; ?>
72
+ </div>
73
+ </li>
74
+ <?php endif; ?>
75
+ <?php endif; ?>
76
+
77
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
78
+ </ul>
79
+ <?php endif ?>
80
+ <?php endforeach; ?>
81
+
82
+
83
+ <?php else: ?>
84
+ <ol id="productactivity-no-products" class="mini-products-list">
85
+ <li class="item odd">
86
+ <?php echo Mage::getStoreConfig('productactivity/options/noproduct') ?>
87
+ </li>
88
+ </ol>
89
+ <?php endif; ?>
90
+
91
+ </div>
92
+ </div>
app/etc/modules/Ip_Productactivity.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Ip_Productactivity>
5
- <active>true</active>
6
  <codePool>community</codePool>
7
  </Ip_Productactivity>
8
  </modules>
2
  <config>
3
  <modules>
4
  <Ip_Productactivity>
5
+ <active>false</active>
6
  <codePool>community</codePool>
7
  </Ip_Productactivity>
8
  </modules>
package.xml CHANGED
@@ -1,18 +1,22 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magazento_Productivity</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Show best, popular, new reviews and new products and reviews to your customers</summary>
10
  <description>Show best, popular, new reviews and new products and reviews to your customers</description>
11
- <notes>Fist stable</notes>
 
 
 
 
12
  <authors><author><name>volgodark</name><user>volgodark</user><email>volgodark@gmail.com</email></author></authors>
13
- <date>2012-12-03</date>
14
- <time>22:40:58</time>
15
- <contents><target name="magecommunity"><dir name="Ip"><dir name="Productactivity"><dir name="Block"><file name="Developer.php" hash="e779bd431338e7f703148338ef02fdc4"/><file name="New.php" hash="c05d663f09f242ef8bbdf04dbf5925a9"/><file name="Popular.php" hash="d296c325bbc3fcd51d839e559e0baa6b"/><file name="Review.php" hash="d79ceddd7d74c6cf77c94e7d04b808bc"/><file name="Toprated.php" hash="413c113f5849eb5b055fc071d3df33c2"/><file name="Topsell.php" hash="a3172ab702d3e7ef2c5844407098cfd9"/></dir><dir name="Helper"><file name="Data.php" hash="ca7d799b81f41b7098e04ce0daefaa8d"/></dir><dir name="Model"><file name="Data.php" hash="0f41804ab583e2fef0eae3e98e7810b4"/></dir><dir name="etc"><file name="config.xml" hash="c1974d781b7e2eae921b158c249cd929"/><file name="system.xml" hash="aacdce560d44c6c8b2bb29176168924d"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><file name="ip_productactivity.xml" hash=""/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ip_Productactivity.xml" hash="8bc75d6951ff272798ae6b97bbbae8c6"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="ip_productactivity"><dir name="img"><file name="all.gif" hash="8a5e2259f5cbf06bdbf303a258be4590"/><file name="drop.gif" hash="1be9ffe42c8d599225596272663e3e06"/><file name="drop.png" hash="4178363d189e1a18093bf7412a0b7808"/><file name="home.png" hash="31fed0cd2dfe3ed662ed92a9cb4af580"/><file name="menu_tabs_sprite.png" hash="16fcb5977b65ca67b0f20008d950afba"/></dir><file name="livepipe.js" hash="3f8ee3a15b811a4a11817f1662599213"/><file name="promo.jpg" hash="8e34bc79c2f2927ce674471e463cddc0"/><file name="style.css" hash="a746f2398f2c450e8f1e62782cd6ece4"/><file name="tabs.css" hash="21d3a70626a48d4e039a774fc66eefd4"/><file name="tabs.js" hash="bbdba6abfaef6a655ef12e61f3eb2f90"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.1</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magazento_Productivity</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Show best, popular, new reviews and new products and reviews to your customers</summary>
10
  <description>Show best, popular, new reviews and new products and reviews to your customers</description>
11
+ <notes>last fixed issues:&#xD;
12
+ =====&#xD;
13
+ I installed this extension, but frontend template did not include..&#xD;
14
+ Instead of that, dir of naming "ip_productactivity.xml" was created in app-&gt;design-&gt;frontend-&gt;base-&gt;default-&gt;template.&#xD;
15
+ =====</notes>
16
  <authors><author><name>volgodark</name><user>volgodark</user><email>volgodark@gmail.com</email></author></authors>
17
+ <date>2012-12-06</date>
18
+ <time>15:51:45</time>
19
+ <contents><target name="magecommunity"><dir name="Ip"><dir name="Productactivity"><dir name="Block"><file name="Developer.php" hash="e779bd431338e7f703148338ef02fdc4"/><file name="New.php" hash="c05d663f09f242ef8bbdf04dbf5925a9"/><file name="Popular.php" hash="d296c325bbc3fcd51d839e559e0baa6b"/><file name="Review.php" hash="d79ceddd7d74c6cf77c94e7d04b808bc"/><file name="Toprated.php" hash="413c113f5849eb5b055fc071d3df33c2"/><file name="Topsell.php" hash="a3172ab702d3e7ef2c5844407098cfd9"/></dir><dir name="Helper"><file name="Data.php" hash="ca7d799b81f41b7098e04ce0daefaa8d"/></dir><dir name="Model"><file name="Data.php" hash="0f41804ab583e2fef0eae3e98e7810b4"/></dir><dir name="etc"><file name="config.xml" hash="c1974d781b7e2eae921b158c249cd929"/><file name="system.xml" hash="aacdce560d44c6c8b2bb29176168924d"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ip_productactivity.xml" hash="9592ffd0f5c4e4fc5e9513adcd74c58c"/></dir><dir name="template"><dir name="ip_productactivity"><file name="data.phtml" hash="5615f449fa6d4c0c2a4e4e88ad56602d"/><file name="new.phtml" hash="cc818a30dedd7aae6cf26ef87e72d369"/><file name="popular.phtml" hash="99af42af352a9a3e9b920d35f6654adc"/><file name="review.phtml" hash="2d3ba1d841c7b25adf0b900259fe12de"/><file name="toprated.phtml" hash="519034b5757b2341a6c836fcf7826faa"/><file name="topsell.phtml" hash="4bb6e9ebd9c779f38bc8ad38003c666f"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ip_Productactivity.xml" hash="f888905c1483f8201e14b4a4ce20b6f0"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="ip_productactivity"><dir name="img"><file name="all.gif" hash="8a5e2259f5cbf06bdbf303a258be4590"/><file name="drop.gif" hash="1be9ffe42c8d599225596272663e3e06"/><file name="drop.png" hash="4178363d189e1a18093bf7412a0b7808"/><file name="home.png" hash="31fed0cd2dfe3ed662ed92a9cb4af580"/><file name="menu_tabs_sprite.png" hash="16fcb5977b65ca67b0f20008d950afba"/></dir><file name="livepipe.js" hash="3f8ee3a15b811a4a11817f1662599213"/><file name="promo.jpg" hash="8e34bc79c2f2927ce674471e463cddc0"/><file name="style.css" hash="a746f2398f2c450e8f1e62782cd6ece4"/><file name="tabs.css" hash="21d3a70626a48d4e039a774fc66eefd4"/><file name="tabs.js" hash="bbdba6abfaef6a655ef12e61f3eb2f90"/></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.1.1</min><max>6.0.0</max></php></required></dependencies>
22
  </package>