Dextrous_Extendcatalog - Version 1.2.1

Version Notes

Added Most viewed product.

Download this release

Release Info

Developer Hemant kumar sharma
Extension Dextrous_Extendcatalog
Version 1.2.1
Comparing to
See all releases


Code changes from version 1.2.0 to 1.2.1

app/code/local/Dextrous/Extendcatalog/Block/Mostviewed/Home/List.php ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Dextrous_Extendcatalog_Block_Mostviewed_Home_List extends Dextrous_Extendcatalog_Block_Mostviewed_List
3
+ {
4
+
5
+ protected function _getProductCollection()
6
+ {
7
+ parent::__construct();
8
+ $storeId = Mage::app()->getStore()->getId();
9
+ $products = Mage::getResourceModel('reports/product_collection')
10
+ ->addAttributeToSelect('*')
11
+ ->addAttributeToSelect(array('name', 'price', 'small_image'))
12
+ ->setStoreId($storeId)
13
+ ->addStoreFilter($storeId)
14
+ ->addViewsCount();
15
+ if(Mage::getStoreConfig('catalogextensions/config3/max_product'))
16
+ {
17
+ $products->setPageSize(Mage::getStoreConfig('catalogextensions/config3/max_product'));
18
+ }
19
+ $productFlatData = Mage::getStoreConfig('catalog/frontend/flat_catalog_product');
20
+ if($productFlatData == "1")
21
+ {
22
+ $products->getSelect()->joinLeft(
23
+ array('flat' => 'catalog_product_flat_1'),
24
+ "(e.entity_id = flat.entity_id ) ",
25
+ array(
26
+ 'flat.name AS name','flat.image AS small_image','flat.price AS price','flat.minimal_price as minimal_price','flat.special_price as special_price','flat.special_from_date AS special_from_date','flat.special_to_date AS special_to_date'
27
+ )
28
+ );
29
+ }
30
+
31
+
32
+
33
+ Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($products);
34
+ Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($products);
35
+ Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($products);
36
+
37
+ $this->_productCollection = $products;
38
+
39
+ return $this->_productCollection;
40
+ }
41
+
42
+ function get_prod_count()
43
+ {
44
+ //unset any saved limits
45
+ Mage::getSingleton('catalog/session')->unsLimitPage();
46
+ return (isset($_REQUEST['limit'])) ? intval($_REQUEST['limit']) : 9;
47
+ }// get_prod_count
48
+
49
+ function get_cur_page()
50
+ {
51
+ return (isset($_REQUEST['p'])) ? intval($_REQUEST['p']) : 1;
52
+ }// get_cur_page
53
+
54
+ function get_order()
55
+ {
56
+ return (isset($_REQUEST['order'])) ? ($_REQUEST['order']) : 'views';
57
+ }// get_order
58
+
59
+ function get_order_dir()
60
+ {
61
+ return (isset($_REQUEST['dir'])) ? ($_REQUEST['dir']) : 'desc';
62
+ }// get_direction
63
+
64
+ public function getToolbarHtml()
65
+ {
66
+
67
+ }
68
+ }
app/code/local/Dextrous/Extendcatalog/Block/Mostviewed/List.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Dextrous_Extendcatalog_Block_Mostviewed_List extends Mage_Catalog_Block_Product_List
3
+ {
4
+ protected function _getProductCollection()
5
+ {
6
+ parent::__construct();
7
+ $storeId = Mage::app()->getStore()->getId();
8
+ $products = Mage::getResourceModel('reports/product_collection')
9
+ ->addAttributeToSelect('*')
10
+ ->setStoreId($storeId)
11
+ ->addStoreFilter($storeId)
12
+ ->addViewsCount()
13
+ ->setPageSize($this->get_prod_count())
14
+ ->addAttributeToSort($this->get_order(), $this->get_order_dir())
15
+ ->setCurPage($this->get_cur_page());
16
+ $productFlatData = Mage::getStoreConfig('catalog/frontend/flat_catalog_product');
17
+ if($productFlatData == "1")
18
+ {
19
+ $products->getSelect()->joinLeft(
20
+ array('flat' => 'catalog_product_flat_1'),
21
+ "(e.entity_id = flat.entity_id ) ",
22
+ array(
23
+ 'flat.name AS name','flat.image AS small_image','flat.price AS price','flat.minimal_price as minimal_price','flat.special_price as special_price','flat.special_from_date AS special_from_date','flat.special_to_date AS special_to_date'
24
+ )
25
+ );
26
+ }
27
+ Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($products);
28
+ Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($products);
29
+ Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($products);
30
+
31
+ $this->_productCollection = $products;
32
+
33
+ return $this->_productCollection;
34
+ }
35
+
36
+
37
+ function get_prod_count()
38
+ {
39
+ //unset any saved limits
40
+ Mage::getSingleton('catalog/session')->unsLimitPage();
41
+ return (isset($_REQUEST['limit'])) ? intval($_REQUEST['limit']) : 9;
42
+ }// get_prod_count
43
+
44
+ function get_cur_page()
45
+ {
46
+ return (isset($_REQUEST['p'])) ? intval($_REQUEST['p']) : 1;
47
+ }// get_cur_page
48
+
49
+ function get_order()
50
+ {
51
+ return (isset($_REQUEST['order'])) ? ($_REQUEST['order']) : 'views';
52
+ }// get_order
53
+
54
+ function get_order_dir()
55
+ {
56
+ return (isset($_REQUEST['dir'])) ? ($_REQUEST['dir']) : 'desc';
57
+ }// get_direction
58
+ }
59
+
60
+ ?>
app/code/local/Dextrous/Extendcatalog/controllers/IndexController.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  class Dextrous_Extendcatalog_IndexController extends Mage_Core_Controller_Front_Action
4
  {
5
  public function indexAction()
@@ -9,82 +8,108 @@ class Dextrous_Extendcatalog_IndexController extends Mage_Core_Controller_Front_
9
  }
