Magazento_Homesellers - Version 1.0.1

Version Notes

1.0.1

Download this release

Release Info

Developer Magento Core Team
Extension Magazento_Homesellers
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/design/frontend/default/default/template/magazento/homepage/data.phtml CHANGED
@@ -1,14 +1,14 @@
1
  <div class="">
2
  <?php if (Mage::getStoreConfig('homepage/topsell/enable')): ?>
3
- <?php echo $this->getLayout()->createBlock('homepage/topsell')->setTemplate('magazento/homepage/template.phtml')->toHtml(); ?>
4
  <?php endif; ?>
5
 
6
  <?php if (Mage::getStoreConfig('homepage/new/enable')): ?>
7
- <?php echo $this->getLayout()->createBlock('homepage/new')->setTemplate('magazento/homepage/template.phtml')->toHtml(); ?>
8
  <?php endif; ?>
9
 
10
  <?php if (Mage::getStoreConfig('homepage/popular/enable')): ?>
11
- <?php echo $this->getLayout()->createBlock('homepage/popular')->setTemplate('magazento/homepage/template.phtml')->toHtml(); ?>
12
  <?php endif; ?>
13
 
14
  <?php if (Mage::getStoreConfig('homepage/toprated/enable')): ?>
1
  <div class="">
2
  <?php if (Mage::getStoreConfig('homepage/topsell/enable')): ?>
3
+ <?php echo $this->getLayout()->createBlock('homepage/topsell')->setTemplate('magazento/homepage/topsell.phtml')->toHtml(); ?>
4
  <?php endif; ?>
5
 
6
  <?php if (Mage::getStoreConfig('homepage/new/enable')): ?>
7
+ <?php echo $this->getLayout()->createBlock('homepage/new')->setTemplate('magazento/homepage/new.phtml')->toHtml(); ?>
8
  <?php endif; ?>
9
 
10
  <?php if (Mage::getStoreConfig('homepage/popular/enable')): ?>
11
+ <?php echo $this->getLayout()->createBlock('homepage/popular')->setTemplate('magazento/homepage/popular.phtml')->toHtml(); ?>
12
  <?php endif; ?>
13
 
14
  <?php if (Mage::getStoreConfig('homepage/toprated/enable')): ?>
app/design/frontend/default/default/template/magazento/homepage/{template.phtml → new.phtml} RENAMED
@@ -4,7 +4,7 @@
4
 
5
 
6
  <div class="block block-homepage">
7
- <div class="block-title .title-homepage">
8
  <?php echo $this->getTitle(); ?>
9
  </div>
10
  <div class="block-content">
4
 
5
 
6
  <div class="block block-homepage">
7
+ <div class="block-title title-homepage">
8
  <?php echo $this->getTitle(); ?>
9
  </div>
10
  <div class="block-content">
app/design/frontend/default/default/template/magazento/homepage/popular.phtml ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_products = $this->getProductCollection(); ?>
2
+ <?php $_collectionSize = sizeof($_products); ?>
3
+ <?php $_columnCount = Mage::getStoreConfig('homepage/options/count'); ?>
4
+
5
+
6
+ <div class="block block-homepage">
7
+ <div class="block-title title-homepage">
8
+ <?php echo $this->getTitle(); ?>
9
+ </div>
10
+ <div class="block-content">
11
+
12
+ <?php if (sizeof($_products)): ?>
13
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
14
+ <?php if ($i++%$_columnCount==0): ?>
15
+ <ul class="products-grid">
16
+ <?php endif ?>
17
+
18
+ <?php# echo $_product->getData('is_salable') . Mage::getStoreConfig('homepage/options/salable'); ?>
19
+ <?php if ($_product->getData('is_salable')): ?>
20
+ <li class="item<?php if($i==sizeof($_products) ): ?> last<?php endif; ?>">
21
+ <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>
22
+ <div class="product-details">
23
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
24
+ <?php if (Mage::getStoreConfig('homepage/options/price')):?>
25
+ <?php echo $this->getPriceHtml($_product, true) ?>
26
+ <?php endif; ?>
27
+ <?php if (Mage::getStoreConfig('homepage/options/actions')):?>
28
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
29
+ <?php endif; ?>
30
+ </div>
31
+ </li>
32
+ <?php else: ?>
33
+ <?php if( Mage::getStoreConfig('homepage/options/salable')) : ?>
34
+ <li class="item">
35
+ <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>
36
+ <div class="product-details">
37
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
38
+ <?php if (Mage::getStoreConfig('homepage/options/price')):?>
39
+ <?php echo $this->getPriceHtml($_product, true) ?>
40
+ <?php endif; ?>
41
+ <?php if (Mage::getStoreConfig('homepage/options/actions')):?>
42
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
43
+ <?php endif; ?>
44
+ </div>
45
+ </li>
46
+ <?php endif; ?>
47
+ <?php endif; ?>
48
+
49
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
50
+ </ul>
51
+ <?php endif ?>
52
+ <?php endforeach; ?>
53
+
54
+
55
+ <?php else: ?>
56
+ <ol id="bestseller-sidebar" class="mini-products-list">
57
+ <li class="item odd">
58
+ <?php echo Mage::getStoreConfig('homepage/options/noproduct') ?>
59
+ </li>
60
+ </ol>
61
+ <?php endif; ?>
62
+
63
+ </div>
64
+ </div>
app/design/frontend/default/default/template/magazento/homepage/review.phtml CHANGED
@@ -2,7 +2,7 @@
2
 
