magento - Get product information of items added in cart -
i need product's information in shopping cart. mean if add product in cart need product id , category id of item.
i want information of product attributes (e.g product's id, price, parent id) whenever product added cart @ shopping cart. how can that?
$catid = mage::getmodel('catalog/category')->load($this->getproduct()-> getcategoryids($_item->getproductid()))->getname();
i have written code @ /checkout/cart/item/default.phtml , can follow step work out surely.
this answer , follow instruction accordingly mr. benmarks. have started posting stackoverflow. working on solution product in 1 or more categories.
sorry if have misinterpreted anything.
Comments
Post a Comment