10
  public function bestsellersAction()
11
  {
12
-
13
- $url = Mage::getUrl('no-route');
14
-
15
- $enable = Mage::getStoreConfig('extendcatalog/config1/active');
16
  if($enable != 1)
17
  {
18
  Mage::app()->getFrontController()->getResponse()->setRedirect($url);
 
19
  }
20
- else
21
- {
22
  $this->loadLayout();
23
- $this->getLayout()->getBlock('head')->setTitle('Besesellers');
24
  $this->renderLayout();
25
- }
26
  }
27
  public function featuredAction()
28
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
- $url = Mage::getUrl('no-route');
31
-
32
- $enable = Mage::getStoreConfig('extendcatalog/config2/active');
33
  if($enable != 1)
34
  {
35
  Mage::app()->getFrontController()->getResponse()->setRedirect($url);
 
36
  }
37
 
 
38
  $this->loadLayout();
39
- $this->getLayout()->getBlock('head')->setTitle('Featured Products');
40
  $this->renderLayout();
41
  }
42
 
43
  public function newproductAction()
44
  {
45
-
46
- $url = Mage::getUrl('no-route');
47
-
48
- $enable = Mage::getStoreConfig('extendcatalog/config4/active');
 
49
  if($enable != 1)
50
  {
51
  Mage::app()->getFrontController()->getResponse()->setRedirect($url);
 
52
  }
53
-
54
  $this->loadLayout();
55
- $this->getLayout()->getBlock('head')->setTitle('New products');
56
  $this->renderLayout();
57
  }
58
 
59
  public function allproductAction()
60
  {
 
 
 
61
 
62
- $url = Mage::getUrl('no-route');
63
-
64
- $enable = Mage::getStoreConfig('extendcatalog/config5/active');
65
  if($enable != 1)
66
  {
67
  Mage::app()->getFrontController()->getResponse()->setRedirect($url);
 
68
  }
69
 
 
70
  $this->loadLayout();
71
- $this->getLayout()->getBlock('head')->setTitle('All products');
72
  $this->renderLayout();
73
  }
74
 
75
  public function recentlyorderedAction()
76
  {
77
-
78
- $url = Mage::getUrl('no-route');
79
-
80
- $enable = Mage::getStoreConfig('extendcatalog/config7/active');
 
81
  if($enable != 1)
82
  {
83
  Mage::app()->getFrontController()->getResponse()->setRedirect($url);
 
84
  }
85
-
86
  $this->loadLayout();
87
- $this->getLayout()->getBlock('head')->setTitle('Recently Ordered Products');
88
  $this->renderLayout();
89
  }