3
 
4
  <div class="block block-homepage">
5
- <div class="block-title .title-homepage">
6
  <?php echo $this->getTitle(); ?>
7
  </div>
8
  <div class="block-content">
2
 
3
 
4
  <div class="block block-homepage">
5
+ <div class="block-title title-homepage">
6
  <?php echo $this->getTitle(); ?>
7
  </div>
8
  <div class="block-content">
app/design/frontend/default/default/template/magazento/homepage/toprated.phtml CHANGED
@@ -4,7 +4,7 @@
4
 
5
 
6
  <div class="block block-homepage">
7
- <div class="block-title .title-homepage">
8
  <?php echo $this->getTitle(); ?>
9
  </div>
10
  <div class="block-content">
4
 
5
 
6
  <div class="block block-homepage">
7
+ <div class="block-title title-homepage">
8
  <?php echo $this->getTitle(); ?>
9
  </div>
10
  <div class="block-content">
app/design/frontend/default/default/template/magazento/homepage/topsell.phtml ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_products = $this->getProductCollection(); ?>
2
+ <?php $_collectionSize = sizeof($_products); ?>
3
+ <?php $_columnCount = Mage::getStoreConfig('homepage/options/count'); ?>
4
+
5
+
6
+ <div class="block block-homepage">
7
+ <div class="block-title title-homepage">
8
+ <?php echo $this->getTitle(); ?>
9
+ </div>
10
+ <div class="block-content">
11
+
12
+ <?php if (sizeof($_products)): ?>
13
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
14
+ <?php if ($i++%$_columnCount==0): ?>
15
+ <ul class="products-grid">
16
+ <?php endif ?>
17
+
18
+ <?php# echo $_product->getData('is_salable') . Mage::getStoreConfig('homepage/options/salable'); ?>
19
+ <?php if ($_product->getData('is_salable')): ?>
20
+ <li class="item<?php if($i==sizeof($_products) ): ?> last<?php endif; ?>">
21
+ <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>
22
+ <div class="product-details">
23
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
24
+ <?php if (Mage::getStoreConfig('homepage/options/price')):?>
25
+ <?php echo $this->getPriceHtml($_product, true) ?>
26
+ <?php endif; ?>
27
+ <?php if (Mage::getStoreConfig('homepage/options/actions')):?>
28
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
29
+ <?php endif; ?>
30
+ </div>
31
+ </li>
32
+ <?php else: ?>
33
+ <?php if( Mage::getStoreConfig('homepage/options/salable')) : ?>
34
+ <li class="item">
35
+ <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>
36
+ <div class="product-details">
37
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
38
+ <?php if (Mage::getStoreConfig('homepage/options/price')):?>
39
+ <?php echo $this->getPriceHtml($_product, true) ?>
40
+ <?php endif; ?>
41
+ <?php if (Mage::getStoreConfig('homepage/options/actions')):?>
42
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
43
+ <?php endif; ?>
44
+ </div>
45
+ </li>
46
+ <?php endif; ?>
47
+ <?php endif; ?>
48
+
49
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
50
+ </ul>
51
+ <?php endif ?>
52
+ <?php endforeach; ?>
53
+
54
+
55
+ <?php else: ?>
56
+ <ol id="bestseller-sidebar" class="mini-products-list">
57
+ <li class="item odd">
58
+ <?php echo Mage::getStoreConfig('homepage/options/noproduct') ?>
59
+ </li>
60
+ </ol>
61
+ <?php endif; ?>
62
+
63
+ </div>
64
+ </div>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magazento_Homesellers</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
@@ -10,11 +10,11 @@
10
  <description>Homepage is the main part or any website. No matter commercial or a personal, based on magento cms or without it. It's very important to show for users relevant and needful information such as new products, topsellers, toprated products. If you a shop owner you could go to magento backend and look bestsellers,toprated and other reports under the report tab. But customer can't do it.
11
 
12
  This Magento extensions shows the list of your store's best sellers, popular, new, most rated products and product reviews and displays it at you homepage. Extension allows you fully configure your frontend look from backend.</description>
13
- <notes>1.0.0</notes>
14
  <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
