Nik_Newsletterpopup - Version 0.3.0

Version Notes

Fix minor Displaying related issue

Download this release

Release Info

Developer Nikunj Vadariya
Extension Nik_Newsletterpopup
Version 0.3.0
Comparing to
See all releases


Code changes from version 0.2.0 to 0.3.0

app/code/local/Nik/Newsletterpopup/etc/config.xml CHANGED
@@ -1,158 +1,159 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Nik_Newsletterpopup>
5
- <version>0.2.0</version>
6
- </Nik_Newsletterpopup>
7
- </modules>
8
- <frontend>
9
- <secure_url>
10
- <newsletterpopup>/newsletterpopup/</newsletterpopup>
11
- </secure_url>
12
- <routers>
13
- <newsletterpopup>
14
- <use>standard</use>
15
- <args>
16
- <module>Nik_Newsletterpopup</module>
17
- <frontName>newsletterpopup</frontName>
18
- </args>
19
- </newsletterpopup>
20
- <newsletter>
21
- <args>
22
- <modules>
23
- <Nik_Newsletterpopup before="Mage_Newsletter_SubscriberController">Nik_Newsletterpopup
24
- </Nik_Newsletterpopup>
25
- </modules>
26
- </args>
27
- </newsletter>
28
- </routers>
29
- <layout>
30
- <updates>
31
- <newsletterpopup>
32
- <file>newsletterpopup.xml</file>
33
- </newsletterpopup>
34
- </updates>
35
- </layout>
36
- <translate>
37
- <modules>
38
- <Nik_Newsletterpopup>
39
- <files>
40
- <default>Nik_Newsletterpopup.csv</default>
41
- </files>
42
- </Nik_Newsletterpopup>
43
- </modules>
44
- </translate>
45
- </frontend>
46
- <admin>
47
- <routers>
48
- <newsletterpopup>
49
- <use>admin</use>
50
- <args>
51
- <module>Nik_Newsletterpopup</module>
52
- <frontName>newsletterpopup</frontName>
53
- </args>
54
- </newsletterpopup>
55
- </routers>
56
- </admin>
57
- <adminhtml>
58
- <layout>
59
- <updates>
60
- <newsletterpopup>
61
- <file>newsletterpopup.xml</file>
62
- </newsletterpopup>
63
- </updates>
64
- </layout>
65
- <translate>
66
- <modules>
67
- <Nik_Newsletterpopup>
68
- <files>
69
- <default>Nik_Newsletterpopup.csv</default>
70
- </files>
71
- </Nik_Newsletterpopup>
72
- </modules>
73
- </translate>
74
- </adminhtml>
75
- <global>
76
- <models>
77
- <newsletterpopup>
78
- <class>Nik_Newsletterpopup_Model</class>
79
- <resourceModel>newsletterpopup_mysql4</resourceModel>
80
- </newsletterpopup>
81
- <newsletterpopup_mysql4>
82
- <class>Nik_Newsletterpopup_Model_Mysql4</class>
83
- <entities>
84
- <newsletterpopup>
85
- <table>newsletterpopup</table>
86
- </newsletterpopup>
87
- </entities>
88
- </newsletterpopup_mysql4>
89
- <newsletter>
90
- <rewrite>
91
- <subscriber>Nik_Newsletterpopup_Model_Subscriber</subscriber>
92
- </rewrite>
93
- </newsletter>
94
- </models>
95
- <resources>
96
- <newsletterpopup_setup>
97
- <setup>
98
- <module>Nik_Newsletterpopup</module>
99
- </setup>
100
- <connection>
101
- <use>core_setup</use>
102
- </connection>
103
- </newsletterpopup_setup>
104
- <newsletterpopup_write>
105
- <connection>
106
- <use>core_write</use>
107
- </connection>
108
- </newsletterpopup_write>
109
- <newsletterpopup_read>
110
- <connection>
111
- <use>core_read</use>
112
- </connection>
113
- </newsletterpopup_read>
114
- </resources>
115
- <blocks>
116
- <newsletterpopup>
117
- <class>Nik_Newsletterpopup_Block</class>
118
- </newsletterpopup>
119
- </blocks>
120
- <helpers>
121
- <newsletterpopup>
122
- <class>Nik_Newsletterpopup_Helper</class>
123
- </newsletterpopup>
124
- </helpers>
125
- <template>
126
- <email>
127
- <newsletterpopup_coupon_code_setting_email_template translate="label" module="newsletterpopup">
128
- <label>Newsletter subscription successful with coupon code</label>
129
- <file>newsletter_subscr_success_with_coupon.html</file>
130
- <type>html</type>
131
- </newsletterpopup_coupon_code_setting_email_template>
132
- </email>
133
- </template>
134
- </global>
135
- <!--Set Default Value For Setting Options-->
136
- <default>
137
- <newsletterpopup>
138
- <general>
139
- <active>1</active>
140
- <include_js>1</include_js>
141
- <form_title>Sign Up To Keep In Touch!</form_title>
142
- <timeout>1</timeout>
143
- <time_delay>0</time_delay>
144
- <notification>Subscribe for the best deals. Your Information will never be shared with any third party.</notification>
145
- </general>
146
- <coupon_code_setting>
147
- <allow_create>0</allow_create>
148
- <email_sender>general</email_sender>
149
- <email_template>newsletterpopup_coupon_code_setting_email_template</email_template>
150
- <discount_type>percent-of-product-price</discount_type>
151
- <discount_amount>20</discount_amount>
152
- <coupon_length>8</coupon_length>
153
- <coupon_expires>15</coupon_expires>
154
- <number_coupon_use>1</number_coupon_use>
155
- </coupon_code_setting>
156
- </newsletterpopup>
157
- </default>
158
- </config>
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Nik_Newsletterpopup>
5
+ <version>0.3.0</version>
6
+ </Nik_Newsletterpopup>
7
+ </modules>
8
+ <frontend>
9
+ <secure_url>
10
+ <newsletterpopup>/newsletterpopup/</newsletterpopup>
11
+ </secure_url>
12
+ <routers>
13
+ <newsletterpopup>
14
+ <use>standard</use>
15
+ <args>
16
+ <module>Nik_Newsletterpopup</module>
17
+ <frontName>newsletterpopup</frontName>
18
+ </args>
19
+ </newsletterpopup>
20
+ <newsletter>
21
+ <args>
22
+ <modules>
23
+ <Nik_Newsletterpopup before="Mage_Newsletter_SubscriberController">Nik_Newsletterpopup
24
+ </Nik_Newsletterpopup>
25
+ </modules>
26
+ </args>
27
+ </newsletter>
28
+ </routers>
29
+ <layout>
30
+ <updates>
31
+ <newsletterpopup>
32
+ <file>newsletterpopup.xml</file>
33
+ </newsletterpopup>
34
+ </updates>
35
+ </layout>
36
+ <translate>
37
+ <modules>
38
+ <Nik_Newsletterpopup>
39
+ <files>
40
+ <default>Nik_Newsletterpopup.csv</default>
41
+ </files>
42
+ </Nik_Newsletterpopup>
43
+ </modules>
44
+ </translate>
45
+ </frontend>
46
+ <admin>
47
+ <routers>
48
+ <newsletterpopup>
49
+ <use>admin</use>
50
+ <args>
51
+ <module>Nik_Newsletterpopup</module>
52
+ <frontName>newsletterpopup</frontName>
53
+ </args>
54
+ </newsletterpopup>
55
+ </routers>
56
+ </admin>
57
+ <adminhtml>
58
+ <layout>
59
+ <updates>
60
+ <newsletterpopup>
61
+ <file>newsletterpopup.xml</file>
62
+ </newsletterpopup>
63
+ </updates>
64
+ </layout>
65
+ <translate>
66
+ <modules>
67
+ <Nik_Newsletterpopup>
68
+ <files>
69
+ <default>Nik_Newsletterpopup.csv</default>
70
+ </files>
71
+ </Nik_Newsletterpopup>
72
+ </modules>
73
+ </translate>
74
+ </adminhtml>
75
+ <global>
76
+ <models>
77
+ <newsletterpopup>
78
+ <class>Nik_Newsletterpopup_Model</class>
79
+ <resourceModel>newsletterpopup_mysql4</resourceModel>
80
+ </newsletterpopup>
81
+ <newsletterpopup_mysql4>
82
+ <class>Nik_Newsletterpopup_Model_Mysql4</class>
83
+ <entities>
84
+ <newsletterpopup>
85
+ <table>newsletterpopup</table>
86
+ </newsletterpopup>
87
+ </entities>
88
+ </newsletterpopup_mysql4>
89
+ <newsletter>
90
+ <rewrite>
91
+ <subscriber>Nik_Newsletterpopup_Model_Subscriber</subscriber>
92
+ </rewrite>
93
+ </newsletter>
94
+ </models>
95
+ <resources>
96
+ <newsletterpopup_setup>
97
+ <setup>
98
+ <module>Nik_Newsletterpopup</module>
99
+ </setup>
100
+ <connection>
101
+ <use>core_setup</use>
102
+ </connection>
103
+ </newsletterpopup_setup>
104
+ <newsletterpopup_write>
105
+ <connection>
106
+ <use>core_write</use>
107
+ </connection>
108
+ </newsletterpopup_write>
109
+ <newsletterpopup_read>
110
+ <connection>
111
+ <use>core_read</use>
112
+ </connection>
113
+ </newsletterpopup_read>
114
+ </resources>
115
+ <blocks>
116
+ <newsletterpopup>
117
+ <class>Nik_Newsletterpopup_Block</class>
118
+ </newsletterpopup>
119
+ </blocks>
120
+ <helpers>
121
+ <newsletterpopup>
122
+ <class>Nik_Newsletterpopup_Helper</class>
123
+ </newsletterpopup>
124
+ </helpers>
125
+ <template>
126
+ <email>
127
+ <newsletterpopup_coupon_code_setting_email_template translate="label" module="newsletterpopup">
128
+ <label>Newsletter subscription successful with coupon code</label>
129
+ <file>newsletter_subscr_success_with_coupon.html</file>
130
+ <type>html</type>
131
+ </newsletterpopup_coupon_code_setting_email_template>
132
+ </email>
133
+ </template>
134
+ </global>
135
+ <!--Set Default Value For Setting Options-->
136
+ <default>
137
+ <newsletterpopup>
138
+ <general>
139
+ <active>1</active>
140
+ <hide_after_close>1</hide_after_close>
141
+ <include_js>1</include_js>
142
+ <form_title>Sign Up To Keep In Touch!</form_title>
143
+ <timeout>1</timeout>
144
+ <time_delay>2</time_delay>
145
+ <notification>Subscribe for the best deals. Your Information will never be shared with any third party.</notification>
146
+ </general>
147
+ <coupon_code_setting>
148
+ <allow_create>0</allow_create>
149
+ <email_sender>general</email_sender>
150
+ <email_template>newsletterpopup_coupon_code_setting_email_template</email_template>
151
+ <discount_type>percent-of-product-price</discount_type>
152
+ <discount_amount>20</discount_amount>
153
+ <coupon_length>8</coupon_length>
154
+ <coupon_expires>15</coupon_expires>
155
+ <number_coupon_use>1</number_coupon_use>
156
+ </coupon_code_setting>
157
+ </newsletterpopup>
158
+ </default>
159
+ </config>
app/code/local/Nik/Newsletterpopup/etc/system.xml CHANGED
@@ -1,179 +1,179 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <tabs>
4
- <nik translate="label">
5
- <label>Nik Extensions</label>
6
- <sort_order>400</sort_order>
7
- </nik>
8
- </tabs>
9
- <sections>
10
- <newsletterpopup translate="label" module="newsletterpopup">
11
- <label>Newsletter Popup Pro</label>
12
- <tab>nik</tab>
13
- <frontend_type>text</frontend_type>
14
- <sort_order>299</sort_order>
15
- <show_in_default>1</show_in_default>
16
- <show_in_website>1</show_in_website>
17
- <show_in_store>1</show_in_store>
18
- <groups>
19
- <general translate="label">
20
- <label>General Setting</label>
21
- <frontend_type>text</frontend_type>
22
- <sort_order>1</sort_order>
23
- <show_in_default>1</show_in_default>
24
- <show_in_website>1</show_in_website>
25
- <show_in_store>1</show_in_store>
26
- <fields>
27
- <active translate="label">
28
- <label>Enable</label>
29
- <frontend_type>select</frontend_type>
30
- <source_model>adminhtml/system_config_source_yesno</source_model>
31
- <sort_order>1</sort_order>
32
- <show_in_default>1</show_in_default>
33
- <show_in_website>1</show_in_website>
34
- <show_in_store>0</show_in_store>
35
- </active>
36
- <include_js translate="label comment">
37
- <label>Include jQuery</label>
38
- <frontend_type>select</frontend_type>
39
- <source_model>adminhtml/system_config_source_yesno</source_model>
40
- <sort_order>2</sort_order>
41
- <show_in_default>1</show_in_default>
42
- <show_in_website>1</show_in_website>
43
- <show_in_store>0</show_in_store>
44
- <comment><![CDATA[Turn off jquery library if you already include it from another module]]></comment>
45
- </include_js>
46
- <form_title translate="label">
47
- <label>Popup Title</label>
48
- <frontend_type>text</frontend_type>
49
- <sort_order>5</sort_order>
50
- <show_in_default>1</show_in_default>
51
- <show_in_website>1</show_in_website>
52
- <show_in_store>1</show_in_store>
53
- </form_title>
54
- <hide_after_close translate="label comment">
55
- <label>Hide Popup after closing</label>
56
- <frontend_type>select</frontend_type>
57
- <source_model>adminhtml/system_config_source_yesno</source_model>
58
- <sort_order>8</sort_order>
59
- <show_in_default>1</show_in_default>
60
- <show_in_website>1</show_in_website>
61
- <show_in_store>0</show_in_store>
62
- <comment><![CDATA[After customers close the popup, it will not display again till cookie is expired.]]></comment>
63
- </hide_after_close>
64
- <time_delay translate="label">
65
- <label>Popup Timing</label>
66
- <frontend_type>text</frontend_type>
67
- <sort_order>10</sort_order>
68
- <show_in_default>1</show_in_default>
69
- <show_in_website>1</show_in_website>
70
- <show_in_store>1</show_in_store>
71
- <comment><![CDATA[Delay in seconds(for example "3") after page load]]></comment>
72
- </time_delay>
73
- <timeout translate="label">
74
- <label>Cookies timeout</label>
75
- <frontend_type>text</frontend_type>
76
- <sort_order>12</sort_order>
77
- <show_in_default>1</show_in_default>
78
- <show_in_website>1</show_in_website>
79
- <show_in_store>1</show_in_store>
80
- <comment><![CDATA[Set a cookie to expire after X days]]></comment>
81
- </timeout>
82
-
83
- <notification translate="label">
84
- <label>Notification</label>
85
- <frontend_type>textarea</frontend_type>
86
- <sort_order>15</sort_order>
87
- <show_in_default>1</show_in_default>
88
- <show_in_website>1</show_in_website>
89
- <show_in_store>1</show_in_store>
90
- </notification>
91
- </fields>
92
- </general>
93
- <coupon_code_setting translate="label">
94
- <label>Coupon Setting</label>
95
- <frontend_type>text</frontend_type>
96
- <sort_order>40</sort_order>
97
- <show_in_default>1</show_in_default>
98
- <show_in_website>1</show_in_website>
99
- <show_in_store>1</show_in_store>
100
- <fields>
101
- <allow_create translate="label comment">
102
- <label>Create coupon code</label>
103
- <frontend_type>select</frontend_type>
104
- <sort_order>1</sort_order>
105
- <source_model>adminhtml/system_config_source_yesno</source_model>
106
- <show_in_default>1</show_in_default>
107
- <show_in_website>1</show_in_website>
108
- <show_in_store>0</show_in_store>
109
- </allow_create>
110
- <email_sender translate="label comment">
111
- <label>Email Sender</label>
112
- <comment><![CDATA[Select the email sender]]></comment>
113
- <frontend_type>select</frontend_type>
114
- <source_model>adminhtml/system_config_source_email_identity</source_model>
115
- <sort_order>2</sort_order>
116
- <show_in_default>1</show_in_default>
117
- <show_in_website>1</show_in_website>
118
- <show_in_store>1</show_in_store>
119
- </email_sender>
120
- <email_template translate="label comment">
121
- <label>Email Template</label>
122
- <comment><![CDATA[Select an email template]]></comment>
123
- <frontend_type>select</frontend_type>
124
- <source_model>adminhtml/system_config_source_email_template</source_model>
125
- <sort_order>3</sort_order>
126
- <show_in_default>1</show_in_default>
127
- <show_in_website>1</show_in_website>
128
- <show_in_store>1</show_in_store>
129
- </email_template>
130
- <discount_type translate="label">
131
- <label>Discount Type</label>
132
- <frontend_type>select</frontend_type>
133
- <source_model>newsletterpopup/system_config_discounttype</source_model>
134
- <sort_order>5</sort_order>
135
- <show_in_default>1</show_in_default>
136
- <show_in_website>1</show_in_website>
137
- <show_in_store>1</show_in_store>
138
- </discount_type>
139
- <discount_amount translate="label comment">
140
- <label>Discount Amount</label>
141
- <frontend_type>text</frontend_type>
142
- <sort_order>6</sort_order>
143
- <show_in_default>1</show_in_default>
144
- <show_in_website>1</show_in_website>
145
- <show_in_store>1</show_in_store>
146
- <comment><![CDATA[Only enter numbers. Enter whole numbers for percents(5 = 5% discount).]]></comment>
147
- </discount_amount>
148
- <coupon_length translate="label comment">
149
- <label>Length of coupon code</label>
150
- <frontend_type>text</frontend_type>
151
- <sort_order>7</sort_order>
152
- <show_in_default>1</show_in_default>
153
- <show_in_website>1</show_in_website>
154
- <show_in_store>1</show_in_store>
155
- </coupon_length>
156
- <coupon_expires translate="label comment">
157
- <label>Coupon expires in</label>
158
- <frontend_type>text</frontend_type>
159
- <sort_order>8</sort_order>
160
- <show_in_default>1</show_in_default>
161
- <show_in_website>1</show_in_website>
162
- <show_in_store>1</show_in_store>
163
- <comment><![CDATA[Entering "0" means no expiry.]]></comment>
164
- </coupon_expires>
165
- <number_coupon_use translate="label comment">
166
- <label>Uses per Coupon</label>
167
- <frontend_type>text</frontend_type>
168
- <comment><![CDATA[Coupon Use x Time]]></comment>
169
- <sort_order>10</sort_order>
170
- <show_in_default>1</show_in_default>
171
- <show_in_website>1</show_in_website>
172
- <show_in_store>1</show_in_store>
173
- </number_coupon_use>
174
- </fields>
175
- </coupon_code_setting>
176
- </groups>
177
- </newsletterpopup>
178
- </sections>
179
  </config>
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <nik translate="label">
5
+ <label>Nik Extensions</label>
6
+ <sort_order>400</sort_order>
7
+ </nik>
8
+ </tabs>
9
+ <sections>
10
+ <newsletterpopup translate="label" module="newsletterpopup">
11
+ <label>Manage Newsletter Discount</label>
12
+ <tab>nik</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>299</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <general translate="label">
20
+ <label>General Setting</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>1</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <active translate="label">
28
+ <label>Enable</label>
29
+ <frontend_type>select</frontend_type>
30
+ <source_model>adminhtml/system_config_source_yesno</source_model>
31
+ <sort_order>1</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>0</show_in_store>
35
+ </active>
36
+ <include_js translate="label comment">
37
+ <label>Include jQuery</label>
38
+ <frontend_type>select</frontend_type>
39
+ <source_model>adminhtml/system_config_source_yesno</source_model>
40
+ <sort_order>2</sort_order>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>0</show_in_store>
44
+ <comment><![CDATA[Turn off jquery library if you already include it from another module]]></comment>
45
+ </include_js>
46
+ <form_title translate="label">
47
+ <label>Popup Title</label>
48
+ <frontend_type>text</frontend_type>
49
+ <sort_order>5</sort_order>
50
+ <show_in_default>1</show_in_default>
51
+ <show_in_website>1</show_in_website>
52
+ <show_in_store>1</show_in_store>
53
+ </form_title>
54
+ <hide_after_close translate="label comment">
55
+ <label>Hide Popup after closing</label>
56
+ <frontend_type>select</frontend_type>
57
+ <source_model>adminhtml/system_config_source_yesno</source_model>
58
+ <sort_order>8</sort_order>
59
+ <show_in_default>1</show_in_default>
60
+ <show_in_website>1</show_in_website>
61
+ <show_in_store>0</show_in_store>
62
+ <comment><![CDATA[After customers close the popup, it will not display again till cookie is expired.]]></comment>
63
+ </hide_after_close>
64
+ <time_delay translate="label">
65
+ <label>Popup Timing</label>
66
+ <frontend_type>text</frontend_type>
67
+ <sort_order>10</sort_order>
68
+ <show_in_default>1</show_in_default>
69
+ <show_in_website>1</show_in_website>
70
+ <show_in_store>1</show_in_store>
71
+ <comment><![CDATA[Delay in seconds(for example "3") after page load]]></comment>
72
+ </time_delay>
73
+ <timeout translate="label">
74
+ <label>Cookies timeout</label>
75
+ <frontend_type>text</frontend_type>
76
+ <sort_order>12</sort_order>
77
+ <show_in_default>1</show_in_default>
78
+ <show_in_website>1</show_in_website>
79
+ <show_in_store>1</show_in_store>
80
+ <comment><![CDATA[Set a cookie to expire after X days]]></comment>
81
+ </timeout>
82
+
83
+ <notification translate="label">
84
+ <label>Notification</label>
85
+ <frontend_type>textarea</frontend_type>
86
+ <sort_order>15</sort_order>
87
+ <show_in_default>1</show_in_default>
88
+ <show_in_website>1</show_in_website>
89
+ <show_in_store>1</show_in_store>
90
+ </notification>
91
+ </fields>
92
+ </general>
93
+ <coupon_code_setting translate="label">
94
+ <label>Coupon Setting</label>
95
+ <frontend_type>text</frontend_type>
96
+ <sort_order>40</sort_order>
97
+ <show_in_default>1</show_in_default>
98
+ <show_in_website>1</show_in_website>
99
+ <show_in_store>1</show_in_store>
100
+ <fields>
101
+ <allow_create translate="label comment">
102
+ <label>Create coupon code</label>
103
+ <frontend_type>select</frontend_type>
104
+ <sort_order>1</sort_order>
105
+ <source_model>adminhtml/system_config_source_yesno</source_model>
106
+ <show_in_default>1</show_in_default>
107
+ <show_in_website>1</show_in_website>
108
+ <show_in_store>0</show_in_store>
109
+ </allow_create>
110
+ <email_sender translate="label comment">
111
+ <label>Email Sender</label>
112
+ <comment><![CDATA[Select the email sender]]></comment>
113
+ <frontend_type>select</frontend_type>
114
+ <source_model>adminhtml/system_config_source_email_identity</source_model>
115
+ <sort_order>2</sort_order>
116
+ <show_in_default>1</show_in_default>
117
+ <show_in_website>1</show_in_website>
118
+ <show_in_store>1</show_in_store>
119
+ </email_sender>
120
+ <email_template translate="label comment">
121
+ <label>Email Template</label>
122
+ <comment><![CDATA[Select an email template]]></comment>
123
+ <frontend_type>select</frontend_type>
124
+ <source_model>adminhtml/system_config_source_email_template</source_model>
125
+ <sort_order>3</sort_order>
126
+ <show_in_default>1</show_in_default>
127
+ <show_in_website>1</show_in_website>
128
+ <show_in_store>1</show_in_store>
129
+ </email_template>
130
+ <discount_type translate="label">
131
+ <label>Discount Type</label>
132
+ <frontend_type>select</frontend_type>
133
+ <source_model>newsletterpopup/system_config_discounttype</source_model>
134
+ <sort_order>5</sort_order>
135
+ <show_in_default>1</show_in_default>
136
+ <show_in_website>1</show_in_website>
137
+ <show_in_store>1</show_in_store>
138
+ </discount_type>
139
+ <discount_amount translate="label comment">
140
+ <label>Discount Amount</label>
141
+ <frontend_type>text</frontend_type>
142
+ <sort_order>6</sort_order>
143
+ <show_in_default>1</show_in_default>
144
+ <show_in_website>1</show_in_website>
145
+ <show_in_store>1</show_in_store>
146
+ <comment><![CDATA[Only enter numbers. Enter whole numbers for percents(5 = 5% discount).]]></comment>
147
+ </discount_amount>
148
+ <coupon_length translate="label comment">
149
+ <label>Length of coupon code</label>
150
+ <frontend_type>text</frontend_type>
151
+ <sort_order>7</sort_order>
152
+ <show_in_default>1</show_in_default>
153
+ <show_in_website>1</show_in_website>
154
+ <show_in_store>1</show_in_store>
155
+ </coupon_length>
156
+ <coupon_expires translate="label comment">
157
+ <label>Coupon expires in</label>
158
+ <frontend_type>text</frontend_type>
159
+ <sort_order>8</sort_order>
160
+ <show_in_default>1</show_in_default>
161
+ <show_in_website>1</show_in_website>
162
+ <show_in_store>1</show_in_store>
163
+ <comment><![CDATA[Entering "0" means no expiry.]]></comment>
164
+ </coupon_expires>
165
+ <number_coupon_use translate="label comment">
166
+ <label>Uses per Coupon</label>
167
+ <frontend_type>text</frontend_type>
168
+ <comment><![CDATA[Coupon Use x Time]]></comment>
169
+ <sort_order>10</sort_order>
170
+ <show_in_default>1</show_in_default>
171
+ <show_in_website>1</show_in_website>
172
+ <show_in_store>1</show_in_store>
173
+ </number_coupon_use>
174
+ </fields>
175
+ </coupon_code_setting>
176
+ </groups>
177
+ </newsletterpopup>
178
+ </sections>
179
  </config>
