Emizen_EmailImages - Version 1.0.0

Version Notes

Using this module you can show product thumbnails on sales emails. You can set image size from backend. Just enable it and it will started to sending images in sales emails.

Download this release

Release Info

Developer Emizen Tech Private Limited
Extension Emizen_EmailImages
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/local/Emizen/EmailImages/Block/Sales/Order/Email/Items/Order/Default.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Emizen_EmailImages_Block_Sales_Order_Email_Items_Order_Default extends Mage_Sales_Block_Order_Email_Items_Order_Default
3
+ {
4
+ public function productimage($productId)
5
+ {
6
+ return Mage::helper('catalog/image')->init(Mage::getModel('catalog/product')->load($productId), 'small_image')->resize(Mage::getStoreConfig('email_images/general/image_resize'));
7
+ }
8
+ }
9
+
app/code/local/Emizen/EmailImages/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Emizen_EmailImages_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ }
5
+
app/code/local/Emizen/EmailImages/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <email_images translate="title" module="emailimages">
12
+ <title>Email Images Section</title>
13
+ <sort_order>0</sort_order>
14
+ </email_images>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>
app/code/local/Emizen/EmailImages/etc/config.xml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Emizen_EmailImages>
5
+ <version>0.1.0</version>
6
+ </Emizen_EmailImages>
7
+ </modules>
8
+ <frontend>
9
+ <layout>
10
+ <updates>
11
+ <emailimages>
12
+ <file>emizen/emailimages.xml</file>
13
+ </emailimages>
14
+ </updates>
15
+ </layout>
16
+ </frontend>
17
+ <global>
18
+ <helpers>
19
+ <emailimages>
20
+ <class>Emizen_EmailImages_Helper</class>
21
+ </emailimages>
22
+ </helpers>
23
+ <blocks>
24
+ <emailimages>
25
+ <class>Emizen_EmailImages_Block</class>
26
+ </emailimages>
27
+ <sales>
28
+ <rewrite>
29
+ <order_email_items_order_default>Emizen_EmailImages_Block_Sales_Order_Email_Items_Order_Default</order_email_items_order_default>
30
+ </rewrite>
31
+ </sales>
32
+ </blocks>
33
+ </global>
34
+ <default>
35
+ <email_images>
36
+ <general>
37
+ <image_resize>135</image_resize>
38
+ </general>
39
+ </email_images>
40
+ </default>
41
+ </config>
app/code/local/Emizen/EmailImages/etc/system.xml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <emizen translate="label" module="emailimages">
5
+ <label>Emizen</label>
6
+ <sort_order>0</sort_order>
7
+ </emizen>
8
+ </tabs>
9
+
10
+ <sections>
11
+ <email_images translate="label" module="emailimages">
12
+ <label>Email Images</label>
13
+ <tab>emizen</tab>
14
+ <frontend_type>text</frontend_type>
15
+ <sort_order>0</sort_order>
16
+ <show_in_default>1</show_in_default>
17
+ <show_in_website>1</show_in_website>
18
+ <show_in_store>1</show_in_store>
19
+ <groups>
20
+ <general translate="label">
21
+ <label>General</label>
22
+ <frontend_type>text</frontend_type>
23
+ <sort_order>0</sort_order>
24
+ <show_in_default>1</show_in_default>
25
+ <show_in_website>1</show_in_website>
26
+ <show_in_store>1</show_in_store>
27
+ <fields>
28
+ <enable translate="label">
29
+ <label>Enable</label>
30
+ <frontend_type>select</frontend_type>
31
+ <source_model>adminhtml/system_config_source_yesno</source_model>
32
+ <sort_order>0</sort_order>
33
+ <show_in_default>1</show_in_default>
34
+ <show_in_website>1</show_in_website>
35
+ <show_in_store>1</show_in_store>
36
+ <comment>enable/disable the module</comment>
37
+ </enable>
38
+ <image_resize translate="label">
39
+ <label>Image Resize</label>
40
+ <frontend_type>text</frontend_type>
41
+ <sort_order>1</sort_order>
42
+ <show_in_default>1</show_in_default>
43
+ <show_in_website>1</show_in_website>
44
+ <show_in_store>1</show_in_store>
45
+ <comment>Add Resize width Ex. 135</comment>
46
+ </image_resize>
47
+ </fields>
48
+ </general>
49
+ </groups>
50
+ </email_images>
51
+ </sections>
52
+ </config>
app/etc/modules/Emizen_EmailImages.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Emizen_EmailImages>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ <version>0.1.0</version>
8
+ </Emizen_EmailImages>
9
+ </modules>
10
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Emizen_EmailImages</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>This module will enable product image thumbnail on sales email</summary>
10
+ <description>Using this module you can show product thumbnails on sales emails. You can set image size from backend. Just enable it and it will started to sending images in sales emails.</description>
11
+ <notes>Using this module you can show product thumbnails on sales emails. You can set image size from backend. Just enable it and it will started to sending images in sales emails.</notes>
12
+ <authors><author><name>Emizen Tech Private Limited</name><user>emizen</user><email>info@emizentech.com</email></author></authors>
13
+ <date>2015-02-24</date>
14
+ <time>11:56:36</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Emizen_EmailImages.xml" hash="ac7c02dc26ec52b848494e3fc03597ae"/></dir></target><target name="magelocal"><dir name="Emizen"><dir name="EmailImages"><dir><dir name="Block"><dir name="Sales"><dir name="Order"><dir name="Email"><dir name="Items"><dir name="Order"><file name="Default.php" hash="e980f7e1938b8fc75df87f0084c090c4"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="3990c53f4796f415d1207e1e044ee9e4"/></dir><dir name="etc"><file name="adminhtml.xml" hash="dd4287dc2bf3625378b2fdabf8e9762c"/><file name="config.xml" hash="f97e525601e28a940812ddd46c8aa5f8"/><file name="system.xml" hash="dcef1cad310692f4f144c87720ee919a"/></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
+ </package>