There's a cart rendered for grouped products in Mage_Checkout_Block_Cart_Item_Renderer_Grouped, but it doesn't appear to ever be used. Am I wrong on this one? Anyone got the back story here?

Edit: @oleksii.svarychevskyi pointed out that the block appears in the layout XML files. Still, I have the question - since grouped products are added to cart as their individual simple components, and not presented as members of a grouped product, is this block ever used?


Take a look in checkout.xml

<block type="checkout/cart" name="checkout.cart">
    <action method="addItemRender">

it means that it is used for rendering grouped product information in cart.

It is only one example, but it is used in many places where magento needs to display grouped product information.

  • Ah! I was only searching in app/code, not templates. Well done! – Laizer Feb 8 '14 at 21:02
  • I think the question still stands. See the edit above. – Laizer Feb 10 '14 at 16:34
  • Just change some code inside checkout/cart/item/default.phtml and see output. – oleksii.svarychevskyi Feb 10 '14 at 16:40
  • The template is used, but I don't see that the block is. It's just simple products by the time they get to cart. – Laizer Feb 10 '14 at 16:43
  • run var_dump(get_class($this)) inside template and you will see to which block it is assigned – oleksii.svarychevskyi Feb 10 '14 at 16:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.