app/design/frontend/{default → base}/default/layout/newsletterpopup.xml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/newsletterpopup/head.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/newsletterpopup/newsletterpopup.phtml RENAMED
File without changes
package.xml CHANGED
@@ -1,42 +1,35 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Nik_Newsletterpopup</name>
4
- <version>0.2.0</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Newsletter Popup allows you to see a newsletter subscription popup when customers visit your website.</summary>
10
- <description>Newsletter Popup Pro extension is help in achieving more subscribers for your newsletter system by a newsletter form popup on your store homepage. In other words, it is now easy for you to attract leading customers who are actually interested in your services and products.&#xD;
 
11
  &#xD;
12
- Allow customer to make subscription for your newsletter emails in the first landing at your store&#xD;
13
- Newsletter Popup is developed using jQuery compatible with Magento. After the installation has been successfully manipulated, it will display a popup automatically when customers visit your Magento home page. By this way, customers can subscribe email to Magento newsletter system via the popup form&#xD;
14
  &#xD;
15
- Hide the newsletter popup in the following cases&#xD;
16
- In the backend, you can configure the module to hide the popup after:&#xD;
17
  &#xD;
18
- Customers subscribe their email&#xD;
19
- Customers close the popup&#xD;
20
- You can avoid customer annoyance by turning on the &#x201C;disable after closing&#x201D; function. In details, this feature makes sure that customers will see the popup one time until cookie become expired.&#xD;
21
  &#xD;
