Hi, guys.
Just finished implementation of this. Let's test it =)
Thanks supreme for code fragments (
http://forum.opencart.com/viewtopic.php ... ter#p20001)
So,
1. Create mysql table for our subscribers
Code: Select all
-- Subscriber table
CREATE TABLE `subscriber` (
`email` varchar(96) collate utf8_unicode_ci NOT NULL,
`name` varchar(128) collate utf8_unicode_ci NOT NULL default '',
`status` int(1) NOT NULL,
PRIMARY KEY (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
2. Apply patch from attach
Code: Select all
cd /path/to/opencart/instance
tar -xjf newsletter_module.tar.bz2
patch -p1 < newsletter_module_opencart.patch
rm catalog/view/theme/default/template/subscription/edit.tpl
Do not disturb about excessive file subscription/edit.tpl - added mistaken
3. Resolve conflicts if any (I've used Open cart 1.3.2)
4. Going to admin->configuration->user groups and set permissions for admin user to newly added module (module/newsletter)
5. install Newsletter module and configure it.
5.1 Edit catalog/view/theme/default/template/module/newsletter.tpl in accordance with your design.
6. say "Thank you, dude" to me ;-)
If you have some problems let me know.
Note: I didn't test it yet. So, yours feedbacks are welcome.
thanks
Sorry for bad english