fitgura Posted October 16, 2019 Share Posted October 16, 2019 Hello! I 've write a simple bootstrap 4 html + php code to place it into every product page! It means simple <?php mysqli connect + echo'... ?> between div tags, nothing special... (Must write a php code because echo the informations from a separated database - what always change) There is may way to put codes for a desired hooks (contentbox 1.7, template featured html, css, js solutions) the problem is php codes not works even html purifier is switched off... Please if anyone have any idea how to solve this situation, advise me... Any idea would be appreciated THX! Link to comment Share on other sites More sharing options...
El Patron Posted October 16, 2019 Share Posted October 16, 2019 Howdy, PS uses smarty, so when we search 'smarty inset php code' for example we get these results https://www.google.com/search?q=smarty+inserting+php+code&oq=smarty+inserting+php+code&aqs=chrome..69i57j0l2.5501j0j9&sourceid=chrome&ie=UTF-8 smarty is the framework (for now) so use their .doc to accomplish happy selling, el Link to comment Share on other sites More sharing options...
fitgura Posted October 17, 2019 Author Share Posted October 17, 2019 Dear El! Thanks for your suggestion, but unfortunately {php} functions deprecated in smarty 3 (and wanted to avoid modify the sources like tpl files in our shop...) finaly looks like I have to convert my php codes to js and call them with ajax... Right now I have to find out how to do that 😮 Thanks anyway... Link to comment Share on other sites More sharing options...
El Patron Posted October 17, 2019 Share Posted October 17, 2019 Howdy, with 1.7 we finally have template inheritance, so the need to place php into .tpl files is really no longer required as we can now modify/delete front office content with a module and template inheritance. this should prove useful to find best solution https://devdocs.prestashop.com/ 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