90
 
1
  <?php
 
2
  class Dextrous_Extendcatalog_IndexController extends Mage_Core_Controller_Front_Action
3
  {
4
  public function indexAction()
8
  }
9
  public function bestsellersAction()
10
  {
11
+ $url = Mage::getUrl('no-route');
12
+ $store = Mage::app()->getStore();
13
+ $code = $store->getCode();
14
+ $enable = Mage::getStoreConfig('extendcatalog/config1/active',$code);
15
  if($enable != 1)
16
  {
17
  Mage::app()->getFrontController()->getResponse()->setRedirect($url);
18
+ return;
19
  }
20
+ $title = Mage::getStoreConfig('extendcatalog/config1/title',$code);
 
21
  $this->loadLayout();
22
+ $this->getLayout()->getBlock('head')->setTitle($title);
23
  $this->renderLayout();
 
24
  }
25
  public function featuredAction()
26
  {
27
+ $url = Mage::getUrl('no-route');
28
+ $store = Mage::app()->getStore();
29
+ $code = $store->getCode();
30
+
31
+ $enable = Mage::getStoreConfig('extendcatalog/config2/active',$code);
32
+ if($enable != 1)
33
+ {
34
+ Mage::app()->getFrontController()->getResponse()->setRedirect($url);
35
+ return;
36
+ }
37
+ $title = Mage::getStoreConfig('extendcatalog/config2/title',$code);
38
+ $this->loadLayout();
39
+ $this->getLayout()->getBlock('head')->setTitle($title);
40
+ $this->renderLayout();
41
+ }
42
+ public function mostviewedAction()
43
+ {
44
+ $url = Mage::getUrl('no-route');
45
+ $store = Mage::app()->getStore();
46
+ $code = $store->getCode();
47
 
48
+ $enable = Mage::getStoreConfig('catalogextensions/config3/active',$code);
 
 
49
  if($enable != 1)
50
  {
51
  Mage::app()->getFrontController()->getResponse()->setRedirect($url);
52
+ return;
53
  }
54
 
55
+ $title = Mage::getStoreConfig('extendcatalog/config3/title',$code);
56
  $this->loadLayout();
57
+ $this->getLayout()->getBlock('head')->setTitle($title);
58
  $this->renderLayout();
59
  }
60
 
61
  public function newproductAction()
62
  {
63
+ $url = Mage::getUrl('no-route');
64
+ $store = Mage::app()->getStore();
65
+ $code = $store->getCode();
66
+
67
+ $enable = Mage::getStoreConfig('extendcatalog/config4/active',$code);
68
  if($enable != 1)
69
  {
70
  Mage::app()->getFrontController()->getResponse()->setRedirect($url);
71
+ return;
72
  }
73
+ $title = Mage::getStoreConfig('extendcatalog/config4/title',$code);
74
  $this->loadLayout();
75
+ $this->getLayout()->getBlock('head')->setTitle($title);
76
  $this->renderLayout();
77
  }
78
 
79
  public function allproductAction()
80
  {
81
+ $url = Mage::getUrl('no-route');
82
+ $store = Mage::app()->getStore();
83
+ $code = $store->getCode();
84
 
85
+ $enable = Mage::getStoreConfig('extendcatalog/config5/active',$code);
 
 
86
  if($enable != 1)
87
  {
88
  Mage::app()->getFrontController()->getResponse()->setRedirect($url);
89
+ return;
90
  }
91
 
92
+ $title = Mage::getStoreConfig('extendcatalog/config5/title',$code);
93
  $this->loadLayout();
94
+ $this->getLayout()->getBlock('head')->setTitle($title);
95
  $this->renderLayout();
96
  }
97
 
98
  public function recentlyorderedAction()
99
  {
100
+ $url = Mage::getUrl('no-route');
101
+ $store = Mage::app()->getStore();
102
+ $code = $store->getCode();
103
+
104
+ $enable = Mage::getStoreConfig('extendcatalog/config7/active',$code);
105
  if($enable != 1)
106
  {
107
  Mage::app()->getFrontController()->getResponse()->setRedirect($url);
108
+ return;
109
  }
110
+ $title = Mage::getStoreConfig('extendcatalog/config7/title',$code);
111
  $this->loadLayout();
112
+ $this->getLayout()->getBlock('head')->setTitle($title);
113
  $this->renderLayout();
114
  }
