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.7,我想在购物车页面中显示类别名称,从中将产品添加到购物车..
尝试这个
echo Mage::getModel('catalog/category')->load($this->getProduct()->getCategoryIds($_item->getProductId()))->getName();
在产品名称或您想要类别名称的位置添加此行app/design/frontend/default/[yourtheme]/template/checkout/cart/item/default.phtml
app/design/frontend/default/[yourtheme]/template/checkout/cart/item/default.phtml
希望这对你有帮助