Jump to content

Where adding selfmade plugins?


Recommended Posts

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 by antobarto (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...