Magento 如何从签出/购物车获取super_属性
在功能上Magento 如何从签出/购物车获取super_属性,magento,Magento,在功能上 $cart = Mage::getModel('checkout/cart')->getQuote(); foreach ($cart->getItems() as $item) { $productId = $item->getProduct()->getId(); $productPrice = $item->getProduct()->getPrice(); } 现在我可以 $product_id = $item->ge
$cart = Mage::getModel('checkout/cart')->getQuote();
foreach ($cart->getItems() as $item) {
$productId = $item->getProduct()->getId();
$productPrice = $item->getProduct()->getPrice();
}
现在我可以
$product_id = $item->getProduct()->getId(); / product
$quote_id = $item->getId(); / cart
$quote_qty = $item->getQty(); / cart
但是,如何从$item获取super_属性呢
我想获取Url的属性
签出/购物车/添加/产品/$productId/?超级属性[属性ID]=选项ID和数量=$报价单数量
谢谢。您尝试过:
$super_attribute = $item->getProduct()->getSuperAttribute();
打印$super\u属性;返回1