How to Override Magento 2 vendor files The 2019 Stack Overflow Developer Survey Results Are InOverride Magento 2 phtml Files?how to override template files for magento2 extensionHow to override .phtml files in Magento 2Override vendor/company/module/src/ filesHow to override .phtml files in Magento 2 for backendMagento 2: How to override Ui & Component folder filesOverride vendor plugin Magento 2Magento 2: How to Override File in Vendor FolderMagento 2: Overriding addtocart.phtml for Configurable ProductsNeed to override edit.phtml on cart page to add new button near it

Are there any other methods to apply to solving simultaneous equations?

What do I do when my TA workload is more than expected?

Why was M87 targeted for the Event Horizon Telescope instead of Sagittarius A*?

Loose spokes after only a few rides

How to type a long/em dash `—`

Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?

Cooking pasta in a water boiler

How to support a colleague who finds meetings extremely tiring?

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

writing variables above the numbers in tikz picture

The difference between dialogue marks

Time travel alters history but people keep saying nothing's changed

Likelihood that a superbug or lethal virus could come from a landfill

How can I define good in a religion that claims no moral authority?

How much of the clove should I use when using big garlic heads?

Accepted by European university, rejected by all American ones I applied to? Possible reasons?

Short story: child made less intelligent and less attractive

Can withdrawing asylum be illegal?

Correct punctuation for showing a character's confusion

Kerning for subscripts of sigma?

Why can't devices on different VLANs, but on the same subnet, communicate?

For what reasons would an animal species NOT cross a *horizontal* land bridge?

How to obtain a position of last non-zero element

What is the most efficient way to store a numeric range?



How to Override Magento 2 vendor files



The 2019 Stack Overflow Developer Survey Results Are InOverride Magento 2 phtml Files?how to override template files for magento2 extensionHow to override .phtml files in Magento 2Override vendor/company/module/src/ filesHow to override .phtml files in Magento 2 for backendMagento 2: How to override Ui & Component folder filesOverride vendor plugin Magento 2Magento 2: How to Override File in Vendor FolderMagento 2: Overriding addtocart.phtml for Configurable ProductsNeed to override edit.phtml on cart page to add new button near it



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








3















How to override addtocart.phtml files to change "Add to cart" button name.










