magazento_mostpopular - Version 1.0.2

Version Notes

1.0.2

Download this release

Release Info

Developer Magento Core Team
Extension magazento_mostpopular
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/Magazento/Mostpopular/Block/Category.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Created on Mar 16, 2011
4
+ * Author Ivan Proskuryakov - volgodark@gmail.com - Magazento.com
5
+ * Copyright Proskuryakov Ivan. Magazento.com © 2011. All Rights Reserved.
6
+ * Single Use, Limited Licence and Single Use No Resale Licence ["Single Use"]
7
+ */
8
+ ?>
9
+ <?php
10
+
11
+ class Magazento_Mostpopular_Block_Category extends Mage_Catalog_Block_Product_Abstract {
12
+
13
+
14
+
15
+ protected function _beforeToHtml() {
16
+
17
+ $storeId = Mage::app()->getStore()->getId();
18
+ $collection = Mage::getResourceModel('reports/product_collection')
19
+ ->addAttributeToSelect('*')
20
+ ->setStoreId($storeId)
21
+ ->addStoreFilter($storeId)
22
+ ->addViewsCount()
23
+ ->setPageSize($this->getModel()->getCatProductsLimit())
24
+ ->setCurPage(1)
25
+ ->setOrder('views_count', 'desc');
26
+
27
+ Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
28
+ Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);
29
+
30
+ $c = Mage::registry("current_category");
31
+ $catId = $c->getData('entity_id');
32
+ if ($catId>0) {
33
+ $category = $this->getModel()->getCategory($catId);
34
+ $collection->addCategoryFilter($category);
35
+ }
36
+
37
+
38
+ $this->setProductCollection($collection);
39
+ return parent::_beforeToHtml();
40
+ }
41
+
42
+
43
+
44
+ public function getModel() {
45
+ return Mage::getModel('mostpopular/data');
46
+ }
47
+
48
+ }
49
+
app/code/community/Magazento/Mostpopular/Block/Developer.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Magazento_Mostpopular_Block_Developer extends Mage_Adminhtml_Block_System_Config_Form_Fieldset {
4
+
5
+ public function render(Varien_Data_Form_Element_Abstract $element) {
6
+ $content = '<p></p>';
7
+ $content.= '<style>
8
+ .developer {
9
+ background: #FAFAFA;
10
+ border: 1px solid #CCCCCC;
11
+ margin-bottom: 10px;
12
+ padding: 10px;
13
+ height: auto;
14
+ }
15
+
16
+ .developer h3 {
17
+ color: #444;
18
+ }
19
+
20
+ .contact-type {
21
+ color: #EA7601;
22
+ font-weight: bold;
23
+ }
24
+
25
+ .developer img {
26
+ float: left;
27
+ }
28
+
29
+ .developer .info {
30
+ background: #E7EFEF;
31
+ padding: 5px 10px 0 5px;
32
+ margin-left: 210px;
33
+ height: 195px;
34
+ }
35
+ </style>
36
+
37
+ <div class="developer">
38
+ <a href="http://www.magazento.com/english/magento-ext/magazento-extensions/navigation-menu-megamenu"
39
+ target="_blank"><img
40
+ src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'frontend/base/default/magazento/mostpopular/menu_box.jpg"
41
+ >
42
+ </a>
43
+
44
+ <div class="info">
45
+ <h3>MEGAMENU - Band new Magento navigation menu</h3>
46
+ <p>
47
+ Menu - is a key navigation element for customers on your website. It is particularly important that the menu would contain a maximum of all information,
48
+ namely that which is needed by your potential customers. Alas, based on analysis of user behavior on large portals, the attention of given only for the first
49
+ 10% - 20% of all categories of the store directories.<br>
50
+ The remaining elements are simply not visible to users and are not used. Store can increase profits by changing the sitemenu - users should see all items of your catalog products immediately.
51
+ </p>
52
+
53
+ <a href="http://www.magazento.com/english/magento-ext/magazento-extensions/navigation-menu-megamenu" target="_blank"><img src="http://magazento.com/promo/extension_page.png" alt=""></a>
54
+ <br>
55
+ </div>
56
+
57
+ </div>
58
+
59
+ <div class="developer">
60
+ <a href="http://www.magazento.com/english/magento-ext/magazento-extensions/magento-one-step-page-checkout"
61
+ target="_blank"><img
62
+ src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'frontend/base/default/magazento/mostpopular/logo_onecheckout.jpg"
63
+ >
64
+ </a>
65
+
66
+ <div class="info">
67
+ <h3>ONE STEP CHECKOUT</h3>
68
+ <p>
69
+ Complicated checkout process with many forms to fill in can make customers run away and increase cart abandonment. Magento One Step Checkout offers simplified checkout for your customers\' positive shopping experience. The module shortens the process into one single page. Logged in customers already have their information on the page; they need to make just a few clicks to confirm the order.
70
+ </p>
71
+
72
+ <a href="http://www.magazento.com/english/magento-ext/magazento-extensions/magento-one-step-page-checkout" target="_blank"><img src="http://magazento.com/promo/extension_page.png" alt=""></a>
73
+ <br>
74
+ </div>
75
+ </div>
76
+
77
+ <div class="developer">
78
+ <a href="http://www.magazento.com/english/magento-ext/magazento-extensions/pdf-export"
79
+ target="_blank"><img
80
+ src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'frontend/base/default/magazento/mostpopular/logo_pdf.jpg"
81
+ >
82
+ </a>
83
+
84
+ <div class="info">
85
+ <h3>PDF CATALOG</h3>
86
+ <p>
87
+ PDF CATALOG for Magento is a professional solution that lets you generate printable copy of all store products! It also lets your customers to generate PDF\'s of products and categories they view directly from your website without other 3rd party website or applications. All store products in PDF in few clicks!
88
+ </p>
89
+
90
+ <a href="http://www.magazento.com/english/magento-ext/magazento-extensions/pdf-export" target="_blank"><img src="http://magazento.com/promo/extension_page.png" alt=""></a>
91
+ <br>
92
+ </div>
93
+ </div>
94
+
95
+ <div class="developer">
96
+ <a href="http://www.magazento.com/english/magento-ext/magazento-extensions/extension-html-sitemap"
97
+ target="_blank"><img
98
+ src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'frontend/base/default/magazento/mostpopular/logo_sitemap.jpg"
99
+ >
100
+ </a>
101
+
102
+ <div class="info">
103
+ <h3>SITEMAP</h3>
104
+ <p>
105
+ With Sitemap you can easily create the site map page on your site with the clear hierarchical structure of all the products, categories and pages. Sure that such a page will be highly appreciated by those of your customers who would like not to spend a lot of time to find the product they are interested in. And the search spiders and crawlers will get through this magento sitemap the clear direction to all your site pages, no matter how numerous they are. Moreover, with Magento Html Sitemap extension you will receive the bundle of bright additional advantages making the google sitemap creation even easier and more convenient.
106
+ </p>
107
+
108
+ <a href="http://www.magazento.com/english/magento-ext/magazento-extensions/extension-html-sitemap" target="_blank"><img src="http://magazento.com/promo/extension_page.png" alt=""></a>
109
+ <br>
110
+ </div>
111
+ </div>'
112
+
113
+
114
+
115
+
116
+
117
+ ;
118
+
119
+ return $content;
120
+
121
+
122
+ }
123
+
124
+
125
+ }
app/code/community/Magazento/Mostpopular/Block/Home.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Created on Mar 16, 2011
4
+ * Author Ivan Proskuryakov - volgodark@gmail.com - Magazento.com
5
+ * Copyright Proskuryakov Ivan. Magazento.com © 2011. All Rights Reserved.
6
+ * Single Use, Limited Licence and Single Use No Resale Licence ["Single Use"]
7
+ */
8
+ ?>
9
+ <?php
10
+
11
+ class Magazento_Mostpopular_Block_Home extends Mage_Catalog_Block_Product_Abstract {
12
+
13
+
14
+
15
+
16
+ protected function _beforeToHtml() {
17
+
18
+ $storeId = Mage::app()->getStore()->getId();
19
+ $collection = Mage::getResourceModel('reports/product_collection')
20
+ ->addAttributeToSelect('*')
21
+ ->setStoreId($storeId)
22
+ ->addStoreFilter($storeId)
23
+ ->addViewsCount()
24
+ ->setPageSize($this->getModel()->getHomepageProductsLimit())
25
+ ->setCurPage(1)
26
+ ->setOrder('views_count', 'desc');
27
+
28
+ Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
29
+ Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);
30
+ $catId=$this->getModel()->getHomepageCatID();
31
+ if ($catId>0) {
32
+ $category = $this->getModel()->getCategory($catId);
33
+ $collection->addCategoryFilter($category);
34
+ }
35
+
36
+ // var_dump(count($collection));
37
+ $this->setProductCollection($collection);
38
+ return parent::_beforeToHtml();
39
+ }
40
+
41
+ public function getModel() {
42
+ return Mage::getModel('mostpopular/data');
43
+ }
44
+
45
+ }
46
+
app/code/community/Magazento/Mostpopular/Helper/Data.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Created on Mar 16, 2011
4
+ * Author Ivan Proskuryakov - volgodark@gmail.com - Magazento.com
5
+ * Copyright Proskuryakov Ivan. Magazento.com © 2011. All Rights Reserved.
6
+ * Single Use, Limited Licence and Single Use No Resale Licence ["Single Use"]
7
+ */
8
+ ?>
9
+ <?php
10
+
11
+ class Magazento_Mostpopular_Helper_Data extends Mage_Core_Helper_Abstract
12
+ {
13
+
14
+
15
+ }
app/code/community/Magazento/Mostpopular/Model/Data.php ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Created on Mar 16, 2011
4
+ * Author Ivan Proskuryakov - volgodark@gmail.com - Magazento.com
5
+ * Copyright Proskuryakov Ivan. Magazento.com © 2011. All Rights Reserved.
6
+ * Single Use, Limited Licence and Single Use No Resale Licence ["Single Use"]
7
+ */
8
+ ?>
9
+ <?php
10
+ Class Magazento_Mostpopular_Model_Data {
11
+
12
+
13
+ // public function getSellDate($days) {
14
+ // $product = Mage::getModel('catalog/product');
15
+ // $product=array();
16
+ //// $dateFormatIso = Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM);
17
+ //// $dateformat=Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
18
+ // $product['todaydate'] = date('Y-m-d H:i:s', time());
19
+ // $product['startdate'] = date('Y-m-d H:i:s', time() - 60 * 60 * 24 * $days);
20
+ // return $product;
21
+ //
22
+ // }
23
+ public function isExtensionEnabled() {
24
+ return Mage::getStoreConfig('mostpopular/options/enable');
25
+ }
26
+ public function isOutOfStock() {
27
+ return Mage::getStoreConfig('mostpopular/options/outofstock');
28
+ }
29
+ public function getTitle()
30
+ {
31
+ return Mage::getStoreConfig('mostpopular/options/blocktitle');
32
+ }
33
+ public function getNoProductsText()
34
+ {
35
+ return Mage::getStoreConfig('mostpopular/options/noproducttext');
36
+ }
37
+ public function getHomepageCatID()
38
+ {
39
+ return Mage::getStoreConfig('mostpopular/homepageoptions/homecat');
40
+ }
41
+
42
+
43
+
44
+ public function getCategory ($id){
45
+ $categoryId = $id;
46
+ if (!$categoryId || !is_numeric($categoryId))
47
+ $category = Mage::registry("current_category");
48
+ else {
49
+ $category = Mage::getModel("catalog/category")->load($categoryId);
50
+ if (!$category->getId())
51
+ $category = Mage::registry("current_category");
52
+ }
53
+ return $category;
54
+ }
55
+
56
+
57
+ public function getHomepageProductsLimit() {
58
+ $count = (int) Mage::getStoreConfig('mostpopular/homepageoptions/homecount');
59
+ if ($count <=0) $count=5;
60
+ return $count;
61
+ }
62
+ // public function getHomepageDaysLimit() {
63
+ // $count = (int) Mage::getStoreConfig('mostpopular/homepageoptions/homedays');
64
+ // if ($count <=0) $count=5;
65
+ // return $count;
66
+ // }
67
+
68
+
69
+ public function getCatProductsLimit() {
70
+ $count = (int) Mage::getStoreConfig('mostpopular/catpageoptions/catcount');
71
+ if ($count <=0) $count=5;
72
+ return $count;
73
+ }
74
+ // public function getCatDaysLimit() {
75
+ // $count = (int) Mage::getStoreConfig('mostpopular/catpageoptions/catdays');
76
+ // if ($count <=0) $count=5;
77
+ // return $count;
78
+ // }
79
+
80
+
81
+
82
+
83
+
84
+
85
+ }
app/code/community/Magazento/Mostpopular/etc/config.xml ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <config>
3
+ <modules>
4
+ <Magazento_Mostpopular>
5
+ <version>1.0.0</version>
6
+ </Magazento_Mostpopular>
7
+ </modules>
8
+ <frontend>
9
+ <layout>
10
+ <updates>
11
+ <mostpopular>
12
+ <file>magazento_mostpopular.xml</file>
13
+ </mostpopular>
14
+ </updates>
15
+ </layout>
16
+ <!-- <translate>
17
+ <modules>
18
+ <Magazento_Mostpopular>
19
+ <files>
20
+ <default>Magazento_Mostpopular.csv</default>
21
+ </files>
22
+ </Magazento_Mostpopular>
23
+ </modules>
24
+ </translate>-->
25
+ </frontend>
26
+
27
+ <global>
28
+ <models>
29
+ <mostpopular>
30
+ <class>Magazento_Mostpopular_Model</class>
31
+ <resourceModel>mostpopular_mysql4</resourceModel>
32
+ </mostpopular>
33
+ <mostpopular_mysql4>
34
+ <class>Magazento_Mostpopular_Model_Mysql4</class>
35
+ <entities>
36
+ <slide>
37
+ <table>magazento_mostpopular_slide</table>
38
+ </slide>
39
+ <slide_category>
40
+ <table>magazento_mostpopular_slide_category</table>
41
+ </slide_category>
42
+ <category>
43
+ <table>magazento_mostpopular_category</table>
44
+ </category>
45
+ <category_store>
46
+ <table>magazento_mostpopular_category_store</table>
47
+ </category_store>
48
+ </entities>
49
+ </mostpopular_mysql4>
50
+ </models>
51
+ <resources>
52
+ <mostpopular_setup>
53
+ <setup>
54
+ <module>Magazento_Mostpopular</module>
55
+ </setup>
56
+ <connection>
57
+ <use>core_setup</use>
58
+ </connection>
59
+ </mostpopular_setup>
60
+ <mostpopular_write>
61
+ <connection>
62
+ <use>core_write</use>
63
+ </connection>
64
+ </mostpopular_write>
65
+ <mostpopular_read>
66
+ <connection>
67
+ <use>core_read</use>
68
+ </connection>
69
+ </mostpopular_read>
70
+ </resources>
71
+ <blocks>
72
+ <mostpopular>
73
+ <class>Magazento_Mostpopular_Block</class>
74
+ </mostpopular>
75
+ </blocks>
76
+ <helpers>
77
+ <mostpopular>
78
+ <class>Magazento_Mostpopular_Helper</class>
79
+ </mostpopular>
80
+ </helpers>
81
+ </global>
82
+ <admin>
83
+ <routers>
84
+ <magazento_mostpopular>
85
+ <use>admin</use>
86
+ <args>
87
+ <module>Magazento_Mostpopular</module>
88
+ <frontName>mostpopular</frontName>
89
+ </args>
90
+ </magazento_mostpopular>
91
+ </routers>
92
+ </admin>
93
+ <adminhtml>
94
+ <acl>
95
+ <resources>
96
+ <admin>
97
+ <children>
98
+ <system>
99
+ <children>
100
+ <config>
101
+ <children>
102
+ <mostpopular translate="title" module="mostpopular">
103
+ <title>Mostpopular</title>
104
+ </mostpopular>
105
+ </children>
106
+ </config>
107
+ </children>
108
+ </system>
109
+ </children>
110
+ </admin>
111
+ </resources>
112
+ </acl>
113
+ <menu>
114
+ <magazento translate="title" module="mostpopular">
115
+ <title>Magazento</title>
116
+ <sort_order>65</sort_order>
117
+ <children>
118
+ <mostpopular translate="title" module="mostpopular">
119
+ <title>Mostpopular</title>
120
+ <sort_order>65</sort_order>
121
+ <children>
122
+ <settings translate="title" module="mostpopular">
123
+ <title>Settings</title>
124
+ <action>adminhtml/system_config/edit/section/mostpopular</action>
125
+ <sort_order>40</sort_order>
126
+ </settings>
127
+ </children>
128
+ </mostpopular>
129
+ </children>
130
+ </magazento>
131
+ </menu>
132
+ </adminhtml>
133
+ <default>
134
+ <mostpopular>
135
+ <options>
136
+ <enable>1</enable>
137
+ <blocktitle>MOSTPOPULAR</blocktitle>
138
+ <noproducttext> We have zero products now</noproducttext>
139
+ <salable>1</salable>
140
+ </options>
141
+ <homepageoptions>
142
+ <homecount>10</homecount>
143
+ <homedays>365</homedays>
144
+ <homecat>0</homecat>
145
+ <homesidebarleft>1</homesidebarleft>
146
+ <homesidebarright>2</homesidebarright>
147
+ <homeactions>1</homeactions>
148
+ <homeprice>1</homeprice>
149
+ </homepageoptions>
150
+ <catpageoptions>
151
+ <catcount>5</catcount>
152
+ <catdays>365</catdays>
153
+ <catsidebarleft>1</catsidebarleft>
154
+ <catsidebarright>2</catsidebarright>
155
+ <catactions>1</catactions>
156
+ <catprice>1</catprice>
157
+ </catpageoptions>
158
+ </mostpopular>
159
+ </default>
160
+ </config>
app/code/community/Magazento/Mostpopular/etc/system.xml ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <magazento translate="label">
5
+ <label>Magazento.com</label>
6
+ <sort_order>250</sort_order>
7
+ </magazento>
8
+ </tabs>
9
+ <sections>
10
+ <mostpopular translate="label" module="mostpopular">
11
+ <label>MostPopular(MostViewed)</label>
12
+ <tab>magazento</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>100</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <developer>
20
+ <frontend_model>mostpopular/developer</frontend_model>
21
+ <sort_order>999</sort_order>
22
+ <show_in_default>1</show_in_default>
23
+ <show_in_website>1</show_in_website>
24
+ <show_in_store>1</show_in_store>
25
+ </developer>
26
+ <options translate="label">
27
+ <label>Options</label>
28
+ <frontend_type>text</frontend_type>
29
+ <sort_order>1</sort_order>
30
+ <show_in_default>1</show_in_default>
31
+ <show_in_website>1</show_in_website>
32
+ <show_in_store>1</show_in_store>
33
+ <fields>
34
+ <enable translate="label">
35
+ <label>Enable</label>
36
+ <frontend_type>select</frontend_type>
37
+ <source_model>adminhtml/system_config_source_yesno</source_model>
38
+ <sort_order>11</sort_order>
39
+ <show_in_default>1</show_in_default>
40
+ <show_in_website>1</show_in_website>
41
+ <show_in_store>1</show_in_store>
42
+ </enable>
43
+ <blocktitle translate="label">
44
+ <label>Title</label>
45
+ <frontend_type>text</frontend_type>
46
+ <sort_order>12</sort_order>
47
+ <show_in_default>1</show_in_default>
48
+ <show_in_website>1</show_in_website>
49
+ <show_in_store>1</show_in_store>
50
+ </blocktitle>
51
+ <noproducttext translate="label">
52
+ <label>No product text</label>
53
+ <frontend_type>text</frontend_type>
54
+ <sort_order>13</sort_order>
55
+ <show_in_default>1</show_in_default>
56
+ <show_in_website>1</show_in_website>
57
+ <show_in_store>1</show_in_store>
58
+ </noproducttext>
59
+ <outofstock translate="label">
60
+ <label>Salable</label>
61
+ <frontend_type>select</frontend_type>
62
+ <source_model>adminhtml/system_config_source_yesno</source_model>
63
+ <comment>Display out of stock items from product collection</comment>
64
+ <sort_order>14</sort_order>
65
+ <show_in_default>1</show_in_default>
66
+ <show_in_website>1</show_in_website>
67
+ <show_in_store>1</show_in_store>
68
+ </outofstock>
69
+ </fields>
70
+ </options>
71
+ <homepageoptions translate="label">
72
+ <label>Homepage</label>
73
+ <frontend_type>text</frontend_type>
74
+ <sort_order>2</sort_order>
75
+ <show_in_default>1</show_in_default>
76
+ <show_in_website>1</show_in_website>
77
+ <show_in_store>1</show_in_store>
78
+ <fields>
79
+ <homecount translate="label">
80
+ <label>Products count</label>
81
+ <frontend_type>text</frontend_type>
82
+ <sort_order>51</sort_order>
83
+ <show_in_default>1</show_in_default>
84
+ <show_in_website>1</show_in_website>
85
+ <show_in_store>1</show_in_store>
86
+ </homecount>
87
+ <!-- <homedays translate="label">
88
+ <label>Topseller for * days</label>
89
+ <frontend_type>text</frontend_type>
90
+ <sort_order>52</sort_order>
91
+ <show_in_default>1</show_in_default>
92
+ <show_in_website>1</show_in_website>
93
+ <show_in_store>1</show_in_store>
94
+ </homedays>-->
95
+ <homecat translate="label">
96
+ <label>Category ID</label>
97
+ <frontend_type>text</frontend_type>
98
+ <comment>type "0" for all categories</comment>
99
+ <sort_order>53</sort_order>
100
+ <show_in_default>1</show_in_default>
101
+ <show_in_website>1</show_in_website>
102
+ <show_in_store>1</show_in_store>
103
+ </homecat>
104
+ <homesidebarleft translate="label">
105
+ <label>Left Sidebar</label>
106
+ <frontend_type>select</frontend_type>
107
+ <source_model>adminhtml/system_config_source_yesno</source_model>
108
+ <sort_order>58</sort_order>
109
+ <show_in_default>1</show_in_default>
110
+ <show_in_website>1</show_in_website>
111
+ <show_in_store>1</show_in_store>
112
+ </homesidebarleft>
113
+ <homesidebarright translate="label">
114
+ <label>Right Sidebar</label>
115
+ <frontend_type>select</frontend_type>
116
+ <source_model>adminhtml/system_config_source_yesno</source_model>
117
+ <sort_order>59</sort_order>
118
+ <show_in_default>1</show_in_default>
119
+ <show_in_website>1</show_in_website>
120
+ <show_in_store>1</show_in_store>
121
+ </homesidebarright>
122
+ <homeprice translate="label">
123
+ <label>Display price</label>
124
+ <frontend_type>select</frontend_type>
125
+ <source_model>adminhtml/system_config_source_yesno</source_model>
126
+ <sort_order>56</sort_order>
127
+ <show_in_default>1</show_in_default>
128
+ <show_in_website>1</show_in_website>
129
+ <show_in_store>1</show_in_store>
130
+ </homeprice>
131
+ <homeactions translate="label">
132
+ <label>Display actions</label>
133
+ <frontend_type>select</frontend_type>
134
+ <source_model>adminhtml/system_config_source_yesno</source_model>
135
+ <sort_order>57</sort_order>
136
+ <show_in_default>1</show_in_default>
137
+ <show_in_website>1</show_in_website>
138
+ <show_in_store>1</show_in_store>
139
+ </homeactions>
140
+ </fields>
141
+ </homepageoptions>
142
+ <catpageoptions translate="label">
143
+ <label>Categories</label>
144
+ <frontend_type>text</frontend_type>
145
+ <sort_order>3</sort_order>
146
+ <show_in_default>1</show_in_default>
147
+ <show_in_website>1</show_in_website>
148
+ <show_in_store>1</show_in_store>
149
+ <fields>
150
+ <catcount translate="label">
151
+ <label>Products count</label>
152
+ <frontend_type>text</frontend_type>
153
+ <sort_order>61</sort_order>
154
+ <show_in_default>1</show_in_default>
155
+ <show_in_website>1</show_in_website>
156
+ <show_in_store>1</show_in_store>
157
+ </catcount>
158
+ <!-- <catdays translate="label">
159
+ <label>Topseller for * days</label>
160
+ <frontend_type>text</frontend_type>
161
+ <sort_order>62</sort_order>
162
+ <show_in_default>1</show_in_default>
163
+ <show_in_website>1</show_in_website>
164
+ <show_in_store>1</show_in_store>
165
+ </catdays>-->
166
+ <catsidebarleft translate="label">
167
+ <label>Left Sidebar</label>
168
+ <frontend_type>select</frontend_type>
169
+ <source_model>adminhtml/system_config_source_yesno</source_model>
170
+ <sort_order>68</sort_order>
171
+ <show_in_default>1</show_in_default>
172
+ <show_in_website>1</show_in_website>
173
+ <show_in_store>1</show_in_store>
174
+ </catsidebarleft>
175
+ <catsidebarright translate="label">
176
+ <label>Right Sidebar</label>
177
+ <frontend_type>select</frontend_type>
178
+ <source_model>adminhtml/system_config_source_yesno</source_model>
179
+ <sort_order>69</sort_order>
180
+ <show_in_default>1</show_in_default>
181
+ <show_in_website>1</show_in_website>
182
+ <show_in_store>1</show_in_store>
183
+ </catsidebarright>
184
+ <catprice translate="label">
185
+ <label>Display price</label>
186
+ <frontend_type>select</frontend_type>
187
+ <source_model>adminhtml/system_config_source_yesno</source_model>
188
+ <sort_order>65</sort_order>
189
+ <show_in_default>1</show_in_default>
190
+ <show_in_website>1</show_in_website>
191
+ <show_in_store>1</show_in_store>
192
+ </catprice>
193
+ <catactions translate="label">
194
+ <label>Display actions</label>
195
+ <frontend_type>select</frontend_type>
196
+ <source_model>adminhtml/system_config_source_yesno</source_model>
197
+ <sort_order>66</sort_order>
198
+ <show_in_default>1</show_in_default>
199
+ <show_in_website>1</show_in_website>
200
+ <show_in_store>1</show_in_store>
201
+ </catactions>
202
+ </fields>
203
+ </catpageoptions>
204
+ </groups>
205
+ </mostpopular>
206
+ </sections>
207
+ </config>
app/design/frontend/base/default/layout/magazento_mostpopular.xml CHANGED
@@ -64,7 +64,7 @@
64
 
