0

I create Default.phtml file in Vdcstore/QuantityDropdown/View/frontend/templates/cart/item/default.phtml

Hello

I Create checkout_cart_item_renderers.xml file in Vdcstore/QuantityDropdown/View/frontend/layout/checkout_cart_item_renderers.xml

        <block class="Magento\Checkout\Block\Cart\Item\Renderer" as="simple" template="Vdcstore\QuantityDropdown::cart/item/default.phtml" />
    </referenceBlock>
</body>

I create checkout_cart_index.xml file in Vdcstore/QuantityDropdown/View/frontend/layout/checkout_cart_index.xml

checkout.cart.item.renderers.override

But Not Working. No effect When I Run a code plz Give me a Solution.

2 Answers 2

1

Check The Below Code

<block class="Magento\Checkout\Block\Cart\Item\Renderer" as="simple" template="Vdcstore_QuantityDropdown::cart/item/default.phtml" />
    

Correct "Vdcstore\QuantityDropdown" to "Vdcstore_QuantityDropdown"

Check the Other Solution

<referenceBlock name="checkout.cart.item.renderers.default">
    <action method="setTemplate">
        <argument name="template" xsi:type="string">Vdcstore_QuantityDropdown::cart/item/default.phtml</argument>
    </action>
</referenceBlock>
0

This solution worked great for me

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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