Magento 2 : How to update 'Update cart' Button`s Template?Update Shopping Cart button in checkout/cart does not update the quantity when clickedUpdate QTY checkout cart Magento not working after update to 1.9.2.4Magento 2: Change UI templateHide information on single product pageHow to override a block without name?Ajax cart validation on change qtyHow to add a button adjacent to Update cart button in Magento2.1 cart page?Magento 1: Cannot update shopping cartGet Store Information Magento 2.3.0How to add update button in qty in checkout cart?

Why must Chinese maps be obfuscated?

What is purpose of DB Browser(dbbrowser.aspx) under admin tool?

Older movie/show about humans on derelict alien warship which refuels by passing through a star

Where was the County of Thurn und Taxis located?

What is the most expensive material in the world that could be used to create Pun-Pun's lute?

Can a Bard use the Spell Glyph option of the Glyph of Warding spell and cast a known spell into the glyph?

Injection into a proper class and choice without regularity

Drawing a german abacus as in the books of Adam Ries

As an international instructor, should I openly talk about my accent?

A ​Note ​on ​N!

Is there metaphorical meaning of "aus der Haft entlassen"?

How can I wire a 9-position switch so that each position turns on one more LED than the one before?

Why do distances seem to matter in the Foundation world?

What *exactly* is electrical current, voltage, and resistance?

Combinatorics problem, right solution?

Co-worker works way more than he should

How to be good at coming up with counter example in Topology

Von Neumann Extractor - Which bit is retained?

Check if a string is entirely made of the same substring

How do I reattach a shelf to the wall when it ripped out of the wall?

How much of a wave function must reside inside event horizon for it to be consumed by the black hole?

Is it acceptable to use working hours to read general interest books?

Can a stored procedure reference the database in which it is stored?

Contradiction proof for inequality of P and NP?



Magento 2 : How to update 'Update cart' Button`s Template?


Update Shopping Cart button in checkout/cart does not update the quantity when clickedUpdate QTY checkout cart Magento not working after update to 1.9.2.4Magento 2: Change UI templateHide information on single product pageHow to override a block without name?Ajax cart validation on change qtyHow to add a button adjacent to Update cart button in Magento2.1 cart page?Magento 1: Cannot update shopping cartGet Store Information Magento 2.3.0How to add update button in qty in checkout cart?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I have develop custom module that can update add to cart and update cart button but I can`t update Update cart button



I have update Add to Cart button using catalog_product_view.xml



<referenceBlock name="product.info.addtocart">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::catalog/product/view/addtocart.phtml</argument>
</action>
</referenceBlock>

<referenceBlock name="product.info.addtocart.additional">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::catalog/product/view/addtocart.phtml</argument>
</action>
</referenceBlock>


I have try to update update cart button using 'checkout_cart_configure.xml'



I want to Over write template




vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml




So I have create




appcodeVendorCustomproductviewfrontendlayoutcheckout_cart_configure.xml




<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<link src="Magento_Checkout::js/view/configure/product-customer-data.js"/>
</head>
<update handle="catalog_product_view"/>
<body>
<referenceBlock name="head.components">
<block class="MagentoFrameworkViewElementJsComponents" name="checkout_cart_configure_head_components" template="Magento_Checkout::js/components.phtml"/>
</referenceBlock>
<referenceBlock name="product.info">
<block class="MagentoCheckoutBlockCartItemConfigure" name="checkout.cart.item.configure.block"/>
</referenceBlock>
<referenceBlock name="product.info.addtocart">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::cart/item/configure/updatecart.phtml</argument>
</action>
</referenceBlock>
<referenceBlock name="product.info.addtocart.additional">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::cart/item/configure/updatecart.phtml</argument>
</action>
</referenceBlock>
</body>
</page>



appcodeVendorCustomproductviewfrontendtemplatescartitemconfigureupdatecart.phtml




<?php $_product = $block->getProduct(); ?>
<?php $buttonTitle = __('Update Cart'); ?>
<?php if ($_product->isSaleable()): ?>
<div class="box-tocart update">
<fieldset class="fieldset">
<?php if ($block->shouldRenderQuantity()): ?>
<div class="field qty">
<label class="label" for="qty"><span><?= /* @escapeNotVerified */ __('Qty') ?></span></label>
<div class="control">
<input type="number"
name="qty"
id="qty"
value=""
title="<?= /* @escapeNotVerified */ __('Qty') ?>"
class="input-text qty"
data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
</div>
</div>
<?php endif; ?>
<div class="actions">
<button type="submit"
title="<?= /* @escapeNotVerified */ $buttonTitle ?>"
class="action primary tocart"
id="product-updatecart-button">
<span><?= /* @escapeNotVerified */ $buttonTitle ?></span>
</button>
<?= $block->getChildHtml('', true) ?>
</div>
</fieldset>
</div>
<script type="text/x-magento-init">

"#product_addtocart_form":
"validation": ,
"addToCart":
"cartButtonId": "#product-updatecart-button",
"cartForm": "#product_addtocart_form"



</script>
<script>alert('i am here');</script>
<?php endif; ?>


enter image description here



But There is no changes



So If You have any solution then Please help










share|improve this question
























  • what type of updation you want to make in update cart button ??

    – Narendra Vyas
    Mar 25 at 6:57











  • I want to overwrite tamplate vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml

    – php developer
    Mar 25 at 6:59











  • can you please check my answer and let me know if issue resolved

    – Narendra Vyas
    Mar 25 at 7:04











  • can you include which button are you trying to update? I mean a screenshot is much better.

    – magefms
    Mar 25 at 8:16











  • i.stack.imgur.com/buD8f.png

    – php developer
    Mar 25 at 8:55

















2















I have develop custom module that can update add to cart and update cart button but I can`t update Update cart button