22
- Allow a store owner to customize popup easily.&#xD;
23
  &#xD;
24
- Get more subscribers with coupon code&#xD;
25
- Allow store owner to create &amp; send coupon codes to subscribers in newsletter subscription emails. This configuration allows you to define parameters to create coupon code automatically.&#xD;
26
- &#xD;
27
- Additional configuration&#xD;
28
  Display the popup after X seconds: That means the popup is only shown after customer visit your homepage for X seconds&#xD;
29
  Allow to enable/disable jQuery to avoid conflict problems&#xD;
30
  Flexible content setup&#xD;
31
- Admin can select between 2 options: display newsletter form or content from a static block in the popup&#xD;
32
- Admin can enable the popup in all pages or only store homepage</description>
33
- <notes>Release first version 0.2.0&#xD;
34
  &#xD;
35
- Compatible with 1.9 and New Feature</notes>
36
- <authors><author><name>Nikunj Vadariya</name><user>nikunjvadariya</user><email>nikunjpatel789@gmail.com</email></author></authors>
37
- <date>2014-10-31</date>
38
- <time>05:34:38</time>
39
- <contents><target name="magelocal"><dir name="Nik"><dir><dir name="Newsletterpopup"><dir name="Block"><file name="Newsletterpopup.php" hash="b564288a8f408fabdeb364b2b6f75c48"/></dir><dir name="Helper"><file name="Data.php" hash="bc14b36db92f37fae867f427d1d099a6"/></dir><dir name="Model"><file name="Newsletterpopup.php" hash="dc6f22e84a226c25c3613600d42eb89d"/><file name="Observer.php" hash="b82854035dba6e8b5978448d3bd94d91"/><file name="Subscriber.php" hash="92b970c82e4f10fa1f5cea289eb19da4"/><dir name="System"><dir name="Config"><file name="Discounttype.php" hash="f5d5fde631fc507cac3b812e54c446d8"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="607c1a861bf062eb616e89483f9502b7"/><file name="SubscriberController.php" hash="a6f748ee700328c88c716ef3bc3bb657"/></dir><dir name="etc"><file name="adminhtml.xml" hash="ddd85dfcbcf5f44d15ce8bce40297f6a"/><file name="config.xml" hash="8bfa254eb48e74a4f0f67e9dc56e6c0d"/><file name="system.xml" hash="71db3fc196dc01cb9e9daebad0621adc"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Nik_Newsletterpopup.xml" hash="f82d820deb9c336e46764f5e7d63e435"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="newsletter_subscr_success_with_coupon.html" hash="2eaec5fa131d016305837308d8d8bb80"/></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="nik"><dir name="newsletterpopup"><file name="jquery.cookie.js" hash="125243e5339bfb528f2db77020c63c5b"/><file name="jquery.fancybox.js" hash="fc1d00fc2873d7bccaa25adfb86af652"/><file name="jquery.min.js" hash="b8d64d0bc142b3f670cc0611b0aebcae"/><file name="jquery.noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><dir name="newsletterpopup"><dir name="images"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="close.png" hash="4cb00fb3da91905c22bdc290b3b620b2"/><file name="fancybox_loading.gif" hash="c6f1ad4957e50b83bb27691df8bc3f41"/><file name="fancybox_sprite.png" hash="61c66a5947e7bf772f7ec1c7985feec6"/></dir><file name="jquery.fancybox.css" hash="94ce9ef94b0f730d05fbc96ef1df6e83"/><file name="newsletterpopup.css" hash="4209c53f954e52ad9cca80baeab265f6"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="newsletterpopup"><file name="head.phtml" hash="efbbe3e325e2b83a3f5c51b61c3f0644"/><file name="newsletterpopup.phtml" hash="0811defd74734b3769f3867e2271fdc0"/></dir></dir><dir name="layout"><file name="newsletterpopup.xml" hash="6dce4be432d2a094d51eef72eb3d250c"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="newsletterpopup.xml" hash="2530cc4dfbbe998124a3b116b9bff064"/></dir></dir></dir></dir></target></contents>
 
