Version Notes
* fixed configuration files
Download this release
Release Info
Developer | Matthias Kerstner |
Extension | BothInteract_ConfigurableProductVariantsImageAssignment |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/etc/adminhtml.xml +26 -0
- app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/etc/config.xml +43 -0
- app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/etc/system.xml +98 -0
- package.xml +4 -5
app/code/community/BothInteract/ConfigurableProductVariantsImageAssignment/etc/adminhtml.xml
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
|
3 |
+
<config>
|
4 |
+
|
5 |
+
<modules>
|
6 |
+
<BothInteract_ConfigurableProductVariantsImageAssignment>
|
7 |
+
<version>1.6.1</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
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.6.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/mit-license.php">MIT License (MITL)</license>
|
7 |
<channel>community</channel>
|
@@ -36,12 +36,11 @@
|
|
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
|
40 |
-
* fixed media path calculation issue</notes>
|
41 |
<authors><author><name>Matthias Kerstner</name><user>mkbothinteract</user><email>matthias@both-interact.com</email></author></authors>
|
42 |
<date>2016-04-25</date>
|
43 |
-
<time>12:
|
44 |
-
<contents><target name="magecommunity"><dir name="BothInteract"><dir name="ConfigurableProductVariantsImageAssignment"><dir name="Helper"><file name="Data.php" hash="de951bf7bcd104767a9469efc94a4c81"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="View.php" hash="f92b6ff799c59fa6965c3f9b8a42c7db"/></dir></dir></dir><file name="Observer.php" hash="7f20822d7e9a3cacac62f05b55e22d5f"/></dir
|
45 |
<compatible/>
|
46 |
<dependencies><required><php><min>5.3.0</min><max>7.0.4</max></php></required></dependencies>
|
47 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BothInteract_ConfigurableProductVariantsImageAssignment</name>
|
4 |
+
<version>1.6.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/mit-license.php">MIT License (MITL)</license>
|
7 |
<channel>community</channel>
|
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>* fixed configuration files</notes>
|
|
|
40 |
<authors><author><name>Matthias Kerstner</name><user>mkbothinteract</user><email>matthias@both-interact.com</email></author></authors>
|
41 |
<date>2016-04-25</date>
|
42 |
+
<time>12:42:53</time>
|
43 |
+
<contents><target name="magecommunity"><dir name="BothInteract"><dir name="ConfigurableProductVariantsImageAssignment"><dir name="Helper"><file name="Data.php" hash="de951bf7bcd104767a9469efc94a4c81"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="View.php" hash="f92b6ff799c59fa6965c3f9b8a42c7db"/></dir></dir></dir><file name="Observer.php" hash="7f20822d7e9a3cacac62f05b55e22d5f"/></dir><dir name="etc"><file name="config.xml" hash="c32bb5a1011272b3f168aa433c48ef47"/><file name="system.xml" hash="cbc673f91bccab614b9a6e653f38b3a4"/><file name="adminhtml.xml" hash="17ff98ec54bdda6275f8024ee5d5d39f"/></dir></dir></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="de89b039ca425e9bc00063f65c869260"/></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>
|
44 |
<compatible/>
|
45 |
<dependencies><required><php><min>5.3.0</min><max>7.0.4</max></php></required></dependencies>
|
46 |
</package>
|