65
  <default>
66
  <reference name="before_body_end">
67
- <block type="core/template" template="credits/magazento.phtml" />
68
  </reference>
69
  </default>
70
 
64
 
65
  <default>
66
  <reference name="before_body_end">
67
+ <block type="core/template" template="magazento/mostpopular/magazento.phtml" />
68
  </reference>
69
  </default>
70
 
app/design/frontend/base/default/template/magazento/mostpopular/category_left.phtml ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if ((Mage::getStoreConfig('mostpopular/options/enable')) && (Mage::getStoreConfig('mostpopular/catpageoptions/catsidebarleft'))):?>
2
+
3
+ <div class="block block-mostpopular">
4
+ <div class="block-title title-topseller">
5
+ <span><?php echo $this->getModel()->getTitle() ?></span>
6
+ </div>
7
+ <div class="block-content">
8
+ <?php $_products = $this->getProductCollection(); ?>
9
+ <?php if (sizeof($_products)): ?>
10
+ <ol class="mini-products-list" id="bestseller-sidebar">
11
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
12
+ <?php $i++; ?>
13
+ <?php if ($_product->getData('is_salable')): ?>
14
+ <li class="item<?php if($i==sizeof($_products) ): ?> last<?php endif; ?>">
15
+ <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(50); ?>" width="50" height="50" alt="" /></a>
16
+ <div class="product-details">
17
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
18
+ <?php if (Mage::getStoreConfig('mostpopular/catpageoptions/catprice')):?>
19
+ <?php echo $this->getPriceHtml($_product, true) ?>
20
+ <?php endif; ?>
21
+ <?php if (Mage::getStoreConfig('mostpopular/catpageoptions/catactions')):?>
22
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
23
+ <?php endif; ?>
24
+ </div>
25
+ </li>
26
+ <?php else: ?>
27
+ <?php if($this->getModel()->isOutOfStock()): ?>
28
+ <li class="item">
29
+ <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(50); ?>" width="50" height="50" alt="" /></a>
30
+ <div class="product-details">
31
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
32
+ <?php if (Mage::getStoreConfig('mostpopular/catpageoptions/catprice')):?>
33
+ <?php echo $this->getPriceHtml($_product, true) ?>
34
+ <?php endif; ?>
35
+ <p class="availability out-of-stock"><span>Out of stock</span></p>
36
+ </div>
37
+ </li>
38
+ <?php endif; ?>
39
+
40
+ <?php endif; ?>
41
+ <?php endforeach; ?>
42
+ </ol>
43
+
44
+ <?php else: ?>
45
+ <ol id="bestseller-sidebar" class="mini-products-list">
46
+ <li class="item odd">
47
+ <?php echo $this->getModel()->getNoProductsText(); ?>
48
+ </li>
49
+ </ol>
50
+ <?php endif; ?>
51
+ </div>
52
+ </div>
53
+
54
+
55
+
56
+ <?php endif; ?>
app/design/frontend/base/default/template/magazento/mostpopular/category_right.phtml ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if ((Mage::getStoreConfig('mostpopular/options/enable')) && (Mage::getStoreConfig('mostpopular/catpageoptions/catsidebarright'))):?>
2
+
3
+ <div class="block block-mostpopular">
4
+ <div class="block-title title-topseller">
5
+ <span><?php echo $this->getModel()->getTitle() ?></span>
6
+ </div>
7
+ <div class="block-content">
8
+ <?php $_products = $this->getProductCollection(); ?>
9
+ <?php if (sizeof($_products)): ?>
10
+ <ol class="mini-products-list" id="bestseller-sidebar">
11
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
12
+ <?php $i++; ?>
13
+ <?php if ($_product->getData('is_salable')): ?>
14
+ <li class="item<?php if($i==sizeof($_products) ): ?> last<?php endif; ?>">
15
+ <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(50); ?>" width="50" height="50" alt="" /></a>
16
+ <div class="product-details">
17
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
18
+ <?php if (Mage::getStoreConfig('mostpopular/catpageoptions/catprice')):?>
19
+ <?php echo $this->getPriceHtml($_product, true) ?>
20
+ <?php endif; ?>
21
+ <?php if (Mage::getStoreConfig('mostpopular/catpageoptions/catactions')):?>
22
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
23
+ <?php endif; ?>
24
+ </div>
25
+ </li>
26
+ <?php else: ?>
27
+ <?php if($this->getModel()->isOutOfStock()): ?>
28
+ <li class="item">
29
+ <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(50); ?>" width="50" height="50" alt="" /></a>
30
+ <div class="product-details">
31
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
32
+ <?php if (Mage::getStoreConfig('mostpopular/catpageoptions/catprice')):?>
33
+ <?php echo $this->getPriceHtml($_product, true) ?>
34
+ <?php endif; ?>
35
+ <p class="availability out-of-stock"><span>Out of stock</span></p>
36
+ </div>
37
+ </li>
38
+ <?php endif; ?>
39
+
40
+ <?php endif; ?>
41
+ <?php endforeach; ?>
42
+ </ol>
43
+
44
+ <?php else: ?>
45
+ <ol id="bestseller-sidebar" class="mini-products-list">
46
+ <li class="item odd">
47
+ <?php echo $this->getModel()->getNoProductsText(); ?>
48
+ </li>
49
+ </ol>
50
+ <?php endif; ?>
51
+ </div>
52
+ </div>
53
+
54
+
55
+
56
+ <?php endif; ?>
app/design/frontend/base/default/template/magazento/mostpopular/home_left.phtml ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if ((Mage::getStoreConfig('mostpopular/options/enable')) && (Mage::getStoreConfig('mostpopular/homepageoptions/homesidebarleft'))):?>
2
+
3
+ <div class="block block-mostpopular">
4
+ <div class="block-title title-topseller">
5
+ <span><?php echo $this->getModel()->getTitle() ?></span>
6
+ </div>
7
+ <div class="block-content">
8
+ <?php $_products = $this->getProductCollection(); ?>
9
+ <?php if (sizeof($_products)): ?>
10
+ <ol class="mini-products-list" id="bestseller-sidebar">
11
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
12
+ <?php $i++; ?>
13
+ <?php if ($_product->getData('is_salable')): ?>
14
+ <li class="item<?php if($i==sizeof($_products) ): ?> last<?php endif; ?>">
15
+ <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(50); ?>" width="50" height="50" alt="" /></a>
16
+ <div class="product-details">
17
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
18
+ <?php if (Mage::getStoreConfig('mostpopular/homepageoptions/homeprice')):?>
19
+ <?php echo $this->getPriceHtml($_product, true) ?>
20
+ <?php endif; ?>
21
+ <?php if (Mage::getStoreConfig('mostpopular/homepageoptions/homeactions')):?>
22
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
23
+ <?php endif; ?>
24
+ </div>
25
+ </li>
26
+ <?php else: ?>
27
+ <?php if($this->getModel()->isOutOfStock()): ?>
28
+ <li class="item">
29
+ <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(50); ?>" width="50" height="50" alt="" /></a>
30
+ <div class="product-details">
31
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
32
+ <?php if (Mage::getStoreConfig('mostpopular/homepageoptions/homeprice')):?>
33
+ <?php echo $this->getPriceHtml($_product, true) ?>
34
+ <?php endif; ?>
35
+ <p class="availability out-of-stock"><span>Out of stock</span></p>
36
+ </div>
37
+ </li>
38
+ <?php endif; ?>
39
+
40
+ <?php endif; ?>
41
+ <?php endforeach; ?>
42
+ </ol>
43
+
44
+ <?php else: ?>
45
+ <ol id="bestseller-sidebar" class="mini-products-list">
46
+ <li class="item odd">
47
+ <?php echo $this->getModel()->getNoProductsText(); ?>
48
+ </li>
49
+ </ol>
50
+ <?php endif; ?>
51
+ </div>
52
+ </div>
53
+
54
+
55
+
56
+ <?php endif; ?>
app/design/frontend/base/default/template/magazento/mostpopular/home_right.phtml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if ((Mage::getStoreConfig('mostpopular/options/enable')) && (Mage::getStoreConfig('mostpopular/homepageoptions/homesidebarright'))):?>
2
+
3
+ <div class="block block-mostpopular">
4
+ <div class="block-title title-topseller">
5
+ <span><?php echo $this->getModel()->getTitle() ?></span>
6
+ </div>
7
+ <div class="block-content">
8
+ <?php $_products = $this->getProductCollection(); ?>
9
+ <?php if (sizeof($_products)): ?>
10
+ <ol class="mini-products-list" id="bestseller-sidebar">
11
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
12
+ <?php $i++; ?>
13
+ <?php if ($_product->getData('is_salable')): ?>
14
+ <li class="item<?php if($i==sizeof($_products) ): ?> last<?php endif; ?>">
15
+ <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(50); ?>" width="50" height="50" alt="" /></a>
16
+ <div class="product-details">
17
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
18
+ <?php if (Mage::getStoreConfig('mostpopular/homepageoptions/homeprice')):?>
19
+ <?php echo $this->getPriceHtml($_product, true) ?>
20
+ <?php endif; ?>
21
+ <?php if (Mage::getStoreConfig('mostpopular/homepageoptions/homeactions')):?>
22
+ <a class="link-cart" href="<?php echo $this->getAddToCartUrl($_product) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Add to Cart') ?></a>
23
+ <?php endif; ?>
24
+ </div>
25
+ </li>
26
+ <?php else: ?>
27
+ <?php if($this->getModel()->isOutOfStock()): ?>
28
+ <li class="item">
29
+ <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(50); ?>" width="50" height="50" alt="" /></a>
30
+ <div class="product-details">
31
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_product) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
32
+ <?php if (Mage::getStoreConfig('mostpopular/homepageoptions/homeprice')):?>
33
+ <?php echo $this->getPriceHtml($_product, true) ?>
34
+ <?php endif; ?>
35
+ <p class="availability out-of-stock"><span>Out of stock</span></p>
36
+ </div>
37
+ </li>
38
+ <?php endif; ?>
39
+
40
+ <?php endif; ?>
41
+ <?php endforeach; ?>
42
+ </ol>
43
+
44
+ <?php else: ?>
45
+ <ol id="bestseller-sidebar" class="mini-products-list">
46
+ <li class="item odd">
47
+ <?php echo $this->getModel()->getNoProductsText(); ?>
48
+ </li>
49
+ </ol>
50
+ <?php endif; ?>
51
+ </div>
52
+ </div>
53
+
54
+ <?php endif; ?>
app/design/frontend/base/default/template/magazento/mostpopular/magazento.phtml ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <p class="magazento-powered">Powered by <a href="http://www.magazento.com/english/magento-ext/magazento-extensions" target="_blank">Magento extensions</a> - <a href="http://www.magazento.com/english/magento-ext/magazento-extensions/magento-one-step-page-checkout" target="_blank">Magento modules</a></p>
2
+ <!--
3
+ <p style="text-align:center;font-size:0.8em"><a style="color:inherit;text-decoration:none" href="http://www.emthemes.com/free-magento-extensions/em-flexible-products-widget.html">Magento Flexible Products Widget</a> by EMThemes <a style="color:inherit;text-decoration:none" href="http://www.emthemes.com/">Magento Themes</a> &amp; <a style="color:inherit;text-decoration:none" href="http://www.emthemes.com/">Magento Templates</a></p>-->
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>magazento_mostpopular</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Most-viewed products in sidebars. Magento 1.4+ and configurable products support.</summary>
10
  <description>Most-viewed products in sidebars. Magento 1.4+ and configurable products support.</description>