40
  <compatible/>
41
- <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
42
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Nik_Newsletterpopup</name>
4
+ <version>0.3.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>Newsletter subscription popup see when customers visit your site. And get Discount Coupon after subscription. </summary>
10
+ <description>Newsletter Subscription with Discount Coupon&#xD;
11
+ Newsletter Popup extension is help in achieving more subscribers for your newsletter system by a newsletter form popup on your store homepage. In other words, it is now easy for you to attract leading customers who are actually interested in your services and products.&#xD;
12
  &#xD;
13
+ Allow customer to make subscription for your newsletter emails in the first landing at your store Newsletter Popup is developed using jQuery compatible with Magento. After the installation has been successfully manipulated, it will display a popup automatically when customers visit your Magento home page. By this way, customers can subscribe email to Magento newsletter system via the popup form&#xD;
 
14
  &#xD;
15
+ Hide the newsletter popup in the following cases In the backend, you can configure the module to hide the popup after:&#xD;
 
16
  &#xD;
17
+ Customers subscribe their email Customers close the popup You can avoid customer annoyance by turning on the &#x201C;disable after closing&#x201D; function. In details, this feature makes sure that customers will see the popup one time until cookie become expired.&#xD;
 
 
18
  &#xD;
19
+ Allow a store owner to customize popup easily. Get more subscribers with coupon code Allow store owner to create &amp; send coupon codes to subscribers in newsletter subscription emails. This configuration allows you to define parameters to create coupon code automatically.&#xD;
20
  &#xD;