115
 
app/code/local/Dextrous/Extendcatalog/etc/config.xml CHANGED
@@ -142,11 +142,6 @@
142
  <active>0</active>
143
  <title>All Products</title>
144
  </config5>
145
- <config6>
146
- <active>0</active>
147
- <max_product>3</max_product>
148
- <title>Promotional Products</title>
149
- </config6>
150
  <config7>
151
  <active>0</active>
152
  <max_product>3</max_product>
142
  <active>0</active>
143
  <title>All Products</title>
144
  </config5>
 
 
 
 
 
145
  <config7>
146
  <active>0</active>
147
  <max_product>3</max_product>
app/code/local/Dextrous/Extendcatalog/etc/system.xml CHANGED
@@ -20,7 +20,7 @@
20
  <config1 translate="label" module="extendcatalog">
21
  <label>Topsellers Configuration</label>
22
  <frontend_type>text</frontend_type>
23
- <sort_order>10</sort_order>
24
  <show_in_default>1</show_in_default>
25
  <show_in_website>1</show_in_website>
26
  <show_in_store>1</show_in_store>
@@ -128,7 +128,7 @@
128
  <config4 translate="label" module="extendcatalog">
129
  <label>New Product Configuration</label>
130
  <frontend_type>text</frontend_type>
131
- <sort_order>40</sort_order>
132
  <show_in_default>1</show_in_default>
133
  <show_in_website>1</show_in_website>
134
  <show_in_store>1</show_in_store>
@@ -164,33 +164,6 @@
164
  <config5 translate="label" module="extendcatalog">
165
  <label>All Product Configuration</label>
166
  <frontend_type>text</frontend_type>
167
- <sort_order>50</sort_order>
168
- <show_in_default>1</show_in_default>
169
- <show_in_website>1</show_in_website>
170
- <show_in_store>1</show_in_store>
171
- <fields>
172
- <active translate="label">
173
- <label>Enabled</label>
174
- <frontend_type>select</frontend_type>
175
- <source_model>adminhtml/system_config_source_yesno</source_model>
176
- <sort_order>1</sort_order>
177
- <show_in_default>1</show_in_default>
178
- <show_in_website>1</show_in_website>
179
- <show_in_store>1</show_in_store>
180
- </active>
181
- <title translate="label" module="extendcatalog">
182
- <label>Title</label>
183
- <frontend_type>text</frontend_type>
184
- <sort_order>40</sort_order>
185
- <show_in_default>1</show_in_default>
186
- <show_in_website>1</show_in_website>
187
- <show_in_store>1</show_in_store>
188
- </title>
189
- </fields>
190
- </config5>
191
- <config6 translate="label" module="extendcatalog">
192
- <label>Promotional Product Configuration</label>
193
- <frontend_type>text</frontend_type>
194
  <sort_order>60</sort_order>
195
  <show_in_default>1</show_in_default>
196
  <show_in_website>1</show_in_website>
@@ -205,29 +178,20 @@
205
  <show_in_website>1</show_in_website>
206
  <show_in_store>1</show_in_store>
207
  </active>
208
- <max_product translate="label" module="extendcatalog">
209
- <label>Maximum No Of Products To Dispay On Home</label>
210
- <frontend_type>text</frontend_type>
211
- <validate>validate-greater-than-zero</validate>
212
- <sort_order>10</sort_order>
213
- <show_in_default>1</show_in_default>
214
- <show_in_website>1</show_in_website>
215
- <show_in_store>1</show_in_store>
216
- </max_product>
217
  <title translate="label" module="extendcatalog">
218
  <label>Title</label>
219
  <frontend_type>text</frontend_type>
220
- <sort_order>40</sort_order>
221
  <show_in_default>1</show_in_default>
222
  <show_in_website>1</show_in_website>
223
  <show_in_store>1</show_in_store>
224
  </title>
225
  </fields>
226
- </config6>
227
  <config7 translate="label" module="extendcatalog">
228
  <label>Recently Ordered Product Configuration</label>
229
  <frontend_type>text</frontend_type>
230
- <sort_order>70</sort_order>
231
  <show_in_default>1</show_in_default>
232
  <show_in_website>1</show_in_website>
