ZeroX42 Posted November 20, 2016 Share Posted November 20, 2016 I'm working on a Welcome Email plug-in. However, I'm having some issues. One, it's saving Plain-text, not FCK, chances are I'm just missing something here. Two, I don't know how to trigger it without modifying the registration script itself. Any documentation would be good but then I've searched and seem to find there is nothing? Why is there no documentation for module development? Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 20, 2016 Share Posted November 20, 2016 "The HTML editor is saving as plain-text instead of HTML." The rich-text editor allows to design a web page using graphical tools and dialog boxes. To actually be able to type in raw HTML code, you will need to switch the editor to Source mode. On the top toolbar row, click the Source button. Then tags and other HTML syntax will be safe. Also, when saving the contents of the rich-text editor, the PHP code that accepts the editor's content to be databased must use: $GLOBALS['RAW']['POST']['name_of_text_editor_content_field'] Otherwise, $_POST['name_of_field'] has tags and stuff stripped out -- for safety. I am not aware of any documentation for plugin development. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted November 21, 2016 Share Posted November 21, 2016 There is basic documentation found here : https://support.cubecart.com/Knowledgebase/Article/View/203/46/how-can-i-create-a-plugin-using-the-code-hooks-system After that, I would suggest looking at a couple of the simpler free plugins and seeing how they are put together Ian Quote Link to comment Share on other sites More sharing options...
ZeroX42 Posted November 21, 2016 Author Share Posted November 21, 2016 Decided to hard code the changes needed. Thanks though. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.