我試圖在類別列表頁面(catalog/product/list.phtml)上顯示所有等級的價格,但只獲得單個產品的基本價格。Magento:在類別列表頁面顯示等級價格
print_r($_product->getTierPrice());
回報:
Array
(
[0] => Array
(
[price] => 0.5000
[website_price] => 0.5000
[price_qty] => 1
[cust_group] => 32000
)
)
每個產品。在產品信息頁面上,它工作不帶任何問題。請指教。
ver。 1.5.0.1
UPDATE:
這裏是與下面的答案激發了問題的解決方案:
$resource = Mage::getSingleton('core/resource');
$query = 'SELECT * FROM ' . $resource->getTableName('catalog/product') . '_tier_price';
$_tier_prices = $resource->getConnection('core_read')->fetchAll($query);
var_dump($_tier_prices);
對於Magento的2有什麼去做? –