21
+ Additional configuration:&#xD;
 
 
 
22
  Display the popup after X seconds: That means the popup is only shown after customer visit your homepage for X seconds&#xD;
23
  Allow to enable/disable jQuery to avoid conflict problems&#xD;
24
  Flexible content setup&#xD;
25
+ Admin can select between 2 options: display newsletter form or content from a static block in the popup Admin can enable the popup in all pages or only store homepage&#xD;
 
 
26
  &#xD;
27
+ Note: Please install module files inside your theme.</description>
28
+ <notes>Fix minor Displaying related issue</notes>
29
+ <authors><author><name>nikunj vadariya</name><user>nikunjvadariya</user><email>nikunjpatel789@gmail.com</email></author></authors>
30
+ <date>2014-12-18</date>
31
+ <time>07:29:02</time>
32
+ <contents><target name="magelocal"><dir name="Nik"><dir name="Newsletterpopup"><dir name="Block"><file name="Newsletterpopup.php" hash="b564288a8f408fabdeb364b2b6f75c48"/></dir><dir name="Helper"><file name="Data.php" hash="bc14b36db92f37fae867f427d1d099a6"/></dir><dir name="Model"><file name="Newsletterpopup.php" hash="dc6f22e84a226c25c3613600d42eb89d"/><file name="Observer.php" hash="b82854035dba6e8b5978448d3bd94d91"/><file name="Subscriber.php" hash="92b970c82e4f10fa1f5cea289eb19da4"/><dir name="System"><dir name="Config"><file name="Discounttype.php" hash="f5d5fde631fc507cac3b812e54c446d8"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="607c1a861bf062eb616e89483f9502b7"/><file name="SubscriberController.php" hash="a6f748ee700328c88c716ef3bc3bb657"/></dir><dir name="etc"><file name="adminhtml.xml" hash="ddd85dfcbcf5f44d15ce8bce40297f6a"/><file name="config.xml" hash="cba3c61237d18622975dd8b69e2989e6"/><file name="system.xml" hash="7efe96415e6e8784b5d6aa724ecb5aad"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Nik_Newsletterpopup.xml" hash="f82d820deb9c336e46764f5e7d63e435"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="newsletterpopup"><file name="head.phtml" hash="efbbe3e325e2b83a3f5c51b61c3f0644"/><file name="newsletterpopup.phtml" hash="0811defd74734b3769f3867e2271fdc0"/></dir></dir><dir name="layout"><file name="newsletterpopup.xml" hash="6dce4be432d2a094d51eef72eb3d250c"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="newsletterpopup.xml" hash="2530cc4dfbbe998124a3b116b9bff064"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="newsletter_subscr_success_with_coupon.html" hash="2eaec5fa131d016305837308d8d8bb80"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="newsletterpopup"><dir name="images"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="close.png" hash="4cb00fb3da91905c22bdc290b3b620b2"/><file name="fancybox_loading.gif" hash="c6f1ad4957e50b83bb27691df8bc3f41"/><file name="fancybox_sprite.png" hash="61c66a5947e7bf772f7ec1c7985feec6"/></dir><file name="jquery.fancybox.css" hash="94ce9ef94b0f730d05fbc96ef1df6e83"/><file name="newsletterpopup.css" hash="6895ca2bb3fa0152add0ae075812e905"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="nik"><dir name="newsletterpopup"><file name="jquery.cookie.js" hash="125243e5339bfb528f2db77020c63c5b"/><file name="jquery.fancybox.js" hash="fc1d00fc2873d7bccaa25adfb86af652"/><file name="jquery.min.js" hash="b8d64d0bc142b3f670cc0611b0aebcae"/><file name="jquery.noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/></dir></dir></dir></target></contents>
33
  <compatible/>