233
  <show_in_store>1</show_in_store>
20
  <config1 translate="label" module="extendcatalog">
21
  <label>Topsellers Configuration</label>
22
  <frontend_type>text</frontend_type>
23
+ <sort_order>40</sort_order>
24
  <show_in_default>1</show_in_default>
25
  <show_in_website>1</show_in_website>
26
  <show_in_store>1</show_in_store>
128
  <config4 translate="label" module="extendcatalog">
129
  <label>New Product Configuration</label>
130
  <frontend_type>text</frontend_type>
131
+ <sort_order>10</sort_order>
132
  <show_in_default>1</show_in_default>
133
  <show_in_website>1</show_in_website>
134
  <show_in_store>1</show_in_store>
164
  <config5 translate="label" module="extendcatalog">
165
  <label>All Product Configuration</label>
166
  <frontend_type>text</frontend_type>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  <sort_order>60</sort_order>
168
  <show_in_default>1</show_in_default>
169
  <show_in_website>1</show_in_website>
178
  <show_in_website>1</show_in_website>
179
  <show_in_store>1</show_in_store>
180
  </active>
 
 
 
 
 
 
 
 
 
181
  <title translate="label" module="extendcatalog">
182
  <label>Title</label>
183
  <frontend_type>text</frontend_type>
184
+ <sort_order>50</sort_order>
185
  <show_in_default>1</show_in_default>
186
  <show_in_website>1</show_in_website>
187
  <show_in_store>1</show_in_store>
188
  </title>
189
  </fields>
190
+ </config5>
191
  <config7 translate="label" module="extendcatalog">
192
  <label>Recently Ordered Product Configuration</label>
193
  <frontend_type>text</frontend_type>
194
+ <sort_order>40</sort_order>
195
  <show_in_default>1</show_in_default>
196
  <show_in_website>1</show_in_website>
197
  <show_in_store>1</show_in_store>
app/design/frontend/default/default/layout/extendcatalog/extendcatalog.xml CHANGED
@@ -34,6 +34,17 @@
34
  </reference>
35
  </extendcatalog_index_newproduct>
36
 
 
 
 
 
 
 
 
 
 
 
 
37
  <extendcatalog_index_allproduct>
38
  <reference name="content">
39
  <block type="extendcatalog/allproducts_list" name="product_all_list" template="catalog/product/list.phtml">
34
  </reference>
35
  </extendcatalog_index_newproduct>
36
 
37
+ <extendcatalog_index_mostviewed>
38
+ <reference name="content">
39
+ <block type="extendcatalog/mostviewed_list" name="mostviewed_list" template="catalog/product/list.phtml" >
40
+ <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
41
+ <block type="page/html_pager" name="product_list_toolbar_pager" />
42
+ </block>
43
+ <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
44
+ </block>
45
+ </reference>
46
+ </extendcatalog_index_mostviewed>
47
+
48
  <extendcatalog_index_allproduct>
49
  <reference name="content">
50
  <block type="extendcatalog/allproducts_list" name="product_all_list" template="catalog/product/list.phtml">
app/design/frontend/default/default/template/extendcatalog/home_mostviewed.phtml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ $store = Mage::app()->getStore();
36
+ $code = $store->getCode();
37
+ $enable = Mage::getStoreConfig('extendcatalog/config3/active',$code);
38
+ ?>
39
+ <?php if($enable == 1) { ?>
40
+ <div class="maintitle">
41
+ <div class="titlemain"><?php echo Mage::getStoreConfig('extendcatalog/config3/title',$code); ?></div>
42
+ <div class="viewall"><a href="<?php echo $this->getUrl('extendcatalog/index/mostviewed'); ?>"><?php echo $this->__('View All') ?></a></div>
43
+ </div>
44
+ <?php echo $this->getLayout()->createBlock('extendcatalog/mostviewed_home_list')->setTemplate('catalog/product/list.phtml')->toHtml(); ?>
45
+ <?php } ?>
46
+
47
+
app/etc/modules/Dextrous_Extendcatalog.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Dextrous_Extendcatalog>
5
- <active>false</active>
6
  <codePool>local</codePool>
7
  </Dextrous_Extendcatalog>
8
  </modules>
2
  <config>
3
  <modules>
4
  <Dextrous_Extendcatalog>
