如何判断产品页面是否在 Magento 1.4 中设置为 bundle ?我找不到办法。
最佳答案
此代码应该在您的产品页面 (catalog/product/view.phtml) 中有效:
$product = $this->getProduct();
if($product->getTypeId() === 'bundle'){
// Something…
}
关于php - Magento 中的 isBundle()?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4189214/