Usar variable smarty en plantillas de Prestashop
AUTOR PREGUNTA #1
-
¿Tienes la misma pregunta? Yo también
Esto también te interesa!
PREGUNTAS SIMILARES
#2
<?php
class MyAccountController extends MyAccountControllerCore
{
public function initContent()
{
parent::initContent();
$total_orders = 0;
if ($orders = *****::getCustomerOrders($this->context->customer->id))
$total_orders = count($orders);
$this->context->smarty->assign('total_orders', $total_orders);
}
}