gray Posted June 4, 2022 Share Posted June 4, 2022 (edited) Anyone have a list of modules that uses the new WidgetInterface (implemented from PS v1.7) Quote https://devdocs.prestashop.com/1.7/modules/concepts/widgets/ Limitation of hooks In their basic use, a display hook will be shown at a specific place in the template. If a module wants to display the same additional content on several places, whatever the merchant chose, it still has to register and implement all the possible hooks. With widgets, module developers can display content everywhere the module is asked to do so. Seems like the way to go. But I cannot find any modules that use this method. Except Quote https://www.sunnytoo.com/forums/topic/change-vcc-to-elementor Yes, the products slider modules implement the renderWidget method. Any advice please. Edited June 4, 2022 by gray add links (see edit history) Link to comment Share on other sites More sharing options...
Daresh Posted June 4, 2022 Share Posted June 4, 2022 Most modern modules written for PrestaShop 1.7 use widgets, but simply don't write about it in their specs. You need to start from the specific feature that you need, not implementation details. Link to comment Share on other sites More sharing options...
gray Posted June 4, 2022 Author Share Posted June 4, 2022 It seems to be a problem in embedding the old style of hooking modules into a theme, using Creative Elements. But I am advised that if the module implements the new WidgetInterface, it is easy. As its doing my head in trying to hook modules into Creative Elements Anybody any thoughts or advice. 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