我将以下代码放入 magento 基本模板文件view.phtml中。
$categories = $_product->getCategoryIds(); print_r($类别)
使用示例数据,当在Ottoman产品页面上时,哪个面包屑是
Home / Furniture / Living Room / Ottoman
输出是Array ( [0] => 22 ) 22 是Living Roomid。如何获得Furniture and Living Room 身份证。谢谢你