Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $cart = Mage::getModel('checkout/cart')->getQuote()->getAllItems();
- foreach ($cart as $item) {
- if($item->getProductType() != 'simple') continue;
- $itemIds[$item->getProduct()->getId()] = $item->getQty;
- }
- print_r($itemIds); exit;
Add Comment
Please, Sign In to add comment