Jump to content

Edit History

ZORROwned

ZORROwned


Add info

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

ZORROwned

ZORROwned


Wrong pic order

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

 

TY for your help!

 

PS Version: 1.7.5.1

ZORROwned

ZORROwned

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.

 

 

 

 

TY for your help!

 

PS Version: 1.7.5.1

actual admin page on orders.PNG

what i need.PNG

×
×
  • Create New...