How to Override Magento 2 vendor files Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Override 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

Can melee weapons be used to deliver Contact Poisons?

Quick way to create a symlink?

First console to have temporary backward compatibility

Do square wave exist?

How do I stop a creek from eroding my steep embankment?

When coming out of haste, do attackers have advantage on you?

Denied boarding although I have proper visa and documentation. To whom should I make a complaint?

Most bit efficient text communication method?

Why do the resolve message appear first?

How could we fake a moon landing now?

Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?

Is it common practice to audition new musicians 1-2-1 before rehearsing with the entire band?

When a candle burns, why does the top of wick glow if bottom of flame is hottest?

Does classifying an integer as a discrete log require it be part of a multiplicative group?

Is there such thing as an Availability Group failover trigger?

On SQL Server, is it possible to restrict certain users from using certain functions, operators or statements?

Can an alien society believe that their star system is the universe?

Is there any way for the UK Prime Minister to make a motion directly dependent on Government confidence?

How can I use the Python library networkx from Mathematica?

Is there a kind of relay only consumes power when switching?

What causes the direction of lightning flashes?

また usage in a dictionary

Using et al. for a last / senior author rather than for a first author

How do pianists reach extremely loud dynamics?



How to Override Magento 2 vendor files



Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Override 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 Apr 10 at 10:06









      Amit Bera

      60.1k1678178




      60.1k1678178










      asked Apr 10 at 10:04









      Shweta KhattarShweta Khattar

      274




      274




















          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
            Apr 10 at 10:14











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

            – Muhammad Hasham
            Apr 10 at 10:16


















          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
            Apr 10 at 10:34











          • 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
            Apr 10 at 11:02












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

            – Kamlesh Yaduwanshi
            Apr 10 at 11:04



















          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
              Apr 10 at 10:14











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

              – Muhammad Hasham
              Apr 10 at 10:16















            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
              Apr 10 at 10:14











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

              – Muhammad Hasham
              Apr 10 at 10:16













            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 Apr 10 at 17:54

























            answered Apr 10 at 10:09









            Amit BeraAmit Bera

            60.1k1678178




            60.1k1678178












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

              – Muhammad Anas
              Apr 10 at 10:14











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

              – Muhammad Hasham
              Apr 10 at 10:16

















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

              – Muhammad Anas
              Apr 10 at 10:14











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

              – Muhammad Hasham
              Apr 10 at 10:16
















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

            – Muhammad Anas
            Apr 10 at 10:14





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

            – Muhammad Anas
            Apr 10 at 10:14













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

            – Muhammad Hasham
            Apr 10 at 10:16





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

            – Muhammad Hasham
            Apr 10 at 10:16













            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
              Apr 10 at 10:34











            • 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
              Apr 10 at 11:02












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

              – Kamlesh Yaduwanshi
              Apr 10 at 11:04
















            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
              Apr 10 at 10:34











            • 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
              Apr 10 at 11:02












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

              – Kamlesh Yaduwanshi
              Apr 10 at 11:04














            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 Apr 10 at 10:13









            Kamlesh YaduwanshiKamlesh Yaduwanshi

            213




            213












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

              – Shweta Khattar
              Apr 10 at 10:34











            • 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
              Apr 10 at 11:02












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

              – Kamlesh Yaduwanshi
              Apr 10 at 11:04


















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

              – Shweta Khattar
              Apr 10 at 10:34











            • 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
              Apr 10 at 11:02












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

              – Kamlesh Yaduwanshi
              Apr 10 at 11:04

















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

            – Shweta Khattar
            Apr 10 at 10:34





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

            – Shweta Khattar
            Apr 10 at 10:34













            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
            Apr 10 at 11:02






            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
            Apr 10 at 11:02














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

            – Kamlesh Yaduwanshi
            Apr 10 at 11:04






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

            – Kamlesh Yaduwanshi
            Apr 10 at 11:04












            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 Apr 10 at 10:14

























                answered Apr 10 at 10:08









                Prathap GunasekaranPrathap Gunasekaran

                1,8821618




                1,8821618



























                    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

                    រឿង រ៉ូមេអូ និង ហ្ស៊ុយលីយេ សង្ខេបរឿង តួអង្គ បញ្ជីណែនាំ

                    QGIS export composer to PDF scale the map [closed] Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Print Composer QGIS 2.6, how to export image?QGIS 2.8.1 print composer won't export all OpenCycleMap base layer tilesSave Print/Map QGIS composer view as PNG/PDF using Python (without changing anything in visible layout)?Export QGIS Print Composer PDF with searchable text labelsQGIS Print Composer does not change from landscape to portrait orientation?How can I avoid map size and scale changes in print composer?Fuzzy PDF export in QGIS running on macSierra OSExport the legend into its 100% size using Print ComposerScale-dependent rendering in QGIS PDF output

                    PDF-ში გადმოწერა სანავიგაციო მენიუproject page