Denismarcaurele Posted September 26, 2016 Share Posted September 26, 2016 (edited) Hi everyone, Hello everyone, I would use a cms page to create an HTML news letter and then copy the HTML code that results. Why not make a custom page .... I use a module to easily add products to a page but it only works through the PrestaShop editor. (See: https://mypresta.eu/...cms-pages.html) Problem: The header and footer should not be part of the email. I searched in vain for a solution. I understand that I have to add dan provided header.tpl and footer.tpl in connection with the id of the page but I can not Someone would have an idea? Edited September 26, 2016 by Denismarcaurele (see edit history) Link to comment Share on other sites More sharing options...
modprestashop Posted September 26, 2016 Share Posted September 26, 2016 Nope you don't need to do anything for that. Let me explain. You just need to append a query string variable in link to truncate header and footer from CMS page. Visit both link you will understand what i am trying to say. This is ordinary link http://www.ps.vipulhadiya.com/content/1-delivery and this is without header and footer http://www.ps.vipulhadiya.com/content/1-delivery?content_only=1 This facility is given by PrestaShop so don't worry about standards. 2 Link to comment Share on other sites More sharing options...
Denismarcaurele Posted September 26, 2016 Author Share Posted September 26, 2016 Thanks for your answer I tried it but it don't work on my site...? http://tropicazoo.com/fr/content/23-infolettre1 http://tropicazoo.com/fr/content/23-infolettre1?content_only=1 Link to comment Share on other sites More sharing options...
modprestashop Posted September 26, 2016 Share Posted September 26, 2016 I can see product listing on your CMS page, it means you have overrided CmsController, that is fine but i am sure your theme must be hard coded it is not as it should be coded. If you have basic Smarty, HTML and PHP knowledge then you can make it proper from default PrestaShop theme or share your cms.tpl file here please. 2 Link to comment Share on other sites More sharing options...
modprestashop Posted September 26, 2016 Share Posted September 26, 2016 Check carefully there is no footer in this link http://tropicazoo.com/fr/content/23-infolettre1?content_only=1 It works but you have some override, i think so, and some hard coded portion in theme. I can see you have modified default-bootstrap theme. 2 Link to comment Share on other sites More sharing options...
Denismarcaurele Posted September 26, 2016 Author Share Posted September 26, 2016 Thanks a lot! Now it is workng. I forgoted to put back the original header.tpl Thanks again I was searching for 3 days Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now