5
+ <active>true</active>
6
  <codePool>local</codePool>
7
  </Dextrous_Extendcatalog>
8
  </modules>
package.xml CHANGED
@@ -1,48 +1,50 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Dextrous_Extendcatalog</name>
4
- <version>1.2.0</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Add Best Seller, Feature, New, Recently ordered &amp; All products to store.</summary>
10
- <description>Extend Catalog Extension&#xD;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  &#xD;
12
- Using this extension you can show Best Seller, New, Feature,Recently Ordered &amp; All Products blocks with limited number of products on the home page and also show the all products of that block by navigating the &#x201C;View All&#x201D; link. .&#xD;
 
 
 
 
13
  &#xD;
14
- By adding link of all products you can show all products of your website without filter of categories and subcategories&#xD;
15
- &#xD;
16
- Key Features:-&#xD;
17
- &#xD;
18
- Ability to Enable/Disable each block from admin configuration&#xD;
19
- Ability to specify the maximum number of products display on the home page for each block&#xD;
20
- Ability to specify the block title&#xD;
21
- Separate functionality for each block, so you can add required blocks only&#xD;
22
- Steps to configure the each block on the home page:-&#xD;
23
- &#xD;
24
- Go to admin pannel.&#xD;
25
- Open Home Page CMS Page&#xD;
26
- In Page Content section add below code&#xD;
27
- &#xD;
28
- To see Bestsellers products &#xD;
29
- {{block type="extendcatalog/bestsellers_home_list" name="bestsellers_list" template="extendcatalog/home_bestsellers.phtml"}}&#xD;
30
- To see Featured products &#xD;
31
- {{block type="extendcatalog/featured_home_list" name="featured_list" template="extendcatalog/home_featured.phtml"}} &#xD;
32
- In Default attribute set &gt;&gt; 'Is Featured' attributes is added. You need to select &#x201C;yes&#x201D; value to show product as feature product&#xD;
33
- To see Newproduct products &#xD;
34
- {{block type="extendcatalog/newproduct_home_list" name="newproduct_list" template="extendcatalog/home_newproduct.phtml"}}&#xD;
35
- &#xD;
36
- To see RecentlyOrdered products &#xD;
37
- {{block type="extendcatalog/lastordered_home_list" name="lastordered_home_list" template="extendcatalog/home_lastordered.phtml"}}&#xD;
38
- To see All products without any category filter &#xD;
39
- href=" echo $this-&gt;getUrl('extendcatalog/index/allproduct');" for All Products link&#xD;
40
- </description>
41
- <notes>Add Best Seller, Feature, New, Recently ordered &amp; All products to store.</notes>
42
  <authors><author><name>Hemant kumar sharma</name><user>hemantkr</user><email>hemant7677@gmail.com</email></author></authors>
