Jump to content

Modifying view.tpl to show SQL


Recommended Posts

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.actual admin page on orders.PNG

Here i marked what i need.what i need.PNG

 

 

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

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...