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 +1 -1
- app/code/community/WIC/All/Model/Catalog/Convert/Parser/Product.php +42 -0
- app/code/community/WIC/All/Model/Source/Attributes.php +11 -0
- app/code/community/WIC/All/etc/config.xml +19 -19
- app/design/adminhtml/default/default/layout/{wic_all.xml → wic/all.xml} +1 -1
- app/locale/fr_FR/WIC_All.csv +2 -1
- package.xml +18 -9
- skin/adminhtml/default/default/{wic_all → wic/all}/css/tab.css +0 -0
- skin/adminhtml/default/default/{wic_all → wic/all}/images/ok.gif +0 -0
- skin/adminhtml/default/default/{wic_all → wic/all}/images/wic.png +0 -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('
|
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.
|
6 |
</WIC_All>
|
7 |
</modules>
|
8 |
<global>
|
@@ -16,20 +16,20 @@
|
|
16 |
</rewrite>
|
17 |
</page>
|
18 |
</blocks>
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
<wicall_setup>
|
31 |
<setup>
|
32 |
-
<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>
|
55 |
</wicall>
|
56 |
</updates>
|
57 |
</layout>
|
58 |
-
|
59 |
<modules>
|
60 |
-
<
|
61 |
<files>
|
62 |
<default>WIC_All.csv</default>
|
63 |
</files>
|
64 |
-
</
|
65 |
</modules>
|
66 |
</translate>
|
67 |
-
|
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>
|
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.
|
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
|
10 |
-
|
11 |
-
<
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 & Utility Package for our modules to depends on.
|
10 |
+
</summary>
|
11 |
+
<description>This Core & Utility package module is required for our other modules to depends on. It extends some functionalities and add a Tab in System > Configuration 
|
12 |
+

|
13 |
+
For more information about our moduie please visite our <a href="http://store.webincolor.fr">Magento module store </a>
|
14 |
+

|
15 |
+
________________________________________________
|
16 |
+

|
17 |
+
Ce module Core & Utility package est nécessaire pour le fonctionnement des nos autres modules. Il ajoute quelques fonctionnalités à Magento et un onglet dans Systeme > Configuration.
|
18 |
+

|
19 |
+
Pour plus d'information merci de visiter le <a href="http://store.webincolor.fr">Store d'extension Magento Webincolor</a></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
|