我正在使用Magento 1.7,我想在购物车页面中显示类别名称,从中将产品添加到购物车中..
try this
echo Mage::getModel('catalog/category')->load($this->getProduct()->getCategoryIds($_item->getProductId()))->getName();
add this line near product name or where you want category name in app/design/frontend/default/[yourtheme]/template/checkout/cart/item/default.phtml
hope this help you
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.