Magento 2 Certification Questions List | You have created a new product type, sample, and need to customize how it renders on the shopping cart page.Keeping maintainability in mind, how do you add a new renderer?

You have created a new product type, sample, and need to customize how it renders on the shopping cart page.

Keeping maintainability in mind, how do you add a new renderer?

Answer:
  • Create the layout file, checkout_cart_item_renderers.xml, reference the checkout.cart.item.renderers block and add a new block with an as="sample" attribute.
Prepear for Magento 2 certefication with our interactive quiz