I have update Add to Cart button using catalog_product_view.xml



<referenceBlock name="product.info.addtocart">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::catalog/product/view/addtocart.phtml</argument>
</action>
</referenceBlock>

<referenceBlock name="product.info.addtocart.additional">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::catalog/product/view/addtocart.phtml</argument>
</action>
</referenceBlock>


I have try to update update cart button using 'checkout_cart_configure.xml'



I want to Over write template




vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml




So I have create




appcodeVendorCustomproductviewfrontendlayoutcheckout_cart_configure.xml




<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<link src="Magento_Checkout::js/view/configure/product-customer-data.js"/>
</head>
<update handle="catalog_product_view"/>
<body>
<referenceBlock name="head.components">
<block class="MagentoFrameworkViewElementJsComponents" name="checkout_cart_configure_head_components" template="Magento_Checkout::js/components.phtml"/>
</referenceBlock>
<referenceBlock name="product.info">
<block class="MagentoCheckoutBlockCartItemConfigure" name="checkout.cart.item.configure.block"/>
</referenceBlock>
<referenceBlock name="product.info.addtocart">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::cart/item/configure/updatecart.phtml</argument>
</action>
</referenceBlock>
<referenceBlock name="product.info.addtocart.additional">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::cart/item/configure/updatecart.phtml</argument>
</action>
</referenceBlock>
</body>
</page>



appcodeVendorCustomproductviewfrontendtemplatescartitemconfigureupdatecart.phtml




<?php $_product = $block->getProduct(); ?>
<?php $buttonTitle = __('Update Cart'); ?>
<?php if ($_product->isSaleable()): ?>
<div class="box-tocart update">
<fieldset class="fieldset">
<?php if ($block->shouldRenderQuantity()): ?>
<div class="field qty">
<label class="label" for="qty"><span><?= /* @escapeNotVerified */ __('Qty') ?></span></label>
<div class="control">
<input type="number"
name="qty"
id="qty"
value=""
title="<?= /* @escapeNotVerified */ __('Qty') ?>"
class="input-text qty"
data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
</div>
</div>
<?php endif; ?>
<div class="actions">
<button type="submit"
title="<?= /* @escapeNotVerified */ $buttonTitle ?>"
class="action primary tocart"
id="product-updatecart-button">
<span><?= /* @escapeNotVerified */ $buttonTitle ?></span>
</button>
<?= $block->getChildHtml('', true) ?>
</div>
</fieldset>
</div>
<script type="text/x-magento-init">

"#product_addtocart_form":
"validation": ,
"addToCart":
"cartButtonId": "#product-updatecart-button",
"cartForm": "#product_addtocart_form"



</script>
<script>alert('i am here');</script>
<?php endif; ?>


enter image description here



But There is no changes



So If You have any solution then Please help










