Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您如何判断产品页面是否在 Magento 1.4 中设置为捆绑包?我找不到办法。
此代码应在您的产品页面(目录/产品/view.phtml)中工作:
$product = $this->getProduct(); if($product->getTypeId() === 'bundle'){ // Something… }
if ($_product->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE) { echo 'Bundled'; }