WIC_All - Version 1.1.0

Version Notes

New release of our WIC Core module and installed through Magento Connect

Download this release

Release Info

Developer Web In Color
Extension WIC_All
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.0 to 1.1.0

app/code/community/WIC/All/Block/Extensions.php CHANGED
@@ -59,7 +59,7 @@ class WIC_All_Block_Extensions extends Mage_Adminhtml_Block_System_Config_Form_F
59
 
60
  $moduleName = substr($moduleCode, strpos($moduleCode, '_') + 1);
61
 
62
- $status = '<a target="_blank"><img src="'.$this->getSkinUrl('wic_all/images/ok.gif').'" title="'.$this->__("Installed").'"/></a>';
63
 
64
  $moduleName = $status . ' ' . $moduleName;
65
 
59
 
60
  $moduleName = substr($moduleCode, strpos($moduleCode, '_') + 1);
61
 
62
+ $status = '<a target="_blank"><img src="'.$this->getSkinUrl('wic/all/images/ok.gif').'" title="'.$this->__("Installed").'"/></a>';
63
 
64
  $moduleName = $status . ' ' . $moduleName;
65
 
app/code/community/WIC/All/Model/Catalog/Convert/Parser/Product.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class WIC_All_Model_Catalog_Convert_Parser_Product extends Mage_Catalog_Model_Convert_Parser_Product
4
+ {
5
+
6
+
7
+ /**
8
+ * Retrieve accessible external product attributes
9
+ *
10
+ * @return array
11
+ */
12
+ public function getExternalAttributes()
13
+ {
14
+ $productAttributes = array();
15
+ if(file_exists(Mage::getModuleDir(null,'Mage_Catalog') ."Model/Resource/Eav/Mysql4/Product/Attribute/Collection"))
16
+ $productAttributes = Mage::getResourceModel('catalog/product_attribute_collection')->load();
17
+ else
18
+ {
19
+
20
+ $entityTypeId = Mage::getSingleton('eav/config')->getEntityType('catalog_product')->getId();
21
+ $productAttributes = Mage::getResourceModel('eav/entity_attribute_collection')
22
+ ->setEntityTypeFilter($entityTypeId)
23
+ ->load();
24
+ }
25
+
26
+ $attributes = $this->_externalFields;
27
+
28
+ foreach ($productAttributes as $attr) {
29
+ $code = $attr->getAttributeCode();
30
+ if (in_array($code, $this->_internalFields) || $attr->getFrontendInput() == 'hidden') {
31
+ continue;
32
+ }
33
+ $attributes[$code] = $code;
34
+ }
35
+
36
+ foreach ($this->_inventoryFields as $field) {
37
+ $attributes[$field] = $field;
38
+ }
39
+
40
+ return $attributes;
41
+ }
42
+ }
app/code/community/WIC/All/Model/Source/Attributes.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class WIC_All_Model_Source_Attributes
4
+ {
5
+ public function toOptionArray()
6
+ {
7
+ $attributes= Mage::getSingleton('wicall/catalog_convert_parser_product')->getExternalAttributes();
8
+ array_unshift($attributes, array("value"=>"none","label"=> Mage::helper('wicall')->__("Select attribute to map")));
9
+ return $attributes;
10
+ }
11
+ }
app/code/community/WIC/All/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <WIC_All>
5
- <version>1.0.0</version>
6
  </WIC_All>
7
  </modules>
8
  <global>
@@ -16,20 +16,20 @@
16
  </rewrite>
17
  </page>
18
  </blocks>
19
- <helpers>
20
- <wicall>
21
- <class>WIC_All_Helper</class>
22
- </wicall>
23
- </helpers>
24
- <models>
25
- <wicall>
26
- <class>WIC_All_Model</class>
27
- </wicall>
28
- </models>
29
- <resources>
30
  <wicall_setup>
31
  <setup>
32
- <module>WIC_A@ll</module>
33
  </setup>
34
  <connection>
35
  <use>core_setup</use>
@@ -51,20 +51,20 @@
51
  <layout>
52
  <updates>
53
  <wicall module="WIC_All">
54
- <file>wic_all.xml</file>
55
  </wicall>
56
  </updates>
57
  </layout>
58
- <translate>
59
  <modules>
60
- <affilinet>
61
  <files>
62
  <default>WIC_All.csv</default>