share|improve this question
























  • what type of updation you want to make in update cart button ??

    – Narendra Vyas
    Mar 25 at 6:57











  • I want to overwrite tamplate vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml

    – php developer
    Mar 25 at 6:59











  • can you please check my answer and let me know if issue resolved

    – Narendra Vyas
    Mar 25 at 7:04











  • can you include which button are you trying to update? I mean a screenshot is much better.

    – magefms
    Mar 25 at 8:16











  • i.stack.imgur.com/buD8f.png

    – php developer
    Mar 25 at 8:55













2












2








2








I have develop custom module that can update add to cart and update cart button but I can`t update Update cart button



I have update Add to Cart button using catalog_product_view.xml



<referenceBlock name="product.info.addtocart">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::catalog/product/view/addtocart.phtml</argument>
</action>
</referenceBlock>

<referenceBlock name="product.info.addtocart.additional">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::catalog/product/view/addtocart.phtml</argument>
</action>
</referenceBlock>


I have try to update update cart button using 'checkout_cart_configure.xml'



I want to Over write template




vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml




So I have create




appcodeVendorCustomproductviewfrontendlayoutcheckout_cart_configure.xml




<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<link src="Magento_Checkout::js/view/configure/product-customer-data.js"/>
</head>
<update handle="catalog_product_view"/>
<body>
<referenceBlock name="head.components">
<block class="MagentoFrameworkViewElementJsComponents" name="checkout_cart_configure_head_components" template="Magento_Checkout::js/components.phtml"/>
</referenceBlock>
<referenceBlock name="product.info">
<block class="MagentoCheckoutBlockCartItemConfigure" name="checkout.cart.item.configure.block"/>
</referenceBlock>
<referenceBlock name="product.info.addtocart">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::cart/item/configure/updatecart.phtml</argument>
</action>
</referenceBlock>
<referenceBlock name="product.info.addtocart.additional">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::cart/item/configure/updatecart.phtml</argument>
</action>
</referenceBlock>
</body>
</page>



appcodeVendorCustomproductviewfrontendtemplatescartitemconfigureupdatecart.phtml




<?php $_product = $block->getProduct(); ?>
<?php $buttonTitle = __('Update Cart'); ?>
<?php if ($_product->isSaleable()): ?>
<div class="box-tocart update">
<fieldset class="fieldset">
<?php if ($block->shouldRenderQuantity()): ?>
<div class="field qty">
<label class="label" for="qty"><span><?= /* @escapeNotVerified */ __('Qty') ?></span></label>
<div class="control">
<input type="number"
name="qty"
id="qty"
value=""
title="<?= /* @escapeNotVerified */ __('Qty') ?>"
class="input-text qty"
data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
</div>
</div>
<?php endif; ?>
<div class="actions">
<button type="submit"
title="<?= /* @escapeNotVerified */ $buttonTitle ?>"
class="action primary tocart"
id="product-updatecart-button">
<span><?= /* @escapeNotVerified */ $buttonTitle ?></span>
</button>
<?= $block->getChildHtml('', true) ?>
</div>
</fieldset>
</div>
<script type="text/x-magento-init">

"#product_addtocart_form":
"validation": ,
"addToCart":
"cartButtonId": "#product-updatecart-button",
"cartForm": "#product_addtocart_form"



</script>
<script>alert('i am here');</script>
<?php endif; ?>


enter image description here



But There is no changes



So If You have any solution then Please help










share|improve this question
















I have develop custom module that can update add to cart and update cart button but I can`t update Update cart button



I have update Add to Cart button using catalog_product_view.xml



<referenceBlock name="product.info.addtocart">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::catalog/product/view/addtocart.phtml</argument>
</action>
</referenceBlock>

<referenceBlock name="product.info.addtocart.additional">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::catalog/product/view/addtocart.phtml</argument>
</action>
</referenceBlock>


I have try to update update cart button using 'checkout_cart_configure.xml'



I want to Over write template




vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml




So I have create




appcodeVendorCustomproductviewfrontendlayoutcheckout_cart_configure.xml




