PrabuSS Posted April 4, 2017 Share Posted April 4, 2017 (edited) Hi I've created cms page called delivery(id->4). I would like to display or embed this page content globally in product detail page or product.tpl. How do i do this? Please any one. PS version : 1.6.1.6 I've tried this thread, but its not working in PS 1.6.1.6 https://www.prestashop.com/forums/topic/284307-solved-adding-cms-content-within-another-page/ Edited April 4, 2017 by Prabukaran (see edit history) Link to comment Share on other sites More sharing options...
Presta With Me Posted April 4, 2017 Share Posted April 4, 2017 Can you explain step by step which you followed? I think it is correct, maybe you missed some steps. Or at least try to delete your caching and test it again. Sometime it due to caching problem. Link to comment Share on other sites More sharing options...
vekia Posted April 5, 2017 Share Posted April 5, 2017 in product controller add: $cms_delivery = new CMS(4, $this->context->language->id, $this->context->shop->id); and assign it to smarty: $this->context->smarty->assign('cms_delivery',$cms_delivery) you will be able to use $cms_delivery variable in product.tpl file (its an array with cms object) 1 Link to comment Share on other sites More sharing options...
outlet.ee Posted November 9 Share Posted November 9 On 4/5/2017 at 3:50 PM, vekia said: in product controller add: $cms_delivery = new CMS(4, $this->context->language->id, $this->context->shop->id); and assign it to smarty: $this->context->smarty->assign('cms_delivery',$cms_delivery) you will be able to use $cms_delivery variable in product.tpl file (its an array with cms object) How to implement this in 1.8? Link to comment Share on other sites More sharing options...
rictools Posted November 9 Share Posted November 9 Vekia has published a free module for this: https://mypresta.eu/modules/front-office-features/product-page-cms-tab.html Link to comment Share on other sites More sharing options...
outlet.ee Posted November 10 Share Posted November 10 20 hours ago, rictools said: Vekia has published a free module for this: https://mypresta.eu/modules/front-office-features/product-page-cms-tab.html Great, thanks! Is there any way to move the CMS content out of the tabs, like next to price? I tried to play with hooks and inserted {$cmstab->content} everywhere but it does not show anywhere but in the dedicated tab. 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