11
- <notes>1.0.1</notes>
12
  <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
13
- <date>2012-07-27</date>
14
- <time>12:53:00</time>
15
- <contents><target name="magecommunity"><dir name="Magazento"><file name="Mostpopular" hash=""/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="magazento"><file name="mostpopular" hash=""/><file name="credits" hash=""/></dir></dir><dir name="layout"><file name="magazento_mostpopular.xml" hash="b2fcecd827c8ec402962f080ad1e4937"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Mostpopular.xml" hash="103d39be33285a6c139f1821897da9a1"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magazento"><file name="mostpopular" hash=""/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>magazento_mostpopular</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Most-viewed products in sidebars. Magento 1.4+ and configurable products support.</summary>
10
  <description>Most-viewed products in sidebars. Magento 1.4+ and configurable products support.</description>
11
+ <notes>1.0.2</notes>
12
  <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
13
+ <date>2012-08-01</date>
14
+ <time>09:40:56</time>
15
+ <contents><target name="magecommunity"><dir name="Magazento"><dir name="Mostpopular"><dir name="Block"><file name="Category.php" hash="0b354950125a74785dcfd70cb8a4a1a2"/><file name="Developer.php" hash="0060db475efbf5c7f8ff7b6ded82f610"/><file name="Home.php" hash="1defd5b11d7210712b9895c65043c43b"/></dir><dir name="Helper"><file name="Data.php" hash="266c830ec2e843a5b4d4cfde6bc4f998"/></dir><dir name="Model"><file name="Data.php" hash="0f1b7815894184c1bb576b82f88c9d4e"/></dir><dir name="etc"><file name="config.xml" hash="2d5e023bf3354ad1f0c7b1a7dc5c671f"/><file name="system.xml" hash="8cd6ebc23d619f13e87b0adbb9940f98"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="magazento"><dir name="mostpopular"><file name="category_left.phtml" hash="4356850a1008afc77461d7a4a227ee34"/><file name="category_right.phtml" hash="9300debb13101c3ee1f01c4b152a24d1"/><file name="home_left.phtml" hash="7a6671bc0e33fc1830f674bad68beb96"/><file name="home_right.phtml" hash="a13026be00a88fe0a099e94de62daa0c"/><file name="magazento.phtml" hash="3db10ac0c7f256a67b63a4917947e322"/></dir></dir></dir><dir name="layout"><file name="magazento_mostpopular.xml" hash="af4ce20ed55cb38589183f72d4832204"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Mostpopular.xml" hash="103d39be33285a6c139f1821897da9a1"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magazento"><dir name="mostpopular"><file name="logo_onecheckout.jpg" hash="cf71a3d20cf06abaf99521651c2fe3d1"/><file name="logo_pdf.jpg" hash="5a0d745372115da1d61168e2529c0c0d"/><file name="logo_sitemap.jpg" hash="937495eec93cb1640b6244bff4cb31a2"/><file name="menu_box.jpg" hash="e76e4c6b62b096ca87175eb0f5270062"/><file name="promo.jpg" hash="88520d456df68c98130433b5184b8e7f"/><file name="style.css" hash="c7e7107bc471cab84bed96e639766917"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
skin/frontend/base/default/magazento/mostpopular/logo_onecheckout.jpg ADDED
Binary file
skin/frontend/base/default/magazento/mostpopular/logo_pdf.jpg ADDED
Binary file
skin/frontend/base/default/magazento/mostpopular/logo_sitemap.jpg ADDED
Binary file
skin/frontend/base/default/magazento/mostpopular/menu_box.jpg ADDED
Binary file
skin/frontend/base/default/magazento/mostpopular/promo.jpg ADDED
Binary file
skin/frontend/base/default/magazento/mostpopular/style.css ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .block-mostpopular .block-title span {
2
+ color: #FFFFFF;
3
+ font: bold 12px/2em Arial,Helvetica,sans-serif;
4
+ padding: 12px 0 3px 10px;
5
+ text-transform: uppercase;
6
+ }
7
+ .block-mostpopular {
8
+ -moz-box-shadow: 2px 2px 11px #696969;
9
+ border: 1px solid #CACACA;
10
+ color: #333333;
11
+ font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
12
+ font-size: 10px;
13
+ margin: 0 0 15px;
14
+ }
15
+ .block-mostpopular .block-title {
16
+ background: none repeat scroll 0 0 #AF1D1D;
17
+ border-bottom: 1px solid #CACACA;
18
+ height: 25px;
19
+ overflow: hidden;
20
+ }
21
+ .block-mostpopular .block-title span {
22
+ color: #FFFFFF;
23
+ font: bold 12px/2em Arial,Helvetica,sans-serif;
24
+ padding: 12px 0 3px 10px;
25
+ text-transform: uppercase;
26
+ }
27
+ .block-mostpopular .block-content {
28
+ background: none repeat scroll 0 0 #FFFFFF;
29
+ }
30
+
31
+ .block-mostpopular ul, .block-mostpopular ol {
32
+ list-style: none outside none;
33
+ }
34
+ .block-mostpopular .block .block-content li.item {
35
+ padding: 7px 9px;
36
+ }
37
+ .block-mostpopular .mini-products-list .product-image {
38
+ border: 1px solid #A9A9A9;
39
+ float: left;
40
+ width: 50px;
41
+ }
42
+ .block-mostpopular a {
43
+ color: #1E7EC8;
44
+ text-decoration: underline;
45
+ }
46
+ .block-mostpopular .mini-products-list .product-details {
47
+ margin-left: 60px;
48
+ }
49
+
50
+ .block-mostpopular .block .block-content .product-name {
51
+ color: #1E7EC8;
52
+ }
53
+ .block-mostpopular .product-name {
54
+ font-size: 1em;
55
+ font-weight: normal;
56
+ margin: 0;
57
+ }
58
+ .block-mostpopular .price-box {
59
+ margin: 5px 0;
60
+ }
61
+ .block-mostpopular .link-cart {
62
+ color: #DC6809 !important;
63
+ font-weight: bold;
64
+ }
65
+ .block-mostpopular .availability.out-of-stock span {
66
+ color: #D83820;
67
+ }
68
+ .block-mostpopular .availability span {
69
+ font-weight: bold;
70
+ }
71
+
72
+ .magazento-powered, .magazento-powered a {
73
+ color: #888;
74
+ font-size: 9px;
75
+ text-align: right;
76
+ text-decoration: none;
77
+ margin: 0;
78
+ }