share|improve this question






























    3















    How to override addtocart.phtml files to change "Add to cart" button name.










    share|improve this question


























      3












      3








      3








      How to override addtocart.phtml files to change "Add to cart" button name.










      share|improve this question
















      How to override addtocart.phtml files to change "Add to cart" button name.







      magento2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday









      Amit Bera

      59.9k1677178




      59.9k1677178










      asked yesterday









      Shweta KhattarShweta Khattar

      314




      314




















          3 Answers
          3






          active

          oldest

          votes


















          4














          You can use theme translation at here.



          Create LanguageCode.csv at



           __/app
          |__/design
          |__/frontend
          |__/<Vendor>
          |__/<theme>
          |__/i18n
          |-- LanguageCode.csv


          At this csv, "Add to Cart","MYCart".



          See more detail at https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/translations/xlate.html



          After that, you need to run static content deploy for getting affect of the translation.






          share|improve this answer

























          • That a good criteria to update just title all over the website. +1

            – Muhammad Anas
            yesterday











          • Great answer and Better criteria to update through translation dictionaries. +1

            – Muhammad Hasham
            yesterday


















          1














          You need to overwrite addtocart.phtml file with in your theme directory.



          Copy the addtocart.phtml file from



          vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml


          to



          app/design/frontend/<vendor-name>/<theme-name>/Magento_catalog/templates/product/view/addtocart.phtml


          and make edit as you wants on this phtml file.



          Flush the cache and refresh the page. I hope this helps.






          share|improve this answer























          • app/design/frontend/magento then no any folder here.

            – Shweta Khattar
            yesterday











          • It seems you have not created a custom theme yet. for the best practice you need to create a custom theme and apply it. Please following the official guide for it: devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/… and devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/…

            – Kamlesh Yaduwanshi
            yesterday












          • Also I agree with @Amit answer, that would be simple in order to change just label.

            – Kamlesh Yaduwanshi
            yesterday



















          1














          Try overide with you theme file



          Copy the file from below path




          vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml




          then paste it in below path




          app/design/frontend/Package/theme-name/Magento_Catalog/templates/product/view/addtocart.phtml




          clean cache and check.



          EDIT :



          In order to change label see @Amit answer, that would be simple.






          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%2f269501%2fhow-to-override-magento-2-vendor-files%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            4














            You can use theme translation at here.



            Create LanguageCode.csv at



             __/app
            |__/design
            |__/frontend
            |__/<Vendor>
            |__/<theme>
            |__/i18n
            |-- LanguageCode.csv


            At this csv, "Add to Cart","MYCart".



            See more detail at https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/translations/xlate.html



            After that, you need to run static content deploy for getting affect of the translation.






            share|improve this answer

























            • That a good criteria to update just title all over the website. +1

              – Muhammad Anas
              yesterday











            • Great answer and Better criteria to update through translation dictionaries. +1

              – Muhammad Hasham
              yesterday















            4














            You can use theme translation at here.



            Create LanguageCode.csv at



             __/app
            |__/design
            |__/frontend
            |__/<Vendor>
            |__/<theme>
            |__/i18n
            |-- LanguageCode.csv


            At this csv, "Add to Cart","MYCart".



            See more detail at https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/translations/xlate.html



            After that, you need to run static content deploy for getting affect of the translation.






            share|improve this answer

























            • That a good criteria to update just title all over the website. +1

              – Muhammad Anas
              yesterday











            • Great answer and Better criteria to update through translation dictionaries. +1

              – Muhammad Hasham
              yesterday













            4












            4








            4







            You can use theme translation at here.



            Create LanguageCode.csv at



             __/app
            |__/design
            |__/frontend
            |__/<Vendor>
            |__/<theme>
            |__/i18n
            |-- LanguageCode.csv


            At this csv, "Add to Cart","MYCart".



            See more detail at https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/translations/xlate.html



            After that, you need to run static content deploy for getting affect of the translation.






            share|improve this answer















            You can use theme translation at here.



            Create LanguageCode.csv at



             __/app
            |__/design
            |__/frontend
            |__/<Vendor>
            |__/<theme>
            |__/i18n
            |-- LanguageCode.csv


            At this csv, "Add to Cart","MYCart".



            See more detail at https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/translations/xlate.html



            After that, you need to run static content deploy for getting affect of the translation.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited yesterday

























            answered yesterday









            Amit BeraAmit Bera

            59.9k1677178




            59.9k1677178












            • That a good criteria to update just title all over the website. +1

              – Muhammad Anas
              yesterday











            • Great answer and Better criteria to update through translation dictionaries. +1

              – Muhammad Hasham
              yesterday

















            • That a good criteria to update just title all over the website. +1

              – Muhammad Anas
              yesterday











            • Great answer and Better criteria to update through translation dictionaries. +1

              – Muhammad Hasham
              yesterday
















            That a good criteria to update just title all over the website. +1

            – Muhammad Anas
            yesterday





            That a good criteria to update just title all over the website. +1

            – Muhammad Anas
            yesterday













            Great answer and Better criteria to update through translation dictionaries. +1

            – Muhammad Hasham
            yesterday





            Great answer and Better criteria to update through translation dictionaries. +1

            – Muhammad Hasham
            yesterday













            1














            You need to overwrite addtocart.phtml file with in your theme directory.



            Copy the addtocart.phtml file from



            vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml


            to



            app/design/frontend/<vendor-name>/<theme-name>/Magento_catalog/templates/product/view/addtocart.phtml


            and make edit as you wants on this phtml file.



            Flush the cache and refresh the page. I hope this helps.






            share|improve this answer























            • app/design/frontend/magento then no any folder here.

              – Shweta Khattar
              yesterday











            • It seems you have not created a custom theme yet. for the best practice you need to create a custom theme and apply it. Please following the official guide for it: devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/… and devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/…

              – Kamlesh Yaduwanshi
              yesterday












            • Also I agree with @Amit answer, that would be simple in order to change just label.

              – Kamlesh Yaduwanshi
              yesterday
















            1














            You need to overwrite addtocart.phtml file with in your theme directory.



            Copy the addtocart.phtml file from



            vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml


            to



            app/design/frontend/<vendor-name>/<theme-name>/Magento_catalog/templates/product/view/addtocart.phtml


            and make edit as you wants on this phtml file.



            Flush the cache and refresh the page. I hope this helps.






            share|improve this answer























            • app/design/frontend/magento then no any folder here.

              – Shweta Khattar
              yesterday











            • It seems you have not created a custom theme yet. for the best practice you need to create a custom theme and apply it. Please following the official guide for it: devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/… and devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/…

              – Kamlesh Yaduwanshi
              yesterday












            • Also I agree with @Amit answer, that would be simple in order to change just label.

              – Kamlesh Yaduwanshi
              yesterday














            1












            1








            1







            You need to overwrite addtocart.phtml file with in your theme directory.



            Copy the addtocart.phtml file from



            vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml


            to



            app/design/frontend/<vendor-name>/<theme-name>/Magento_catalog/templates/product/view/addtocart.phtml


            and make edit as you wants on this phtml file.



            Flush the cache and refresh the page. I hope this helps.






            share|improve this answer













            You need to overwrite addtocart.phtml file with in your theme directory.



            Copy the addtocart.phtml file from



            vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml


            to



            app/design/frontend/<vendor-name>/<theme-name>/Magento_catalog/templates/product/view/addtocart.phtml


            and make edit as you wants on this phtml file.



            Flush the cache and refresh the page. I hope this helps.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered yesterday









            Kamlesh YaduwanshiKamlesh Yaduwanshi

            213




            213












            • app/design/frontend/magento then no any folder here.

              – Shweta Khattar
              yesterday











            • It seems you have not created a custom theme yet. for the best practice you need to create a custom theme and apply it. Please following the official guide for it: devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/… and devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/…

              – Kamlesh Yaduwanshi
              yesterday












            • Also I agree with @Amit answer, that would be simple in order to change just label.

              – Kamlesh Yaduwanshi
              yesterday


















            • app/design/frontend/magento then no any folder here.

              – Shweta Khattar
              yesterday











            • It seems you have not created a custom theme yet. for the best practice you need to create a custom theme and apply it. Please following the official guide for it: devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/… and devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/…

              – Kamlesh Yaduwanshi
              yesterday












            • Also I agree with @Amit answer, that would be simple in order to change just label.

              – Kamlesh Yaduwanshi
              yesterday

















            app/design/frontend/magento then no any folder here.

            – Shweta Khattar
            yesterday





            app/design/frontend/magento then no any folder here.

            – Shweta Khattar
            yesterday













            It seems you have not created a custom theme yet. for the best practice you need to create a custom theme and apply it. Please following the official guide for it: devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/… and devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/…

            – Kamlesh Yaduwanshi
            yesterday






            It seems you have not created a custom theme yet. for the best practice you need to create a custom theme and apply it. Please following the official guide for it: devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/… and devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/…

            – Kamlesh Yaduwanshi
            yesterday














            Also I agree with @Amit answer, that would be simple in order to change just label.

            – Kamlesh Yaduwanshi
            yesterday






            Also I agree with @Amit answer, that would be simple in order to change just label.

            – Kamlesh Yaduwanshi
            yesterday












            1














            Try overide with you theme file



            Copy the file from below path




            vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml




            then paste it in below path




            app/design/frontend/Package/theme-name/Magento_Catalog/templates/product/view/addtocart.phtml




            clean cache and check.



            EDIT :



            In order to change label see @Amit answer, that would be simple.






            share|improve this answer





























              1














              Try overide with you theme file



              Copy the file from below path




              vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml




              then paste it in below path




              app/design/frontend/Package/theme-name/Magento_Catalog/templates/product/view/addtocart.phtml




              clean cache and check.



              EDIT :



              In order to change label see @Amit answer, that would be simple.






              share|improve this answer



























                1












                1








                1







                Try overide with you theme file



                Copy the file from below path




                vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml




                then paste it in below path




                app/design/frontend/Package/theme-name/Magento_Catalog/templates/product/view/addtocart.phtml




                clean cache and check.



                EDIT :



                In order to change label see @Amit answer, that would be simple.






                share|improve this answer















                Try overide with you theme file



                Copy the file from below path




                vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml




                then paste it in below path




                app/design/frontend/Package/theme-name/Magento_Catalog/templates/product/view/addtocart.phtml




                clean cache and check.



                EDIT :



                In order to change label see @Amit answer, that would be simple.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited yesterday

























                answered yesterday









                Prathap GunasekaranPrathap Gunasekaran

                1,7831618




                1,7831618



























                    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%2f269501%2fhow-to-override-magento-2-vendor-files%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

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form