43
- <date>2014-09-21</date>
44
- <time>01:42:07</time>
45
- <contents><target name="magelocal"><dir name="Dextrous"><dir name="Extendcatalog"><dir name="Block"><dir name="Allproducts"><file name="List.php" hash="b12a36e8a2bf14694201a147ca524347"/></dir><dir name="Bestsellers"><dir name="Home"><file name="List.php" hash="786a078fbf8e3007161ff464cd4bd761"/></dir><file name="List.php" hash="7e5d4e5d9b9e1bbf81f7b65d350506ae"/></dir><file name="Extendcatalog.php" hash="c0bf06bc165e2e8cf6a90470b6cbc7ec"/><dir name="Featured"><dir name="Home"><file name="List.php" hash="f49fbb9609107b11139b1d2f1e2f5361"/></dir><file name="List.php" hash="a655eaacbfcc01ced3b79a9fa5cf1b51"/></dir><dir name="Lastordered"><dir name="Home"><file name="List.php" hash="61789ccca7e8efa684661ce5c7c564fc"/></dir><file name="List.php" hash="eff760a92ac1f423953342ad866fb493"/></dir><dir name="Newproduct"><dir name="Home"><file name="List.php" hash="eaaaee9ae8fb528dc536430681acdd8a"/></dir><file name="List.php" hash="ceddd9b7f6d0cf40b04e14faff75d696"/></dir></dir><dir name="Helper"><file name="Data.php" hash="f72e8961bd95a9320e53381761c7c0e7"/></dir><dir name="Model"><file name="Extendcatalog.php" hash="ba8f1bf6d4ed9c2b2c2fe64e539ba48b"/><dir name="Mysql4"><dir name="Extendcatalog"><file name="Collection.php" hash="6c762ca94521405c953b4fccc08e326a"/></dir><file name="Extendcatalog.php" hash="155c09435a2dafe6c800b4a572c34474"/></dir><file name="Status.php" hash="4dc8da019815361aa692c6c7a68e8621"/></dir><dir name="controllers"><file name="IndexController.php" hash="bfb271edd23b1f1069ebcf7d4ba63c6f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f94e23f7fc9cd0065eeb42309a169f17"/><file name="config.xml" hash="5ac15001daa6b2818a7e21abcc2635be"/><file name="system.xml" hash="b0e961fb133cfacaf61eabaec6710159"/></dir><dir name="sql"><dir name="extendcatalog_setup"><file name="mysql4-install-0.1.0.php" hash="da1797c1b3d77ae8a140dfd894f139bb"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><dir name="extendcatalog"><file name="extendcatalog.xml" hash="31b7d8608e29e77e762df388eed08e53"/></dir></dir><dir name="template"><dir name="extendcatalog"><file name="home_bestsellers.phtml" hash="b94b315e9c74dd65f0836ae7cef2a452"/><file name="home_featured.phtml" hash="e2cb9493179335444b3728bc6881b5a5"/><file name="home_lastordered.phtml" hash="19f091332581acdf5622c4236ed31f19"/><file name="home_newproduct.phtml" hash="038ffa572f7f44661c63aac14942b812"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Dextrous_Extendcatalog.xml" hash="be360321705b86c3d6e22b47b5ea79c2"/></dir></target></contents>
46
  <compatible/>
47
- <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.9.0.1</max></package><extension><name>gd</name><min></min><max></max></extension></required></dependencies>
48
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Dextrous_Extendcatalog</name>
4
+ <version>1.2.1</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Add Top Seller Product, Featured Product, New Product , Recently ordered Product and All products to store.</summary>
10
+ <description>Extend Catalog Extension:&#xD;
11
+ - Using this extension you can show Top Seller Product, Featured Product, NewProduct , Recently ordered Product and All products blocks with limited number of products on the home page and also show the all products of that block by navigating the "View All" link.&#xD;
12
+ - By adding link of all products you can show all products of your store without filter of categories and subcategories.&#xD;
13
+ &#xD;
14
+ Key Features:&#xD;
15
+ - Ability to Enable/Disable each block from admin configuration.&#xD;
16
+ - Ability to specify the maximum number of products display on the home page for each block.&#xD;
17
+ - Ability to specify the block title.&#xD;
18
+ - Separate functionality for each block, so you can add required blocks only.&#xD;
19
+ &#xD;
20
+ Steps to configure the each block on the home page:&#xD;
21
+ - Go to admin pannel.&#xD;
22
+ - Navigate To CMS-&gt;Pages and select 'home' page.&#xD;
23
+ - Edit Page Content section add below code as per each block.&#xD;
24
+ &#xD;
25
+ To Show Newproduct products:&#xD;
26
+ {{block type="extendcatalog/newproduct_home_list" name="newproduct_list" template="extendcatalog/home_newproduct.phtml"}}&#xD;
27
+ &#xD;
28
+ To Show Featured products:&#xD;
29
+ {{block type="extendcatalog/featured_home_list" name="featured_list" template="extendcatalog/home_featured.phtml"}} &#xD;
30
+ - Also There 'featured' attribute label as 'Is Featured' is added to default attribute set, Now You need to to select value as 'yes' to show product in featured product's list.&#xD;
31
  &#xD;
32
+ To Show Most Viewed products:&#xD;
33
+ {{block type="extendcatalog/mostviewed_home_list" name="mostviewed_list" template="extendcatalog/home_mostviewed.phtml"}}&#xD;
34
+ &#xD;
35
+ To Show Top Sellers products:&#xD;
36
+ {{block type="extendcatalog/bestsellers_home_list" name="bestsellers_list" template="extendcatalog/home_bestsellers.phtml"}}&#xD;
37
  &#xD;