<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<link src="Magento_Checkout::js/view/configure/product-customer-data.js"/>
</head>
<update handle="catalog_product_view"/>
<body>
<referenceBlock name="head.components">
<block class="MagentoFrameworkViewElementJsComponents" name="checkout_cart_configure_head_components" template="Magento_Checkout::js/components.phtml"/>
</referenceBlock>
<referenceBlock name="product.info">
<block class="MagentoCheckoutBlockCartItemConfigure" name="checkout.cart.item.configure.block"/>
</referenceBlock>
<referenceBlock name="product.info.addtocart">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::cart/item/configure/updatecart.phtml</argument>
</action>
</referenceBlock>
<referenceBlock name="product.info.addtocart.additional">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Customproduct::cart/item/configure/updatecart.phtml</argument>
</action>
</referenceBlock>
</body>
</page>



appcodeVendorCustomproductviewfrontendtemplatescartitemconfigureupdatecart.phtml




<?php $_product = $block->getProduct(); ?>
<?php $buttonTitle = __('Update Cart'); ?>
<?php if ($_product->isSaleable()): ?>
<div class="box-tocart update">
<fieldset class="fieldset">
<?php if ($block->shouldRenderQuantity()): ?>
<div class="field qty">
<label class="label" for="qty"><span><?= /* @escapeNotVerified */ __('Qty') ?></span></label>
<div class="control">
<input type="number"
name="qty"
id="qty"
value=""
title="<?= /* @escapeNotVerified */ __('Qty') ?>"
class="input-text qty"
data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
</div>
</div>
<?php endif; ?>
<div class="actions">
<button type="submit"
title="<?= /* @escapeNotVerified */ $buttonTitle ?>"
class="action primary tocart"
id="product-updatecart-button">
<span><?= /* @escapeNotVerified */ $buttonTitle ?></span>
</button>
<?= $block->getChildHtml('', true) ?>
</div>
</fieldset>
</div>
<script type="text/x-magento-init">

"#product_addtocart_form":
"validation": ,
"addToCart":
"cartButtonId": "#product-updatecart-button",
"cartForm": "#product_addtocart_form"



</script>
<script>alert('i am here');</script>
<?php endif; ?>


enter image description here



But There is no changes



So If You have any solution then Please help







checkout layout cart xml magento2.3






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 21 at 16:33







php developer

















asked Mar 25 at 6:55









php developerphp developer

387




387












  • what type of updation you want to make in update cart button ??

    – Narendra Vyas
    Mar 25 at 6:57











  • I want to overwrite tamplate vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml

    – php developer
    Mar 25 at 6:59











  • can you please check my answer and let me know if issue resolved

    – Narendra Vyas
    Mar 25 at 7:04











  • can you include which button are you trying to update? I mean a screenshot is much better.

    – magefms
    Mar 25 at 8:16











  • i.stack.imgur.com/buD8f.png

    – php developer
    Mar 25 at 8:55

















  • what type of updation you want to make in update cart button ??

    – Narendra Vyas
    Mar 25 at 6:57











  • I want to overwrite tamplate vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml

    – php developer
    Mar 25 at 6:59











  • can you please check my answer and let me know if issue resolved

    – Narendra Vyas
    Mar 25 at 7:04











  • can you include which button are you trying to update? I mean a screenshot is much better.

    – magefms
    Mar 25 at 8:16











  • i.stack.imgur.com/buD8f.png

    – php developer
    Mar 25 at 8:55
















what type of updation you want to make in update cart button ??

– Narendra Vyas
Mar 25 at 6:57





what type of updation you want to make in update cart button ??

– Narendra Vyas
Mar 25 at 6:57













I want to overwrite tamplate vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml

– php developer
Mar 25 at 6:59





I want to overwrite tamplate vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml

– php developer
Mar 25 at 6:59













can you please check my answer and let me know if issue resolved

– Narendra Vyas
Mar 25 at 7:04





can you please check my answer and let me know if issue resolved

– Narendra Vyas
Mar 25 at 7:04













can you include which button are you trying to update? I mean a screenshot is much better.

– magefms
Mar 25 at 8:16





can you include which button are you trying to update? I mean a screenshot is much better.

– magefms
Mar 25 at 8:16













i.stack.imgur.com/buD8f.png

– php developer
Mar 25 at 8:55





i.stack.imgur.com/buD8f.png

– php developer
Mar 25 at 8:55










2 Answers
2






active

oldest

votes


















0














As per your comments if you only want to override



vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml


This can be done by creating same file in your theme at:



/app/design/frontend/Namespace/Theme/Magento_Checkout/templates/cart/item/configure/updatecart.phtml



Try this:



As you did for addtocart using catalog_product_view can you try using "checkout_cart_configure" originally at /vendor/magento/module-checkout/view/frontend/layout/checkout_cart_configure.xml



Create a new in your module and change argument same as you did for add to cart, see original vendor for reference.



Let me know if any issue






share|improve this answer

























  • here i am develop only Extension not a theme so provide solution for this if u have

    – php developer
    Mar 25 at 7:09











  • please check my updated answer if it works for you

    – Narendra Vyas
    Mar 25 at 7:21











  • i have test it but there is no changes you can see my update on this question

    – php developer
    Mar 25 at 7:23












  • do all setup upgrade, di compile, cache flush

    – Narendra Vyas
    Mar 25 at 7:23






  • 1





    i have run all commands

    – php developer
    Mar 25 at 7:24


















0














As per the image attached, I can confirm that your code is right.

However, you will not be able to see or notice the changes unless you try to change the characters in this line (in your updatecart.phtml):



<?php $buttonTitle = __('Update Cart'); ?> 


or by inspecting it in your browser. And you will find the classes present in your .phtml file.

From there, you will be able to see that your override is working.






