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.

0

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>

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.