Hi there, I just bought the module because I saw that it gave the possibility to insert shortcodes as content. On my shop I use Creative elements to create page and section templates. What I would like to do is insert a shortcode in the popup (for example: {hook h='CETemplate' id=15}) that shows a section template created with Creative elements. But so far I have not had any luck. Where am I going wrong? Thanks for the support
Editor included to popup pro module works the same like product page editor works, category editor, cms page contents editor etc. YOu can use there only pure html, javascript and css - the languages that are executed in browser (not on server side like language like smarty / php etc.)
to achieve what you expect (run hook
{hook h='CETemplate' id=15}
) you need to use smarty templates editor. A tool that module has as a feature, it's available here: https://imgur.com/a/DTcA2VE `- click on "smarty templates editor" button to spawn the editor popup window
- create new template: https://imgur.com/91WAEAd with name - let's say:
CETemplate
and hit save button - go back to "edit templates" tab to see list of created templates - edit your new
CETemplate\
- paste your code to run hook to contents of template and save it https://imgur.com/ZrNXLMk after save click "back" to see list of templates
- copy shortcode code: https://imgur.com/undefined
- ans paste it to popup contents: https://imgur.com/bJNa943
that's all. From now popup will execute the smarty code you typed - so hook will be executed :)
0 comments:
Post a Comment