Version Notes
+ Added missing Data.php.
+ Checked against latest CE 1.9.x
+ Checked against latest PHP 7.x
Download this release
Release Info
Developer | Matthias Kerstner |
Extension | BothInteract_ConfigurableProductVariantsImageAssignment |
Version | 1.6.0 |
Comparing to | |
See all releases |
Code changes from version 1.5.0 to 1.6.0
- app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/Helper/Data.php +10 -0
- app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/Model/Observer.php +2 -2
- app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/Model/System/Config/Source/View.php +2 -2
- app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/etc/adminhtml.xml +0 -26
- app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/etc/config.xml +0 -43
- app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/etc/system.xml +0 -98
- package.xml +8 -7
- shell/set_required_images_for_configurable_product_variants.php +2 -2
app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/Helper/Data.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @author Matthias Kerstner <matthias@both-interact.com>
|
5 |
+
* @version 1.6.0
|
6 |
+
* @copyright (c) 2016, Both Interact GmbH
|
7 |
+
*/
|
8 |
+
class BothInteract_ConfigurableProductVariantsImageAssignment_Helper_Data extends Mage_Core_Helper_Abstract {
|
9 |
+
|
10 |
+
}
|
app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/Model/Observer.php
CHANGED
@@ -20,8 +20,8 @@
|
|
20 |
* @see self::$LOG_FILE.
|
21 |
*
|
22 |
* @author Matthias Kerstner <matthias@both-interact.com>
|
23 |
-
* @version 1.
|
24 |
-
* @copyright (c)
|
25 |
*/
|
26 |
class BothInteract_ConfigurableProductVariantsImageAssignment_Model_Observer {
|
27 |
|
20 |
* @see self::$LOG_FILE.
|
21 |
*
|
22 |
* @author Matthias Kerstner <matthias@both-interact.com>
|
23 |
+
* @version 1.6.0
|
24 |
+
* @copyright (c) 2016, Both Interact GmbH
|
25 |
*/
|
26 |
class BothInteract_ConfigurableProductVariantsImageAssignment_Model_Observer {
|
27 |
|
app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/Model/System/Config/Source/View.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
|
3 |
/**
|
4 |
* @author Matthias Kerstner <matthias@both-interact.com>
|
5 |
-
* @version 1.
|
6 |
-
* @copyright (c)
|
7 |
*/
|
8 |
class BothInteract_ConfigurableProductVariantsImageAssignment_Model_System_Config_Source_View {
|
9 |
|
2 |
|
3 |
/**
|
4 |
* @author Matthias Kerstner <matthias@both-interact.com>
|
5 |
+
* @version 1.6.0
|
6 |
+
* @copyright (c) 2016, Both Interact GmbH
|
7 |
*/
|
8 |
class BothInteract_ConfigurableProductVariantsImageAssignment_Model_System_Config_Source_View {
|
9 |
|
app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/etc/adminhtml.xml
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
<?xml version="1.0" ?>
|
2 |
-
<config>
|
3 |
-
<acl>
|
4 |
-
<resources>
|
5 |
-
<all>
|
6 |
-
<title>Allow Everything</title>
|
7 |
-
</all>
|
8 |
-
<admin>
|
9 |
-
<children>
|
10 |
-
<system>
|
11 |
-
<children>
|
12 |
-
<config>
|
13 |
-
<children>
|
14 |
-
<bothinteract_configurableproductvariantsimageassignment translate="title" module="bothinteract_configurableproductvariantsimageassignment">
|
15 |
-
<title>General</title>
|
16 |
-
<sort_order>100</sort_order>
|
17 |
-
</bothinteract_configurableproductvariantsimageassignment>
|
18 |
-
</children>
|
19 |
-
</config>
|
20 |
-
</children>
|
21 |
-
</system>
|
22 |
-
</children>
|
23 |
-
</admin>
|
24 |
-
</resources>
|
25 |
-
</acl>
|
26 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/etc/config.xml
DELETED
@@ -1,43 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
|
3 |
-
<config>
|
4 |
-
|
5 |
-
<modules>
|
6 |
-
<BothInteract_ConfigurableProductVariantsImageAssignment>
|
7 |
-
<version>1.5.0</version>
|
8 |
-
</BothInteract_ConfigurableProductVariantsImageAssignment>
|
9 |
-
</modules>
|
10 |
-
|
11 |
-
<global>
|
12 |
-
<!-- inform Magento of our new model class-->
|
13 |
-
<models>
|
14 |
-
<bothinteract_configurableproductvariantsimageassignment>
|
15 |
-
<class>BothInteract_ConfigurableProductVariantsImageAssignment_Model</class>
|
16 |
-
</bothinteract_configurableproductvariantsimageassignment>
|
17 |
-
</models>
|
18 |
-
<!-- attach our observer class to catalog_product_save_after event-->
|
19 |
-
<events>
|
20 |
-
<catalog_product_save_after>
|
21 |
-
<observers>
|
22 |
-
<bothinteract_configurableproductvariantsimageassignment_model_observer>
|
23 |
-
<type>singleton</type>
|
24 |
-
<class>BothInteract_ConfigurableProductVariantsImageAssignment_Model_Observer</class>
|
25 |
-
<method>catalog_product_save_after</method>
|
26 |
-
</bothinteract_configurableproductvariantsimageassignment_model_observer>
|
27 |
-
</observers>
|
28 |
-
</catalog_product_save_after>
|
29 |
-
</events>
|
30 |
-
</global>
|
31 |
-
|
32 |
-
<default>
|
33 |
-
<bothinteract_configurableproductvariantsimageassignment>
|
34 |
-
<general>
|
35 |
-
<is_active>0</is_active>
|
36 |
-
<is_simulation>1</is_simulation>
|
37 |
-
<is_https_media_urls>0</is_https_media_urls>
|
38 |
-
<required_image_types></required_image_types>
|
39 |
-
<log_file>configurableproductvariantsimageassignment.log</log_file>
|
40 |
-
</general>
|
41 |
-
</bothinteract_configurableproductvariantsimageassignment>
|
42 |
-
</default>
|
43 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/etc/system.xml
DELETED
@@ -1,98 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
|
3 |
-
<config>
|
4 |
-
|
5 |
-
<tabs>
|
6 |
-
<bothinteract translate="label">
|
7 |
-
<label>Both Interact GmbH</label>
|
8 |
-
<sort_order>100</sort_order>
|
9 |
-
</bothinteract>
|
10 |
-
</tabs>
|
11 |
-
|
12 |
-
<sections>
|
13 |
-
<bothinteract_configurableproductvariantsimageassignment translate="label" module="adminhtml">
|
14 |
-
<label>Product Variants Image Assignment</label>
|
15 |
-
<tab>bothinteract</tab>
|
16 |
-
<frontend_type>text</frontend_type>
|
17 |
-
<sort_order>1000</sort_order>
|
18 |
-
<show_in_default>1</show_in_default>
|
19 |
-
<show_in_website>1</show_in_website>
|
20 |
-
<show_in_store>1</show_in_store>
|
21 |
-
|
22 |
-
<groups>
|
23 |
-
<general translate="label">
|
24 |
-
<label>General</label>
|
25 |
-
<frontend_type>text</frontend_type>
|
26 |
-
<sort_order>50</sort_order>
|
27 |
-
<show_in_default>1</show_in_default>
|
28 |
-
<show_in_website>1</show_in_website>
|
29 |
-
<show_in_store>1</show_in_store>
|
30 |
-
|
31 |
-
<fields>
|
32 |
-
<is_active translate="label">
|
33 |
-
<label>Active</label>
|
34 |
-
<comment>
|
35 |
-
<![CDATA[Check this box to <b>activate</b> automatic image assignment for product variants.]]>
|
36 |
-
</comment>
|
37 |
-
<frontend_type>select</frontend_type>
|
38 |
-
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
39 |
-
<sort_order>1</sort_order>
|
40 |
-
<show_in_default>1</show_in_default>
|
41 |
-
<show_in_website>1</show_in_website>
|
42 |
-
<show_in_store>1</show_in_store>
|
43 |
-
</is_active>
|
44 |
-
<is_simulation translate="label">
|
45 |
-
<label>Simulate</label>
|
46 |
-
<comment>
|
47 |
-
<![CDATA[Check this box to <b>simulate</b> automatic image assignment
|
48 |
-
for product variants. Child products will not be changed.
|
49 |
-
Please refer to log for more information.]]>
|
50 |
-
</comment>
|
51 |
-
<frontend_type>select</frontend_type>
|
52 |
-
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
53 |
-
<sort_order>2</sort_order>
|
54 |
-
<show_in_default>1</show_in_default>
|
55 |
-
<show_in_website>1</show_in_website>
|
56 |
-
<show_in_store>1</show_in_store>
|
57 |
-
</is_simulation>
|
58 |
-
<is_https_media_urls translate="label">
|
59 |
-
<label>Secure Media URLs (https)</label>
|
60 |
-
<comment>
|
61 |
-
<![CDATA[Check this box if your media files are linked using <b>https</b>.]]>
|
62 |
-
</comment>
|
63 |
-
<frontend_type>select</frontend_type>
|
64 |
-
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
65 |
-
<sort_order>3</sort_order>
|
66 |
-
<show_in_default>1</show_in_default>
|
67 |
-
<show_in_website>1</show_in_website>
|
68 |
-
<show_in_store>1</show_in_store>
|
69 |
-
</is_https_media_urls>
|
70 |
-
<required_image_types translate="label">
|
71 |
-
<label>Required Image Types</label>
|
72 |
-
<comment>
|
73 |
-
<![CDATA[Please select required image types for child products.]]>
|
74 |
-
</comment>
|
75 |
-
<frontend_type>multiselect</frontend_type>
|
76 |
-
<source_model>BothInteract_ConfigurableProductVariantsImageAssignment_Model_System_Config_Source_View</source_model>
|
77 |
-
<sort_order>4</sort_order>
|
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 |
-
</required_image_types>
|
82 |
-
<log_file translate="label">
|
83 |
-
<label>Log file</label>
|
84 |
-
<comment>
|
85 |
-
<![CDATA[Please specify a name for your custom <b>log file</b>.]]>
|
86 |
-
</comment>
|
87 |
-
<frontend_type>text</frontend_type>
|
88 |
-
<sort_order>5</sort_order>
|
89 |
-
<show_in_default>1</show_in_default>
|
90 |
-
<show_in_website>1</show_in_website>
|
91 |
-
<show_in_store>1</show_in_store>
|
92 |
-
</log_file>
|
93 |
-
</fields>
|
94 |
-
</general>
|
95 |
-
</groups>
|
96 |
-
</bothinteract_configurableproductvariantsimageassignment>
|
97 |
-
</sections>
|
98 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BothInteract_ConfigurableProductVariantsImageAssignment</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/mit-license.php">MIT License (MITL)</license>
|
7 |
<channel>community</channel>
|
@@ -35,13 +35,14 @@
|
|
35 |
<p>In addition this extension enabled you to logs messages to a custom log file that can be specified in the configuration options to your log directory under <i>General</i> / <i>Log File</i>.</p> 
|
36 |

|
37 |
<p>So you have the option to easily track events handled by this extension and check for possible problems.</p>
|
38 |
-

|
39 |
</description>
|
40 |
-
<notes
|
|
|
|
|
41 |
<authors><author><name>Matthias Kerstner</name><user>mkbothinteract</user><email>matthias@both-interact.com</email></author></authors>
|
42 |
-
<date>
|
43 |
-
<time>
|
44 |
-
<contents><target name="magecommunity"><dir name="BothInteract"><dir name="ConfigurableProductVariantsImageAssignment"><dir name="
|
45 |
<compatible/>
|
46 |
-
<dependencies><required><php><min>5.3.0</min><max>
|
47 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BothInteract_ConfigurableProductVariantsImageAssignment</name>
|
4 |
+
<version>1.6.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/mit-license.php">MIT License (MITL)</license>
|
7 |
<channel>community</channel>
|
35 |
<p>In addition this extension enabled you to logs messages to a custom log file that can be specified in the configuration options to your log directory under <i>General</i> / <i>Log File</i>.</p> 
|
36 |

|
37 |
<p>So you have the option to easily track events handled by this extension and check for possible problems.</p>
|
|
|
38 |
</description>
|
39 |
+
<notes>+ Added missing Data.php.
|
40 |
+
+ Checked against latest CE 1.9.x
|
41 |
+
+ Checked against latest PHP 7.x</notes>
|
42 |
<authors><author><name>Matthias Kerstner</name><user>mkbothinteract</user><email>matthias@both-interact.com</email></author></authors>
|
43 |
+
<date>2016-04-25</date>
|
44 |
+
<time>10:40:51</time>
|
45 |
+
<contents><target name="magecommunity"><dir name="BothInteract"><dir name="ConfigurableProductVariantsImageAssignment"><dir name="Helper"><file name="Data.php" hash="4b5b15da7789b17cdd19d5b34735acac"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="View.php" hash="a73d3fbfacffb84d7715f2fe40798d94"/></dir></dir></dir><file name="Observer.php" hash="9bf6085b0388745091dd49e817335e97"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash=""/><file name="system.xml" hash=""/><file name="adminhtml.xml" hash=""/></dir></target><target name="mageetc"><dir name="modules"><file name="BothInteract_ConfigurableProductVariantsImageAssignment.xml" hash="d38ef35b9d75fee8e4832a1659a82391"/></dir></target><target name="mage"><dir name="shell"><file name="set_required_images_for_configurable_product_variants.php" hash="8b665b60c520743f9403a230d5b2d344"/></dir></target><target name="magelocale"><dir name="en_US"><file name="BothInteract_ConfigurableProductVariantsImageAssignment.csv" hash=""/></dir><dir name="de_DE"><file name="BothInteract_ConfigurableProductVariantsImageAssignment.csv" hash=""/></dir></target></contents>
|
46 |
<compatible/>
|
47 |
+
<dependencies><required><php><min>5.3.0</min><max>7.0.4</max></php></required></dependencies>
|
48 |
</package>
|
shell/set_required_images_for_configurable_product_variants.php
CHANGED
@@ -4,8 +4,8 @@ require_once 'abstract.php';
|
|
4 |
|
5 |
/**
|
6 |
* @author Matthias Kerstner <matthias@both-interact.com>
|
7 |
-
* @version 1.
|
8 |
-
* @copyright (c)
|
9 |
*/
|
10 |
class Mage_Shell_Set_Required_Images_For_Configurable_Product_Variants extends Mage_Shell_Abstract {
|
11 |
|
4 |
|
5 |
/**
|
6 |
* @author Matthias Kerstner <matthias@both-interact.com>
|
7 |
+
* @version 1.6.0
|
8 |
+
* @copyright (c) 2016, Both Interact GmbH
|
9 |
*/
|
10 |
class Mage_Shell_Set_Required_Images_For_Configurable_Product_Variants extends Mage_Shell_Abstract {
|
11 |
|