0

I have a custom form in addtcart.phtml and collecting some custom options. I need to show the collected values on the edit cart page too.

I tried to override the file like below in the custom module.

/app/code/Ayakil/Monogram/view/frontend/layout/checkout_cart_configure.xml

<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="catalog_product_view"/>
<body>
    <referenceBlock name="product.info.addtocart">
        <action method="setTemplate">
            <argument name="template" xsi:type="string">Ayakil_Monogram::cart/item/configure/updatecart.phtml</argument>
        </action>
    </referenceBlock>
    <referenceBlock name="product.info.addtocart.additional">
        <action method="setTemplate">
            <argument name="template" xsi:type="string">Ayakil_Monogram::cart/item/configure/updatecart.phtml</argument>
        </action>
    </referenceBlock>
</body>

And copied the updatecart.phtml file to custom modules following path.

/app/code/Digibrush/Monogram/view/frontend/templates/cart/item/configure/updatecart.phtml

With this change, I am unable to achieve my requirement. The file is not overriding. I Check whether there may be any conflict with the same file. No Any places i can find something similar.

Can someone help me to overcome this please?

Your Answer

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

Browse other questions tagged or ask your own question.