Dans le fichier tpl Smarty, je l'habitude d'appeler la méthode php comme suitComment j'appelle la méthode php statique en utilisant jquery ajax dans prestashop?
{assign var='all_categories' value=SpecificPrice::getByProductId($product.id_product)}
{foreach from=$all_categories item=all}
\t \t \t \t \t \t \t \t <pre>{$all_categories|@print_r}</pre>
\t \t \t \t \t \t \t \t <div class="offername" style="background: red;width: 58%;color: white;font-size: 12pt;padding-top: 6px;"> {$all.offer_name} </div>
{/foreach}
Mais je veux appeler la même méthode ajax
SpecificPrice::getByProductId($product.id_product)
Comment puis-je appeler cette méthode dans ajax?