63
  </files>
64
- </affilinet>
65
  </modules>
66
  </translate>
67
- <acl>
68
  <resources>
69
  <all>
70
  <title>Allow Everything</title>
@@ -87,4 +87,4 @@
87
  </resources>
88
  </acl>
89
  </adminhtml>
90
- </config>
2
  <config>
3
  <modules>
4
  <WIC_All>
5
+ <version>1.1.0</version>
6
  </WIC_All>
7
  </modules>
8
  <global>
16
  </rewrite>
17
  </page>
18
  </blocks>
19
+ <helpers>
20
+ <wicall>
21
+ <class>WIC_All_Helper</class>
22
+ </wicall>
23
+ </helpers>
24
+ <models>
25
+ <wicall>
26
+ <class>WIC_All_Model</class>
27
+ </wicall>
28
+ </models>
29
+ <resources>
30
  <wicall_setup>
31
  <setup>
32
+ <module>WIC_All</module>
33
  </setup>
34
  <connection>
35
  <use>core_setup</use>
51
  <layout>
52
  <updates>
53
  <wicall module="WIC_All">
54
+ <file>wic/all.xml</file>
55
  </wicall>
56
  </updates>
57
  </layout>
58
+ <translate>
59
  <modules>
60
+ <wicall>
61
  <files>
62
  <default>WIC_All.csv</default>
63
  </files>
64
+ </wicall>
65
  </modules>
66
  </translate>
67
+ <acl>
68
  <resources>
69
  <all>
70
  <title>Allow Everything</title>
87
  </resources>
88
  </acl>
89
  </adminhtml>
90
+ </config>
app/design/adminhtml/default/default/layout/{wic_all.xml → wic/all.xml} RENAMED
@@ -3,7 +3,7 @@
3
  <default>
4
  <reference name="head">
5
  <action method="addCss">
6
- <name>wic_all/css/tab.css</name>
7
  </action>
8
  </reference>
9
  </default>
3
  <default>
4
  <reference name="head">
5
  <action method="addCss">
6
+ <name>wic/all/css/tab.css</name>
7
  </action>
8
  </reference>
9
  </default>
app/locale/fr_FR/WIC_All.csv CHANGED
@@ -1 +1,2 @@
1
- "Installed Extensions","Modules installés"
 
1
+ "Installed Extensions","Modules installés"
2
+ "Select attribute to map","Séléctionner l'attribut a mapper"
package.xml CHANGED
@@ -1,18 +1,27 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>WIC_All</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">The Open Software License 3.0 (OSL-3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>This is our Core</summary>
10
- <description>This Core</description>
11
- <notes>First release for WIC module to depends on, and installed through Magento Connect</notes>
12
- <authors><author><name>Web In Color</name><user>auto-converted</user><email>contact@webincolor.fr</email></author></authors>
13
- <date>2014-03-28</date>
14
- <time>17:51:08</time>
15
- <contents><target name="magecommunity"><dir name="WIC"><dir name="All"><dir name="Block"><dir name="Html"><file name="Head.php" hash="67561290bf7d2dfcf0773c7b625f94b8"/></dir><file name="Extensions.php" hash="51b4c34bc64e63770b4e55bd19395db2"/></dir><dir name="Helper"><file name="Data.php" hash="db6319093e7e520198edec46abc106fd"/></dir><dir name="etc"><file name="config.xml" hash="67b6b7c7c200c58e6e3a31c77b0fd8a6"/><file name="system.xml" hash="bc711e7e8d71a9ced216223d959490e4"/></dir><dir name="sql"><dir name="wicall_setup"><file name="mysql4-install-1.0.0.php" hash="c05dcd363b70b96a7ac8486a22b877b7"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="wic_all"><dir name="css"><file name="tab.css" hash="ef8952d96fcb600de21199fa59338b2a"/></dir><dir name="images"><file name="ok.gif" hash="7ea13c1a3d1b4c1d7a7dccf6b83b0391"/><file name="wic.png" hash="05ab11c89a103417af6ffef8a8ea5dc5"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="wic_all.xml" hash="0240da7bdfa7b130a6f8a439b9dc9940"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="WIC_All.xml" hash="b8f57cc72e3c717744d8792bd260a84e"/></dir></target><target name="magelocale"><dir name="en_US"><file name="WIC_All.csv" hash="610e0de2f2fe3ada84b7b30297368208"/></dir><dir name="fr_FR"><file name="WIC_All.csv" hash="485ea1856e760476ad61e8b8fff91a35"/></dir></target><target name="mageweb"><dir name="."><file name="WIC-LICENSE.TXT" hash="460ced36627150fe9f9ecb733309b62a"/></dir></target></contents>
 
 
 
 
 
 
 
 
 
