Version Notes
Stable
Download this release
Release Info
Developer | Magento Core Team |
Extension | vian_pictograms_free |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
app/code/local/VIAN/Pictograms/Model/Observer.php
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class VIAN_Pictograms_Model_Observer {
|
3 |
+
|
4 |
+
/*
|
5 |
+
public function checkPictograms($observer){
|
6 |
+
|
7 |
+
$product = $observer->getEvent()->getProduct();
|
8 |
+
$data = $observer->getEvent()->getRequest()->getPost('product');
|
9 |
+
if (! isset($data['pictograms'])){
|
10 |
+
$product->setData('pictograms','');
|
11 |
+
}
|
12 |
+
return;
|
13 |
+
|
14 |
+
}
|
15 |
+
*/
|
16 |
+
}
|
app/code/local/VIAN/Pictograms/Model/Pictograms.php
CHANGED
@@ -10,6 +10,7 @@ class VIAN_Pictograms_Model_Pictograms extends Mage_Core_Model_Abstract {
|
|
10 |
public function getOptionArray($active = FALSE) {
|
11 |
|
12 |
$data = array();
|
|
|
13 |
$collection = $this->getCollection();
|
14 |
if ($active){
|
15 |
$collection->addFieldToFilter('status',VIAN_Pictograms_Model_Status::STATUS_ENABLED);
|
10 |
public function getOptionArray($active = FALSE) {
|
11 |
|
12 |
$data = array();
|
13 |
+
$data[] = array('label' => '', 'value' => ''); /* 'None' */
|
14 |
$collection = $this->getCollection();
|
15 |
if ($active){
|
16 |
$collection->addFieldToFilter('status',VIAN_Pictograms_Model_Status::STATUS_ENABLED);
|
app/code/local/VIAN/Pictograms/Model/Rewrite/Action.php
CHANGED
@@ -19,6 +19,10 @@ class VIAN_Pictograms_Model_Rewrite_Action extends Mage_Catalog_Model_Product_Ac
|
|
19 |
$attrData['pictograms'] = implode(',',$attrData['pictograms']);
|
20 |
}
|
21 |
}
|
|
|
|
|
|
|
|
|
22 |
|
23 |
$this->_getResource()->updateAttributes($productIds, $attrData, $storeId);
|
24 |
$this->setData(array(
|
19 |
$attrData['pictograms'] = implode(',',$attrData['pictograms']);
|
20 |
}
|
21 |
}
|
22 |
+
/*
|
23 |
+
if (! isset($attrData['pictograms'])){
|
24 |
+
$attrData[] = array('pictograms' => '');
|
25 |
+
}*/
|
26 |
|
27 |
$this->_getResource()->updateAttributes($productIds, $attrData, $storeId);
|
28 |
$this->setData(array(
|
app/code/local/VIAN/Pictograms/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<VIAN_Pictograms>
|
5 |
-
<version>2.0.
|
6 |
</VIAN_Pictograms>
|
7 |
</modules>
|
8 |
<frontend>
|
@@ -91,6 +91,19 @@
|
|
91 |
</pictograms>
|
92 |
</default>
|
93 |
<global>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
<models>
|
95 |
<pictograms>
|
96 |
<class>VIAN_Pictograms_Model</class>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<VIAN_Pictograms>
|
5 |
+
<version>2.0.2</version>
|
6 |
</VIAN_Pictograms>
|
7 |
</modules>
|
8 |
<frontend>
|
91 |
</pictograms>
|
92 |
</default>
|
93 |
<global>
|
94 |
+
<!--
|
95 |
+
<events>
|
96 |
+
<catalog_product_prepare_save>
|
97 |
+
<observers>
|
98 |
+
<VIAN_Pictograms_Observer>
|
99 |
+
<type>singleton</type>
|
100 |
+
<class>pictograms/observer</class>
|
101 |
+
<method>checkPictograms</method>
|
102 |
+
</VIAN_Pictograms_Observer>
|
103 |
+
</observers>
|
104 |
+
</catalog_product_prepare_save>
|
105 |
+
</events>
|
106 |
+
-->
|
107 |
<models>
|
108 |
<pictograms>
|
109 |
<class>VIAN_Pictograms_Model</class>
|
app/code/local/VIAN/Pictograms/etc/system.xml
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
<class>separator-top</class>
|
12 |
<label>Pictograms</label>
|
13 |
<tab>VIAN</tab>
|
14 |
-
<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>
|
@@ -19,7 +19,7 @@
|
|
19 |
<frontend_configuration translate="label">
|
20 |
<label>Frontend configuration</label>
|
21 |
<frontend_type>text</frontend_type>
|
22 |
-
<sort_order>
|
23 |
<show_in_default>1</show_in_default>
|
24 |
<show_in_website>1</show_in_website>
|
25 |
<show_in_store>1</show_in_store>
|
@@ -28,7 +28,7 @@
|
|
28 |
<label>Display in Grid/List</label>
|
29 |
<frontend_type>select</frontend_type>
|
30 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
31 |
-
<sort_order>
|
32 |
<show_in_default>1</show_in_default>
|
33 |
<show_in_website>1</show_in_website>
|
34 |
<show_in_store>1</show_in_store>
|
11 |
<class>separator-top</class>
|
12 |
<label>Pictograms</label>
|
13 |
<tab>VIAN</tab>
|
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>
|
19 |
<frontend_configuration translate="label">
|
20 |
<label>Frontend configuration</label>
|
21 |
<frontend_type>text</frontend_type>
|
22 |
+
<sort_order>100</sort_order>
|
23 |
<show_in_default>1</show_in_default>
|
24 |
<show_in_website>1</show_in_website>
|
25 |
<show_in_store>1</show_in_store>
|
28 |
<label>Display in Grid/List</label>
|
29 |
<frontend_type>select</frontend_type>
|
30 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
31 |
+
<sort_order>100</sort_order>
|
32 |
<show_in_default>1</show_in_default>
|
33 |
<show_in_website>1</show_in_website>
|
34 |
<show_in_store>1</show_in_store>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>vian_pictograms_free</name>
|
4 |
-
<version>2.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL-3.0</license>
|
7 |
<channel>community</channel>
|
@@ -15,11 +15,11 @@
|
|
15 |
<li>Pictograms can be easily reordered at any time</li>
|
16 |
<li>Pictograms can have up to 2 associated images: standard images are used for product view pages, while small images are used for product listing pages (optional)</li>
|
17 |
<li>The extension’s functionality code is 100% Open Source</li></description>
|
18 |
-
<notes>Stable
|
19 |
<authors><author><name>viansolutions</name><user>auto-converted</user><email>joan.puche@viansolutions.com</email></author></authors>
|
20 |
<date>2011-11-09</date>
|
21 |
-
<time>
|
22 |
-
<contents><target name="magelocal"><dir name="VIAN"><dir name="Pictograms"><dir name="Block"><dir name="Adminhtml"><dir name="Pictograms"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="1a0bf7f170a00816bdfc9e01fbaae6a9"/></dir><file name="Form.php" hash="df28ce655944d002a9f03aad48c44037"/><file name="Tabs.php" hash="d483d18d02536d47be4894d5d80842c1"/></dir><file name="Edit.php" hash="df3bae4ece28160b469bc1c5914be853"/><file name="Grid.php" hash="732e7ddcdabe36ea975f16bd30208399"/></dir><file name="Pictograms.php" hash="1edc5fbbc32a33ee8f141eacce372bca"/></dir><dir name="Catalog"><dir name="Product"><file name="List.php" hash="ec58a7a41afd3b2ba9dcc977399a7b29"/></dir></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><file name="Pictogram.php" hash="23814b056cb4284d9c581d2f5129ba23"/></dir></dir><file name="Column.php" hash="710be7b87647b04103bd702f2f09f60e"/></dir></dir><file name="Pictograms.php" hash="3b35fd4cedba721d3cc110da6a838571"/></dir><dir name="Helper"><file name="Data.php" hash="fccef4d8cd1fd17ceeca39537496adbf"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Pictograms"><file name="Collection.php" hash="b175d464ee87c4771a3accc28181bf62"/></dir><file name="Pictograms.php" hash="1a068cf73e27409ed993be2d59f9d1e9"/></dir><dir name="Product"><dir name="Attribute"><dir name="Source"><file name="Unit.php" hash="3f51c4138a924afd28acdbc9604ba0a8"/></dir></dir></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="b0a8b5265e4c1e561624c976af0ed82e"/></dir></dir></dir><dir name="Rewrite"><file name="Action.php" hash="
|
23 |
<compatible/>
|
24 |
<dependencies/>
|
25 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>vian_pictograms_free</name>
|
4 |
+
<version>2.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL-3.0</license>
|
7 |
<channel>community</channel>
|
15 |
<li>Pictograms can be easily reordered at any time</li>
|
16 |
<li>Pictograms can have up to 2 associated images: standard images are used for product view pages, while small images are used for product listing pages (optional)</li>
|
17 |
<li>The extension’s functionality code is 100% Open Source</li></description>
|
18 |
+
<notes>Stable</notes>
|
19 |
<authors><author><name>viansolutions</name><user>auto-converted</user><email>joan.puche@viansolutions.com</email></author></authors>
|
20 |
<date>2011-11-09</date>
|
21 |
+
<time>17:37:38</time>
|
22 |
+
<contents><target name="magelocal"><dir name="VIAN"><dir name="Pictograms"><dir name="Block"><dir name="Adminhtml"><dir name="Pictograms"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="1a0bf7f170a00816bdfc9e01fbaae6a9"/></dir><file name="Form.php" hash="df28ce655944d002a9f03aad48c44037"/><file name="Tabs.php" hash="d483d18d02536d47be4894d5d80842c1"/></dir><file name="Edit.php" hash="df3bae4ece28160b469bc1c5914be853"/><file name="Grid.php" hash="732e7ddcdabe36ea975f16bd30208399"/></dir><file name="Pictograms.php" hash="1edc5fbbc32a33ee8f141eacce372bca"/></dir><dir name="Catalog"><dir name="Product"><file name="List.php" hash="ec58a7a41afd3b2ba9dcc977399a7b29"/></dir></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><file name="Pictogram.php" hash="23814b056cb4284d9c581d2f5129ba23"/></dir></dir><file name="Column.php" hash="710be7b87647b04103bd702f2f09f60e"/></dir></dir><file name="Pictograms.php" hash="3b35fd4cedba721d3cc110da6a838571"/></dir><dir name="Helper"><file name="Data.php" hash="fccef4d8cd1fd17ceeca39537496adbf"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Pictograms"><file name="Collection.php" hash="b175d464ee87c4771a3accc28181bf62"/></dir><file name="Pictograms.php" hash="1a068cf73e27409ed993be2d59f9d1e9"/></dir><dir name="Product"><dir name="Attribute"><dir name="Source"><file name="Unit.php" hash="3f51c4138a924afd28acdbc9604ba0a8"/></dir></dir></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="b0a8b5265e4c1e561624c976af0ed82e"/></dir></dir></dir><dir name="Rewrite"><file name="Action.php" hash="7e6e016228566baf868aadee2c937323"/></dir><file name="Observer.php" hash="0300fa278a9d358d3c4fa28bb78b9f7a"/><file name="Pictograms.php" hash="55dd17eb750676740c95ca2458fa9ff9"/><file name="Status.php" hash="55bb8eb5aeb77d4cc4c524699fce45ac"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PictogramsController.php" hash="1d238c06e1be599f449fdc07dda4e1c7"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="9c528937b6de1e34b1200af70cdb2aea"/><file name="config.xml" hash="de76e0b2930f950b48953cf9aae7b108"/><file name="system.xml" hash="ccf1e0b03b3cb9877cb1cfcee7d9921f"/></dir><dir name="sql"><dir name="pictograms_setup"><file name="mysql4-install-2.0.0.php" hash="f6bd4ea418567b02f8e04f7cc216abf6"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="pictograms.xml" hash="9bf24d4be7b30614bf34e0610880cd89"/></dir><dir name="template"><dir name="pictograms"><dir name="catalog"><dir name="product"><dir name="view"><file name="pictograms.phtml" hash="c634c9f57386cee72558bf23fb5de446"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pictograms.xml" hash="6852e31b2f3d5e08d7d2b860627a1798"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="VIAN_Pictograms.xml" hash="6b20f96c93bd0c2264d374ce5574c143"/></dir></target><target name="magelocale"><dir name="es_ES"><file name="VIAN_Pictograms.csv" hash="2d760becd8fc4dd456192f9d45409fd6"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="pictograms"><dir name="css"><file name="skin.css" hash="95fbb9389f55be01d1b06c1552d5d26b"/></dir></dir></dir></dir></dir></target></contents>
|
23 |
<compatible/>
|
24 |
<dependencies/>
|
25 |
</package>
|