38
+ To Show RecentlyOrdered products:&#xD;
39
+ {{block type="extendcatalog/lastordered_home_list" name="lastordered_home_list" template="extendcatalog/home_lastordered.phtml"}}&#xD;
40
+ &#xD;
41
+ To Show All products without any category filter:&#xD;
42
+ - add link as &lt;a href="echo $this-&gt;getUrl('extendcatalog/index/allproduct');"&gt;All Products&lt;/a&gt;</description>
43
+ <notes>Added Most viewed product.</notes>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  <authors><author><name>Hemant kumar sharma</name><user>hemantkr</user><email>hemant7677@gmail.com</email></author></authors>
45
+ <date>2014-10-11</date>
46
+ <time>12:05:37</time>
47
+ <contents><target name="magelocal"><dir name="Dextrous"><dir name="Extendcatalog"><dir name="Block"><dir name="Allproducts"><file name="List.php" hash="b12a36e8a2bf14694201a147ca524347"/></dir><dir name="Bestsellers"><dir name="Home"><file name="List.php" hash="786a078fbf8e3007161ff464cd4bd761"/></dir><file name="List.php" hash="7e5d4e5d9b9e1bbf81f7b65d350506ae"/></dir><file name="Extendcatalog.php" hash="c0bf06bc165e2e8cf6a90470b6cbc7ec"/><dir name="Featured"><dir name="Home"><file name="List.php" hash="f49fbb9609107b11139b1d2f1e2f5361"/></dir><file name="List.php" hash="a655eaacbfcc01ced3b79a9fa5cf1b51"/></dir><dir name="Lastordered"><dir name="Home"><file name="List.php" hash="61789ccca7e8efa684661ce5c7c564fc"/></dir><file name="List.php" hash="eff760a92ac1f423953342ad866fb493"/></dir><dir name="Mostviewed"><dir name="Home"><file name="List.php" hash="d101e5ab57612fc58295a15b1219e66f"/></dir><file name="List.php" hash="1eeb8f09966af1daf86b40da8f6fa392"/></dir><dir name="Newproduct"><dir name="Home"><file name="List.php" hash="eaaaee9ae8fb528dc536430681acdd8a"/></dir><file name="List.php" hash="ceddd9b7f6d0cf40b04e14faff75d696"/></dir></dir><dir name="Helper"><file name="Data.php" hash="f72e8961bd95a9320e53381761c7c0e7"/></dir><dir name="Model"><file name="Extendcatalog.php" hash="ba8f1bf6d4ed9c2b2c2fe64e539ba48b"/><dir name="Mysql4"><dir name="Extendcatalog"><file name="Collection.php" hash="6c762ca94521405c953b4fccc08e326a"/></dir><file name="Extendcatalog.php" hash="155c09435a2dafe6c800b4a572c34474"/></dir><file name="Status.php" hash="4dc8da019815361aa692c6c7a68e8621"/></dir><dir name="controllers"><file name="IndexController.php" hash="c9c5c1f788eedc85cd003f355b47df22"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f94e23f7fc9cd0065eeb42309a169f17"/><file name="config.xml" hash="8f7153e79014d6c5d639b8634e35448f"/><file name="system.xml" hash="a0efd118edb56ef7b4795559b98ca947"/></dir><dir name="sql"><dir name="extendcatalog_setup"><file name="mysql4-install-0.1.0.php" hash="da1797c1b3d77ae8a140dfd894f139bb"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><dir name="extendcatalog"><file name="extendcatalog.xml" hash="f437da3c4b624699835b7d80ce17b15c"/></dir></dir><dir name="template"><dir name="extendcatalog"><file name="home_bestsellers.phtml" hash="b94b315e9c74dd65f0836ae7cef2a452"/><file name="home_featured.phtml" hash="e2cb9493179335444b3728bc6881b5a5"/><file name="home_lastordered.phtml" hash="19f091332581acdf5622c4236ed31f19"/><file name="home_mostviewed.phtml" hash="48b06ee9fb4b988ccdea2c42f982b7e2"/><file name="home_newproduct.phtml" hash="038ffa572f7f44661c63aac14942b812"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Dextrous_Extendcatalog.xml" hash="e9e5894cc9f6128514615b6df2c59406"/></dir></target></contents>
48
  <compatible/>
49
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
50
  </package>