Prestashop: Add custom column on Product Page and Display it on product.tpl

Posted Leave a commentPosted in Prestashop

Steps: Create the table manually on the database. Declare the variable on /classes/product.php add the variable onĀ /controllers/front/ProductController.php in the following matter. $product_tariff = $this->product->em_mg_tariff_code; $this->context->smarty->assign('tariff_code', $product_tariff); 4. Add the field on your tpl on the following matter. {$tariff_code}