Vishwasnature_Productlink - Version 0.1.3

Version Notes

To Edit Product when add product to category in 'Category Products' tab.

Download this release

Release Info

Developer Magento Core Team
Extension Vishwasnature_Productlink
Version 0.1.3
Comparing to
See all releases


Code changes from version 0.1.2 to 0.1.3

app/code/community/Vishwasnature/Quickdetail/Helper/Data.php DELETED
@@ -1,67 +0,0 @@
1
- <?php
2
-
3
- class Vishwasnature_Quickdetail_Helper_Data extends Mage_Core_Helper_Abstract {
4
-
5
- public function getProductAttributes() {
6
- $shownAttribute = Mage::getStoreConfig('quickdetail/viewsettings/specificdetail', Mage::app()->getStore());
7
- $sortOrders = $this->getSortOrder();
8
- $attributeArray = explode(',', $shownAttribute);
9
- if ($sortOrders) {
10
- $particularAtrribute = explode(',', $sortOrders);
11
- foreach ($particularAtrribute as $attr) {
12
- $sortedInfo = explode(':', $attr);
13
- $sortedAttribute[$sortedInfo[1]] = $sortedInfo[0];
14
- }
15
- ksort($sortedAttribute);
16
- $attributeArray = array_diff($attributeArray, $sortedAttribute);
17
- $sortedAttribute = array_merge($sortedAttribute, $attributeArray);
18
- return $sortedAttribute;
19
- } else {
20
- return $attributeArray;
21
- }
22
- }
23
-
24
- public function getHeaderColor() {
25
- return Mage::getStoreConfig('quickdetail/viewsettings/uni_pickcolor', Mage::app()->getStore());
26
- }
27
-
28
- public function getBackgroundColor() {
29
- return Mage::getStoreConfig('quickdetail/viewsettings/background_color', Mage::app()->getStore());
30
- }
31
-
32
- public function getPopupStyle() {
33
- $popupwidth = Mage::getStoreConfig('quickdetail/viewsettings/width', Mage::app()->getStore());
34
- $popupheight = Mage::getStoreConfig('quickdetail/viewsettings/height', Mage::app()->getStore());
35
- $style = '';
36
- if ($popupwidth) {
37
- $style .= 'width:' . $popupwidth . ($popupwidth == 'auto' ? '' : 'px;');
38
- }
39
- if ($popupheight) {
40
- $style .= 'height:' . $popupheight . ($popupheight == 'auto' ? '' : 'px;');
41
- }
42
-
43
- if ($style) {
44
- $style = 'style="' . $style . '"';
45
- }
46
- return $style;
47
- }
48
-
49
- public function getSortOrder() {
50
- return Mage::getStoreConfig('quickdetail/viewsettings/sort_orders', Mage::app()->getStore());
51
- }
52
-
53
- public function getAllCollectionWithDesign() {
54
- $allAttributeWithDesign = array();
55
- $productAttributesCollection = $this->getProductAttributes();
56
- $headercolor = $this->getHeaderColor();
57
- $backgorundColor = $this->getBackgroundColor();
58
- $popupStyle = $this->getPopupStyle();
59
- $collectionAttribute = $productAttributesCollection;
60
- $allAttributeWithDesign ['collectionAttribute'] = $collectionAttribute;
61
- $allAttributeWithDesign ['popupStyle'] = $popupStyle;
62
- $allAttributeWithDesign ['backgorundColor'] = $backgorundColor;
63
- $allAttributeWithDesign ['headercolor'] = $headercolor;
64
- return $allAttributeWithDesign;
65
- }
66
-
67
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Vishwasnature/Quickdetail/Model/Attributes.php DELETED
@@ -1,19 +0,0 @@
1
- <?php
2
-
3
- class Vishwasnature_Quickdetail_Model_Attributes
4
- {
5
- protected $_options;
6
-
7
- public function toOptionArray()
8
- {
9
- $attributeArray = array();
10
- $collection = Mage::getResourceModel('catalog/product_attribute_collection')->addVisibleFilter();
11
- foreach($collection as $col){
12
- $attributeArray[] = array(
13
- 'label' => $col->getAttributeCode(),
14
- 'value' => $col->getAttributeCode()
15
- );
16
- }
17
- return $attributeArray;
18
- }
19
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Vishwasnature/Quickdetail/etc/config.xml DELETED
@@ -1,70 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Vishwasnature_Quickdetail>
5
- <version>0.1.0</version>
6
- </Vishwasnature_Quickdetail>
7
- </modules>
8
- <global>
9
- <models>
10
- <quickdetail>
11
- <class>Vishwasnature_Quickdetail_Model</class>
12
- <resourceModel>quickdetail_mysql4</resourceModel>
13
- </quickdetail>
14
- </models>
15
- <helpers>
16
- <quickdetail>
17
- <class>Vishwasnature_Quickdetail_Helper</class>
18
- </quickdetail>
19
- </helpers>
20
- </global>
21
- <frontend>
22
- <layout>
23
- <updates>
24
- <quickdetail>
25
- <file>quickdetail.xml</file>
26
- </quickdetail>
27
- </updates>
28
- </layout>
29
- </frontend>
30
- <adminhtml>
31
- <acl>
32
- <resources>
33
- <admin>
34
- <children>
35
- <system>
36
- <children>
37
- <config>
38
- <children>
39
- <quickdetail translate="title" module="quickdetail">
40
- <title>Quickdetail Settings</title>
41
- <sort_order>50</sort_order>
42
- </quickdetail>
43
- </children>
44
- </config>
45
- </children>
46
- </system>
47
- </children>
48
- </admin>
49
- </resources>
50
- </acl>
51
- <layout>
52
- <updates>
53
- <quickdetail>
54
- <file>quickdetail.xml</file>
55
- </quickdetail>
56
- </updates>
57
- </layout>
58
- </adminhtml>
59
- <default>
60
- <quickdetail>
61
- <viewsettings>
62
- <enableview>1</enableview>
63
- <width>300</width>
64
- <height>auto</height>
65
- <uni_pickcolor>B393B8</uni_pickcolor>
66
- <background_color>FFFFFF</background_color>
67
- </viewsettings>
68
- </quickdetail>
69
- </default>
70
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Vishwasnature/Quickdetail/etc/system.xml DELETED
@@ -1,96 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <config>
3
- <tabs>
4
- <vishwasnature translate="label" module="quickdetail">
5
- <label>Quick Detail</label>
6
- <sort_order>100</sort_order>
7
- </vishwasnature>
8
- </tabs>
9
- <sections>
10
- <quickdetail translate="label" module="quickdetail">
11
- <label>Quick Detail</label>
12
- <tab>vishwasnature</tab>
13
- <sort_order>1000</sort_order>
14
- <show_in_default>1</show_in_default>
15
- <show_in_website>1</show_in_website>
16
- <show_in_store>1</show_in_store>
17
- <groups>
18
- <viewsettings translate="label" module="quickdetail">
19
- <label>Product Atrributes</label>
20
- <frontend_type>text</frontend_type>
21
- <sort_order>1000</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
- <fields>
26
- <enableview translate="label">
27
- <label>Enable Quick Detail</label>
28
- <frontend_type>select</frontend_type>
29
- <source_model>adminhtml/system_config_source_yesno</source_model>
30
- <sort_order>1</sort_order>
31
- <show_in_default>1</show_in_default>
32
- <show_in_website>1</show_in_website>
33
- <show_in_store>1</show_in_store>
34
- </enableview>
35
- <width>
36
- <label>Popup Width</label>
37
- <frontend_type>text</frontend_type>
38
- <sort_order>2</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
- <comment>Eg: 100</comment>
43
- </width>
44
- <height>
45
- <label>Popup Height</label>
46
- <frontend_type>text</frontend_type>
47
- <sort_order>3</sort_order>
48
- <show_in_default>1</show_in_default>
49
- <show_in_website>1</show_in_website>
50
- <show_in_store>1</show_in_store>
51
- <comment>Eg: 100</comment>
52
- </height>
53
- <uni_pickcolor>
54
- <label>Popup Header Background Color</label>
55
- <frontend_type>text</frontend_type>
56
- <validate>color</validate> <!-- This is important -->
57
- <sort_order>4</sort_order>
58
- <show_in_default>1</show_in_default>
59
- <show_in_website>1</show_in_website>
60
- <show_in_store>1</show_in_store>
61
- <comment>Specify the Header background color.</comment>
62
- </uni_pickcolor>
63
- <background_color>
64
- <label>Popup Content Background Color</label>
65
- <frontend_type>text</frontend_type>
66
- <validate>color</validate> <!-- This is important -->
67
- <sort_order>5</sort_order>
68
- <show_in_default>1</show_in_default>
69
- <show_in_website>1</show_in_website>
70
- <show_in_store>1</show_in_store>
71
- <comment>Specify the Content background color.</comment>
72
- </background_color>
73
- <specificdetail translate="label">
74
- <label>Specific Product Details</label>
75
- <frontend_type>multiselect</frontend_type>
76
- <sort_order>10</sort_order>
77
- <source_model>quickdetail/attributes</source_model>
78
- <show_in_default>1</show_in_default>
79
- <show_in_website>1</show_in_website>
80
- <show_in_store>1</show_in_store>
81
- </specificdetail>
82
- <sort_orders>
83
- <label>Attribute Show in Sort Order</label>
84
- <frontend_type>textarea</frontend_type>
85
- <sort_order>11</sort_order>
86
- <show_in_default>1</show_in_default>
87
- <show_in_website>1</show_in_website>
88
- <show_in_store>1</show_in_store>
89
- <comment>attribute_code:sort_order, Eg: color:1,manufacturer:2</comment>
90
- </sort_orders>
91
- </fields>
92
- </viewsettings>
93
- </groups>
94
- </quickdetail>
95
- </sections>
96
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,18 +1,24 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Vishwasnature_Productlink</name>
4
- <version>0.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>To Edit Product when add product to category in 'Category Products' tab.</summary>
10
- <description>To Edit Product when add product to category in 'Category Products' tab. Features:- It is more useful when database is heavy with lot of products. It is useful to easily navigate from 'Category' to 'Products'. Added products in category can be viewed only on one click. Catalog &gt; Manage Categories &gt; Category Products tab Here you can find Edit Action to edit products</description>
 
 
 
 
 
 
11
  <notes>To Edit Product when add product to category in 'Category Products' tab.</notes>
12
  <authors><author><name>Vishwas Nature</name><user>auto-converted</user><email>vishwasnature30@gmail.com</email></author></authors>
13
  <date>2014-01-29</date>
14
- <time>11:45:01</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Vishwasnature_Productlink.xml" hash="da65f8342910787888ae2de87fd679c7"/></dir></target><target name="magecommunity"><dir name="Vishwasnature"><dir name="Productlink"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Category"><dir name="Tab"><file name="Product.php" hash="3f181a9090f8b927b68f48611a238a9a"/></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="45fd8330281d6d8efb883106b5691509"/></dir></dir><dir name="Quickdetail"><dir name="etc"><file name="config.xml" hash="e392b265a3e3a6adcf6db372eb70372d"/><file name="system.xml" hash="645f7b6e5ff4df457ec8c0897e06f87d"/></dir><dir name="Helper"><file name="Data.php" hash="cb5c2820ee0b848cb40aed7da091cdd5"/></dir><dir name="Model"><file name="Attributes.php" hash="da562514a1a6cd0990a251323e7e8684"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Vishwasnature_Productlink</name>
4
+ <version>0.1.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>To Edit Product when add product to category in 'Category Products' tab.</summary>
10
+ <description>To Edit Product when add product to category in 'Category Products' tab.
11
+ Features:-
12
+ It is more useful when database is heavy with lot of products.
13
+ It is useful to easily navigate from 'Category' to 'Products'.
14
+ Added products in category can be viewed only on one click.
15
+ Catalog &gt; Manage Categories &gt; Category Products tab
16
+ Here you can find Edit Action to edit products</description>
17
  <notes>To Edit Product when add product to category in 'Category Products' tab.</notes>
18
  <authors><author><name>Vishwas Nature</name><user>auto-converted</user><email>vishwasnature30@gmail.com</email></author></authors>
19
  <date>2014-01-29</date>
20
+ <time>12:13:24</time>
21
+ <contents><target name="mageetc"><dir name="modules"><file name="Vishwasnature_Productlink.xml" hash="da65f8342910787888ae2de87fd679c7"/></dir></target><target name="magecommunity"><dir name="Vishwasnature"><dir name="Productlink"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Category"><dir name="Tab"><file name="Product.php" hash="3f181a9090f8b927b68f48611a238a9a"/></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="45fd8330281d6d8efb883106b5691509"/></dir></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies/>
24
  </package>