0
在第三方物流Smarty的文件,我通常調用PHP方法類似如下如何在prestashop中使用jquery ajax調用php靜態方法?
{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}
但我想呼籲在阿賈克斯
SpecificPrice::getByProductId($product.id_product)
同樣的方法如何在ajax中調用此方法?