How to display any Smarty template?
// display it right away $tpl = _PS_ALL_THEMES_DIR_.'/my_theme/templates/index.tpl'; $this->context->smarty->display($tpl);...
How to use Uploader, the Prestashop upload management class?
Tired of using
move\_uploaded_file? Well, Uploader is here to help you! No more error checking, extension safety, etc. This tutorial will show you how...
Create an Admin Controller for a custom SQL table (Part 1/2) [Prestashop 1.7]
Prestashop has developed a great admin interface: data table, filters, edit/create form, etc. But you know what? You can re-use this UI for your own SQL tables. This tutorial will...
Add variables from a Workflow in a Delivery in Adobe Campaign
You process then create variables in your Workflow and you would like to be able to use them in a delivery? You can! Adobe Campaign allows you to define Delivery...
Execute a WHERE on a linked table in a Backoffice List of Prestashop 1.7
You have a list with a linked table? For example in the AdminController you display Customer, right? What if you want to separate first names and last names ; and...
How to work with the symfony kernel anywhere in Prestashop 1.7
You want to fully tak advantage of symfony in your Prestashop application? Use the symfony kernel! By default, the $kernel variable is only available in the Backoffice section, but here’s...
Ever wondered what constant to use in your controllers? Is it
__PS_BASE_URI__? In smarty templates, would you go for