share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f267189%2fmagento-2-how-to-update-update-cart-buttons-template%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    As per your comments if you only want to override



    vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml


    This can be done by creating same file in your theme at:



    /app/design/frontend/Namespace/Theme/Magento_Checkout/templates/cart/item/configure/updatecart.phtml



    Try this:



    As you did for addtocart using catalog_product_view can you try using "checkout_cart_configure" originally at /vendor/magento/module-checkout/view/frontend/layout/checkout_cart_configure.xml



    Create a new in your module and change argument same as you did for add to cart, see original vendor for reference.



    Let me know if any issue






    share|improve this answer

























    • here i am develop only Extension not a theme so provide solution for this if u have

      – php developer
      Mar 25 at 7:09











    • please check my updated answer if it works for you

      – Narendra Vyas
      Mar 25 at 7:21











    • i have test it but there is no changes you can see my update on this question

      – php developer
      Mar 25 at 7:23












    • do all setup upgrade, di compile, cache flush

      – Narendra Vyas
      Mar 25 at 7:23






    • 1





      i have run all commands

      – php developer
      Mar 25 at 7:24















    0














    As per your comments if you only want to override



    vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml


    This can be done by creating same file in your theme at:



    /app/design/frontend/Namespace/Theme/Magento_Checkout/templates/cart/item/configure/updatecart.phtml



    Try this:



    As you did for addtocart using catalog_product_view can you try using "checkout_cart_configure" originally at /vendor/magento/module-checkout/view/frontend/layout/checkout_cart_configure.xml



    Create a new in your module and change argument same as you did for add to cart, see original vendor for reference.



    Let me know if any issue






    share|improve this answer

























    • here i am develop only Extension not a theme so provide solution for this if u have

      – php developer
      Mar 25 at 7:09











    • please check my updated answer if it works for you

      – Narendra Vyas
      Mar 25 at 7:21











    • i have test it but there is no changes you can see my update on this question

      – php developer
      Mar 25 at 7:23












    • do all setup upgrade, di compile, cache flush

      – Narendra Vyas
      Mar 25 at 7:23






    • 1





      i have run all commands

      – php developer
      Mar 25 at 7:24













    0












    0








    0







    As per your comments if you only want to override



    vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml


    This can be done by creating same file in your theme at:



    /app/design/frontend/Namespace/Theme/Magento_Checkout/templates/cart/item/configure/updatecart.phtml



    Try this:



    As you did for addtocart using catalog_product_view can you try using "checkout_cart_configure" originally at /vendor/magento/module-checkout/view/frontend/layout/checkout_cart_configure.xml



    Create a new in your module and change argument same as you did for add to cart, see original vendor for reference.



    Let me know if any issue






    share|improve this answer















    As per your comments if you only want to override



    vendormagentomodule-checkoutviewfrontendtemplatescartitemconfigureupdatecart.phtml


    This can be done by creating same file in your theme at:



    /app/design/frontend/Namespace/Theme/Magento_Checkout/templates/cart/item/configure/updatecart.phtml



    Try this:



    As you did for addtocart using catalog_product_view can you try using "checkout_cart_configure" originally at /vendor/magento/module-checkout/view/frontend/layout/checkout_cart_configure.xml



    Create a new in your module and change argument same as you did for add to cart, see original vendor for reference.



    Let me know if any issue







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 25 at 7:21

























    answered Mar 25 at 7:02









    Narendra VyasNarendra Vyas

    49412




    49412












    • here i am develop only Extension not a theme so provide solution for this if u have

      – php developer
      Mar 25 at 7:09











    • please check my updated answer if it works for you

      – Narendra Vyas
      Mar 25 at 7:21











    • i have test it but there is no changes you can see my update on this question

      – php developer
      Mar 25 at 7:23












    • do all setup upgrade, di compile, cache flush

      – Narendra Vyas
      Mar 25 at 7:23






    • 1





      i have run all commands

      – php developer
      Mar 25 at 7:24

















    • here i am develop only Extension not a theme so provide solution for this if u have

      – php developer
      Mar 25 at 7:09











    • please check my updated answer if it works for you

      – Narendra Vyas
      Mar 25 at 7:21











    • i have test it but there is no changes you can see my update on this question

      – php developer
      Mar 25 at 7:23












    • do all setup upgrade, di compile, cache flush

      – Narendra Vyas
      Mar 25 at 7:23






    • 1





      i have run all commands

      – php developer
      Mar 25 at 7:24
















    here i am develop only Extension not a theme so provide solution for this if u have

    – php developer
    Mar 25 at 7:09





    here i am develop only Extension not a theme so provide solution for this if u have

    – php developer
    Mar 25 at 7:09













    please check my updated answer if it works for you

    – Narendra Vyas
    Mar 25 at 7:21





    please check my updated answer if it works for you

    – Narendra Vyas
    Mar 25 at 7:21













    i have test it but there is no changes you can see my update on this question

    – php developer
    Mar 25 at 7:23






    i have test it but there is no changes you can see my update on this question

    – php developer
    Mar 25 at 7:23














    do all setup upgrade, di compile, cache flush

    – Narendra Vyas
    Mar 25 at 7:23





    do all setup upgrade, di compile, cache flush

    – Narendra Vyas
    Mar 25 at 7:23




    1




    1





    i have run all commands

    – php developer
    Mar 25 at 7:24





    i have run all commands

    – php developer
    Mar 25 at 7:24













    0














    As per the image attached, I can confirm that your code is right.

    However, you will not be able to see or notice the changes unless you try to change the characters in this line (in your updatecart.phtml):



    <?php $buttonTitle = __('Update Cart'); ?> 


    or by inspecting it in your browser. And you will find the classes present in your .phtml file.

    From there, you will be able to see that your override is working.






    share|improve this answer





























      0














      As per the image attached, I can confirm that your code is right.

      However, you will not be able to see or notice the changes unless you try to change the characters in this line (in your updatecart.phtml):



      <?php $buttonTitle = __('Update Cart'); ?> 


      or by inspecting it in your browser. And you will find the classes present in your .phtml file.

      From there, you will be able to see that your override is working.






      share|improve this answer



























        0












        0








        0







        As per the image attached, I can confirm that your code is right.

        However, you will not be able to see or notice the changes unless you try to change the characters in this line (in your updatecart.phtml):



        <?php $buttonTitle = __('Update Cart'); ?> 


        or by inspecting it in your browser. And you will find the classes present in your .phtml file.

        From there, you will be able to see that your override is working.






        share|improve this answer















        As per the image attached, I can confirm that your code is right.

        However, you will not be able to see or notice the changes unless you try to change the characters in this line (in your updatecart.phtml):



        <?php $buttonTitle = __('Update Cart'); ?> 


        or by inspecting it in your browser. And you will find the classes present in your .phtml file.

        From there, you will be able to see that your override is working.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 25 at 9:17

























        answered Mar 25 at 9:12









        magefmsmagefms

        2,8252529




        2,8252529



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f267189%2fmagento-2-how-to-update-update-cart-buttons-template%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Sum ergo cogito? 1 nng

            419 nièngy_Soadمي 19bal1.5o_g

            Queiggey Chernihivv 9NnOo i Zw X QqKk LpB