34
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
35
  </package>
skin/frontend/{default → base}/default/css/newsletterpopup/images/blank.gif RENAMED
File without changes
skin/frontend/{default → base}/default/css/newsletterpopup/images/close.png RENAMED
File without changes
skin/frontend/{default → base}/default/css/newsletterpopup/images/fancybox_loading.gif RENAMED
File without changes
skin/frontend/{default → base}/default/css/newsletterpopup/images/fancybox_sprite.png RENAMED
File without changes
skin/frontend/{default → base}/default/css/newsletterpopup/jquery.fancybox.css RENAMED
File without changes
skin/frontend/{default → base}/default/css/newsletterpopup/newsletterpopup.css RENAMED
@@ -1,59 +1,59 @@
1
- /********Css For newsletterpopup************/
2
- #form-subscribe { display: none; width: 350px; min-height:150px;}
3
- #form-subscribe .form-content label{float:left; width:100%; font-size:12px; font-weight:bold; color:#000000; margin:0 0 5px; text-align:left; text-transform:uppercase;}
4
- #form-subscribe .form-content .input-box{float:left; text-align:left;}
5
- #form-subscribe .form-content #notification{float:left; width:100%; margin:10px 0 0; text-align:left;}
6
- #form-subscribe .form-content #notification address{font-size:11px; font-style:italic; color:#8f8f8f;}
7
- #form-subscribe .form-content .input-box input.input-text{width:200px; height:25px;}
8
- #form-subscribe .form-content .input-box .validation-advice{width:192px; margin-left: -3px;}
9
- #form-subscribe .form-content .actions{float:right;}
10
- .boxm {
11
- padding-left: 23px;
12
- padding-top: 40px;
13
- width: 304px;
14
- }
15
- .fancybox-inner button.button {
16
- width: auto;
17
- height: 31px;
18
- margin-left: 5px;
19
- border-radius: 2px;
20
- float: right;
21
- -webkit-border-fit: border !important;
22
- text-transform: uppercase;
23
- }
24
- .fancybox-inner button:hover {
25
- background: #3399CC !important;
26
- }
27
- .fancybox-inner button {
28
- background: #000000 !important;
29
- }
30
- .fancybox-inner button span {
31
- padding: 10px ;
32
- border: none !important;
33
- background: none !important;
34
- font-size: 12px !important;
35
- font-weight: 600 !important;
36
- line-height: 1.25em !important;
37
- text-shadow: none;
38
- display: inline !important;
39
- float: none;
40
- }
41
-
42
- .subscribe-btn {padding: 0 !important;
43
- border: none !important;
44
- background: none !important;
45
- font-size: 1.25em !important;
46
- font-weight: 600 !important;
47
- line-height: 1.25em !important;
48
- text-shadow: none;
49
- display: inline !important;
50
- float: none;}
51
- #subscribe-validate-detail {
52
- border-bottom: 1px solid #E4E4E3;
53
- display: block;
54
- margin: 25px 0 19px;
55
- padding: 0 0 61px;
56
- }
57
- .fancybox-inner #form-subscribe .form-content label {
58
- text-align: center !important;
59
- }
1
+ /********Css For newsletterpopup************/
2
+ #form-subscribe { display: none; width: 350px; min-height:150px;}
3
+ #form-subscribe .form-content label{float:left; width:100%; font-size:12px; font-weight:bold; color:#000000; margin:0 0 5px; text-align:left; text-transform:uppercase;}
4
+ #form-subscribe .form-content .input-box{float:left; text-align:left;}
5
+ #form-subscribe .form-content #notification{float:left; width:100%; margin:10px 0 0; text-align:left;}
6
+ #form-subscribe .form-content #notification address{font-size:11px; font-style:italic; color:#8f8f8f;}
7
+ #form-subscribe .form-content .input-box input.input-text{width:200px; height:25px;}
8
+ #form-subscribe .form-content .input-box .validation-advice{width:192px; margin-left: -3px;}
9
+ #form-subscribe .form-content .actions{float:right;}
10
+ .boxm {
11
+ padding-left: 23px;
12
+ padding-top: 40px;
13
+ width: 87%;
14
+ }
15
+ .fancybox-inner button.button {
16
+ width: auto;
17
+ height: 31px;
18
+ margin-left: 5px;
19
+ border-radius: 2px;
20
+ float: right;
21
+ -webkit-border-fit: border !important;
22
+ text-transform: uppercase;
23
+ }
24
+ .fancybox-inner button:hover {
25
+ background: #3399CC !important;
26
+ }
27
+ .fancybox-inner button {
28
+ background: #000000 !important;
29
+ }
30
+ .fancybox-inner button span {
31
+ padding: 10px ;
32
+ border: none !important;
33
+ background: none !important;
34
+ font-size: 12px !important;
35
+ font-weight: 600 !important;
36
+ line-height: 1.25em !important;
37
+ text-shadow: none;
38
+ display: inline !important;
39
+ float: none;
40
+ }
41
+
42
+ .subscribe-btn {padding: 0 !important;
43
+ border: none !important;
44
+ background: none !important;
45
+ font-size: 1.25em !important;
46
+ font-weight: 600 !important;
47
+ line-height: 1.25em !important;
48
+ text-shadow: none;
49
+ display: inline !important;
50
+ float: none;}
51
+ #subscribe-validate-detail {
52
+ border-bottom: 1px solid #E4E4E3;
53
+ display: block;
54
+ margin: 25px 0 19px;
55
+ padding: 0 0 61px;
56
+ }
57
+ .fancybox-inner #form-subscribe .form-content label {
58
+ text-align: center !important;
59
+ }