I'm using prestashop 1.7 and I have a file in the override / classes that is called Cart.php that has a function similar to this, its purpose is to return an array of objects, the code could be something like this
<?php
class Cart extends CartCore {
public static function getADXFromProducts($id){
$adxProducts=array();
return $adxProducts;
}
}
I have the problem from the smarty template "Tpl" where I try to make a call to the static method in this way.
By screen I don't receive any error, but if I activate xdebug in the above override file I do not see it enter the method.
{assign var=bookProducts value={Cart::getADXFromProducts($cart.id)}}
Thanxs
{assign var=bookProducts value=Cart::getADXFromProducts($cart.id)}- sadlyblue