16
  <compatible/>
17
- <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>WIC_All</name>
4
+ <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">The Open Software License 3.0 (OSL-3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>This is our Core &amp; Utility Package for our modules to depends on.&#xD;
10
+ </summary>
11
+ <description>This Core &amp; Utility package module is required for our other modules to depends on. It extends some functionalities and add a Tab in System &gt; Configuration &#xD;
12
+ &#xD;
13
+ For more information about our moduie please visite our &lt;a href="http://store.webincolor.fr"&gt;Magento module store &lt;/a&gt;&#xD;
14
+ &#xD;
15
+ ________________________________________________&#xD;
16
+ &#xD;
17
+ Ce module Core &amp; Utility package est n&#xE9;cessaire pour le fonctionnement des nos autres modules. Il ajoute quelques fonctionnalit&#xE9;s &#xE0; Magento et un onglet dans Systeme &gt; Configuration.&#xD;
18
+ &#xD;
19
+ Pour plus d'information merci de visiter le &lt;a href="http://store.webincolor.fr"&gt;Store d'extension Magento Webincolor&lt;/a&gt;</description>
20
+ <notes>New release of our WIC Core module and installed through Magento Connect</notes>
21
+ <authors><author><name>Web In Color</name><user>webincolor</user><email>contact@webincolor.fr</email></author></authors>
22
+ <date>2014-12-10</date>
23
+ <time>11:33:49</time>
24
+ <contents><target name="magecommunity"><dir name="WIC"><dir name="All"><dir name="Block"><file name="Extensions.php" hash="9675492162e2c90cbe6214c1f5c82d32"/><dir name="Html"><file name="Head.php" hash="67561290bf7d2dfcf0773c7b625f94b8"/></dir></dir><dir name="Helper"><file name="Data.php" hash="db6319093e7e520198edec46abc106fd"/></dir><dir name="Model"><dir name="Catalog"><dir name="Convert"><dir name="Parser"><file name="Product.php" hash="40c168af1be0ecdb847eaee0365d15ef"/></dir></dir></dir><dir name="Source"><file name="Attributes.php" hash="fe0a7821e52d5794e1e8fa403eeab69a"/></dir></dir><dir name="etc"><file name="config.xml" hash="1976a9900632d2881048145ee9195ced"/><file name="system.xml" hash="bc711e7e8d71a9ced216223d959490e4"/></dir><dir name="sql"><dir name="wicall_setup"><file name="mysql4-install-1.0.0.php" hash="c05dcd363b70b96a7ac8486a22b877b7"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="wic"><file name="all.xml" hash="c15d5bdb46061fe92a3aa92cf11f04a7"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="wic"><dir name="all"><dir><dir name="css"><file name="tab.css" hash="ef8952d96fcb600de21199fa59338b2a"/></dir><dir name="images"><file name="ok.gif" hash="7ea13c1a3d1b4c1d7a7dccf6b83b0391"/><file name="wic.png" hash="05ab11c89a103417af6ffef8a8ea5dc5"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="WIC_All.xml" hash="b8f57cc72e3c717744d8792bd260a84e"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="WIC_All.csv" hash="610e0de2f2fe3ada84b7b30297368208"/></dir><dir name="fr_FR"><file name="WIC_All.csv" hash="482635cd580ce4c08a3609704c4b371c"/></dir></dir></target><target name="mageweb"><dir name="."><file name="WIC-LICENSE.TXT" hash="460ced36627150fe9f9ecb733309b62a"/></dir></target></contents>
25
  <compatible/>
26
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
27
  </package>
skin/adminhtml/default/default/{wic_all → wic/all}/css/tab.css RENAMED
File without changes
skin/adminhtml/default/default/{wic_all → wic/all}/images/ok.gif RENAMED
File without changes
skin/adminhtml/default/default/{wic_all → wic/all}/images/wic.png RENAMED
File without changes