15
- <date>2011-05-06</date>
16
- <time>09:45:44</time>
17
- <contents><target name="magelocale"><dir name="en_US"><file name="Magazento_Homepage.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="magazento_homepage.xml" hash="7b244d61a84e105d831789c5e0a73b6e"/></dir><dir name="template"><dir name="magazento"><dir name="homepage"><file name="data.phtml" hash="a4c7a174ed8a46494f52cf5d8c82bf17"/><file name="review.phtml" hash="71ecfc348ddeff3fbb43d92c28f25bae"/><file name="template.phtml" hash="2302efc395dd55be06f43ac7059e7cd4"/><file name="toprated.phtml" hash="fe76c6a5509d124e31ddd0bc69f76743"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="magazento"><dir name="homepage"><file name="promo.jpg" hash="88520d456df68c98130433b5184b8e7f"/><file name="style.css" hash="21c95fe46ac3c5b670f80f63e8f53f9e"/></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Magazento"><dir name="Homepage"><dir name="Block"><file name="Developer.php" hash="f519188aed00aa6901fe399d0a492660"/><file name="New.php" hash="7126d04ecfa37bed6ed4364825b4d2de"/><file name="Popular.php" hash="d6a4bbe8d9d722ef35702842d99b67a3"/><file name="Review.php" hash="3b150f0d01e514eaeae1f727a0bf44cc"/><file name="Toprated.php" hash="24a28eed699010d702e842636a870a36"/><file name="Topsell.php" hash="8bdd57f34cc25744c0bf67b296bef040"/></dir><dir name="etc"><file name="config.xml" hash="b54101ded19dec4ff6245825071081e8"/><file name="system.xml" hash="8bd12817342d202a9cad1a8738841b04"/></dir><dir name="Helper"><file name="Data.php" hash="a2202bd5bc733d6dacd650839e3131d8"/></dir><dir name="Model"><file name="Data.php" hash="fb3fcdccc3035c0fdc3f48e203d2403d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Homepage.xml" hash="0400a3c20ce4f66f863d0b0f6ed989cf"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magazento_Homesellers</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
10
  <description>Homepage is the main part or any website. No matter commercial or a personal, based on magento cms or without it. It's very important to show for users relevant and needful information such as new products, topsellers, toprated products. If you a shop owner you could go to magento backend and look bestsellers,toprated and other reports under the report tab. But customer can't do it.
11
 
12
  This Magento extensions shows the list of your store's best sellers, popular, new, most rated products and product reviews and displays it at you homepage. Extension allows you fully configure your frontend look from backend.</description>
13
+ <notes>1.0.1</notes>
14
  <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
15
+ <date>2011-06-18</date>
16
+ <time>19:34:14</time>
17
+ <contents><target name="magelocale"><dir name="en_US"><file name="Magazento_Homepage.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="magazento_homepage.xml" hash="7b244d61a84e105d831789c5e0a73b6e"/></dir><dir name="template"><dir name="magazento"><dir name="homepage"><file name="data.phtml" hash="e575afec556d5f5877a9c11d2b5e65a2"/><file name="new.phtml" hash="4acc2e630ec6c329e668f9a09e299ba2"/><file name="popular.phtml" hash="4acc2e630ec6c329e668f9a09e299ba2"/><file name="review.phtml" hash="bb35ef3a7f3627ac2e1e9efbff8e602f"/><file name="toprated.phtml" hash="6e848e670aa8fbb2de1800c30028fcb3"/><file name="topsell.phtml" hash="4acc2e630ec6c329e668f9a09e299ba2"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="magazento"><dir name="homepage"><file name="oranje475px.png" hash="dad2af309b8399cd9cfbf3f3a3540976"/><file name="promo.jpg" hash="88520d456df68c98130433b5184b8e7f"/><file name="style.css" hash="f6d1200a4b277a51ca14105ef56701b6"/></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Magazento"><dir name="Homepage"><dir name="Block"><file name="Developer.php" hash="f519188aed00aa6901fe399d0a492660"/><file name="New.php" hash="7126d04ecfa37bed6ed4364825b4d2de"/><file name="Popular.php" hash="d6a4bbe8d9d722ef35702842d99b67a3"/><file name="Review.php" hash="3b150f0d01e514eaeae1f727a0bf44cc"/><file name="Toprated.php" hash="24a28eed699010d702e842636a870a36"/><file name="Topsell.php" hash="8bdd57f34cc25744c0bf67b296bef040"/></dir><dir name="etc"><file name="config.xml" hash="b54101ded19dec4ff6245825071081e8"/><file name="system.xml" hash="8bd12817342d202a9cad1a8738841b04"/></dir><dir name="Helper"><file name="Data.php" hash="a2202bd5bc733d6dacd650839e3131d8"/></dir><dir name="Model"><file name="Data.php" hash="fb3fcdccc3035c0fdc3f48e203d2403d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Homepage.xml" hash="0400a3c20ce4f66f863d0b0f6ed989cf"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>
skin/frontend/default/default/magazento/homepage/oranje475px.png ADDED
Binary file
skin/frontend/default/default/magazento/homepage/style.css CHANGED
@@ -12,4 +12,8 @@
12
  padding-left: 10px;
13
  line-height: 1.7;
14
  font-weight: bold;
 
 
 
 
15
  }
12
  padding-left: 10px;
13
  line-height: 1.7;
14
  font-weight: bold;
15
+ padding: 2px 9px;
16
+ width: 100%;
17
+ height: 60px;
18
+ background: url("oranje475px.png") no-repeat scroll 0 0 transparent;
19
  }