在Prestashop中,我想從產品ID中獲取產品的所有屬性。可以說我有一個id爲3的產品。現在從產品id 3我想獲得它的所有屬性,如名稱,價格,庫存,類別,產品鏈接等。Prestashop從其編號中獲取產品屬性
到目前爲止,我已經嘗試過
$product_id = $result['id_product'];
$id_product = (int)$product_id;
$product = new Product(Tools::getValue($id_product));
var_dump($product);
但它給了我一個空白的所有屬性的數組。該陣列可以看到here
那麼有人可以告訴我如何從ID獲取其所有屬性?任何幫助和建議都將非常可觀。由於