ZORROwned Posted May 3, 2021 Share Posted May 3, 2021 (edited) Hi! My purpose is to show the result of a SELECT on adminXXXXXXXXX\themes\default\template\controllers\orders\helpers\view\view.tpl Basicaly, i want to show up a sql value from a table of the mySQL DB on the Admin Order page. How should i do that? Writting directly on the tpl? I'm new on Prestashop and Smarty so idk 😕 I've attached some screenshots so you can have a better idea of this: This SC is how it looks rn. Here i marked what i need. Edit: I've read that the main reason for using Smarty is to separate Logic and View (make sense), so, where should i put my PHP code, so i can access the variables on th .tpl files? TY for your help! PS Version: 1.7.5.1 Edited May 3, 2021 by ZORROwned Add info (see edit history) 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