antobarto Posted October 22, 2021 Share Posted October 22, 2021 (edited) Hi, long time no see. In a much, much earlier version of PS I successfully added a tiny selfmade plugin (function.cmsms_menu.php) to PS. As far as I can reconstruct it the directory may have been tools->smarty->plugins. The function was to display an external cms-navigation in the prestashop header to allow users to navigate the shop and the CMS-website both. The CMS website was realised with CMS MAde Simple. The function looked like this: <?php function smarty_function_cmsms_menu($params, &$smarty) { return trim(file_get_contents('url_to_navigation')); } ?> "url_to_navigation" is a link to an external page with a minimal template which contains only the navigation html code. To display the navigation menu I just had to paste the tag named {cmsms_menu} into the PS-header template and it worked fine.. In PS 1.7 the structure has changed a lot. I have tried different directories to upload the plugin but they all may be wrong. No navigation and no error reportings are displayed. The tag is also not displayed in the front end source code. So here are my questions: Where I have to upload selfmade plugins/functions in 1.7.x? Is the syntax of the tag and name of the file still valid in PS 1.7.x? Thanks a lot so far Edited October 22, 2021 by antobarto (see edit history) Link to comment Share on other sites More sharing options...
antobarto Posted November 1, 2021 Author Share Posted November 1, 2021 Don't ask me how I did, but I made it work. Maybe compiling was off temporarily. 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