Set Use Default Value for all categories attributes Magento 2

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
7
down vote

favorite












I have around 1260 categories.If i switch the store view , the all attributes have own value.But i want to set the all attribute values as parent main store view value.
I can not open each category and checked the Use Default Value checkbox.
So can you give me any hint how can i checked this checkbox using programmatically or sql Query.



Please see this screenshot.!



enter image description here










share|improve this question

























    up vote
    7
    down vote

    favorite












    I have around 1260 categories.If i switch the store view , the all attributes have own value.But i want to set the all attribute values as parent main store view value.
    I can not open each category and checked the Use Default Value checkbox.
    So can you give me any hint how can i checked this checkbox using programmatically or sql Query.



    Please see this screenshot.!



    enter image description here










    share|improve this question























      up vote
      7
      down vote

      favorite









      up vote
      7
      down vote

      favorite











      I have around 1260 categories.If i switch the store view , the all attributes have own value.But i want to set the all attribute values as parent main store view value.
      I can not open each category and checked the Use Default Value checkbox.
      So can you give me any hint how can i checked this checkbox using programmatically or sql Query.



      Please see this screenshot.!



      enter image description here










      share|improve this question













      I have around 1260 categories.If i switch the store view , the all attributes have own value.But i want to set the all attribute values as parent main store view value.
      I can not open each category and checked the Use Default Value checkbox.
      So can you give me any hint how can i checked this checkbox using programmatically or sql Query.



      Please see this screenshot.!



      enter image description here







      magento2 category category-attribute






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 3 at 9:19









      Sunny Rahevar

      894112




      894112




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          For categories i ran the following query and it worked.



          DELETE FROM `catalog_category_entity_text` where store_id = 1;
          DELETE FROM `catalog_category_entity_datetime` where store_id = 1;
          DELETE FROM `catalog_category_entity_decimal` where store_id = 1;
          DELETE FROM `catalog_category_entity_int` where store_id = 1;
          DELETE FROM `catalog_category_entity_varchar` where store_id = 1;





          share|improve this answer
















          • 1




            Great!! it works for me. Thanks.. Keep it up bro
            – Sunny Rahevar
            Dec 3 at 11:15

















          up vote
          1
          down vote













          You need to change in database OR create PHP script to update database value.






          share|improve this answer




















          • Can you please explain me in brief?
            – Sunny Rahevar
            Dec 3 at 9:29











          • Yes, you need to create PHP script for update values for all categories in Database.
            – Ronak
            Dec 3 at 9:30










          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',
          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%2f252192%2fset-use-default-value-for-all-categories-attributes-magento-2%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








          up vote
          4
          down vote



          accepted










          For categories i ran the following query and it worked.



          DELETE FROM `catalog_category_entity_text` where store_id = 1;
          DELETE FROM `catalog_category_entity_datetime` where store_id = 1;
          DELETE FROM `catalog_category_entity_decimal` where store_id = 1;
          DELETE FROM `catalog_category_entity_int` where store_id = 1;
          DELETE FROM `catalog_category_entity_varchar` where store_id = 1;





          share|improve this answer
















          • 1




            Great!! it works for me. Thanks.. Keep it up bro
            – Sunny Rahevar
            Dec 3 at 11:15














          up vote
          4
          down vote



          accepted










          For categories i ran the following query and it worked.



          DELETE FROM `catalog_category_entity_text` where store_id = 1;
          DELETE FROM `catalog_category_entity_datetime` where store_id = 1;
          DELETE FROM `catalog_category_entity_decimal` where store_id = 1;
          DELETE FROM `catalog_category_entity_int` where store_id = 1;
          DELETE FROM `catalog_category_entity_varchar` where store_id = 1;





          share|improve this answer
















          • 1




            Great!! it works for me. Thanks.. Keep it up bro
            – Sunny Rahevar
            Dec 3 at 11:15












          up vote
          4
          down vote



          accepted







          up vote
          4
          down vote



          accepted






          For categories i ran the following query and it worked.



          DELETE FROM `catalog_category_entity_text` where store_id = 1;
          DELETE FROM `catalog_category_entity_datetime` where store_id = 1;
          DELETE FROM `catalog_category_entity_decimal` where store_id = 1;
          DELETE FROM `catalog_category_entity_int` where store_id = 1;
          DELETE FROM `catalog_category_entity_varchar` where store_id = 1;





          share|improve this answer












          For categories i ran the following query and it worked.



          DELETE FROM `catalog_category_entity_text` where store_id = 1;
          DELETE FROM `catalog_category_entity_datetime` where store_id = 1;
          DELETE FROM `catalog_category_entity_decimal` where store_id = 1;
          DELETE FROM `catalog_category_entity_int` where store_id = 1;
          DELETE FROM `catalog_category_entity_varchar` where store_id = 1;






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 3 at 9:34









          Jaimin

          1,019428




          1,019428







          • 1




            Great!! it works for me. Thanks.. Keep it up bro
            – Sunny Rahevar
            Dec 3 at 11:15












          • 1




            Great!! it works for me. Thanks.. Keep it up bro
            – Sunny Rahevar
            Dec 3 at 11:15







          1




          1




          Great!! it works for me. Thanks.. Keep it up bro
          – Sunny Rahevar
          Dec 3 at 11:15




          Great!! it works for me. Thanks.. Keep it up bro
          – Sunny Rahevar
          Dec 3 at 11:15












          up vote
          1
          down vote













          You need to change in database OR create PHP script to update database value.






          share|improve this answer




















          • Can you please explain me in brief?
            – Sunny Rahevar
            Dec 3 at 9:29











          • Yes, you need to create PHP script for update values for all categories in Database.
            – Ronak
            Dec 3 at 9:30














          up vote
          1
          down vote













          You need to change in database OR create PHP script to update database value.






          share|improve this answer




















          • Can you please explain me in brief?
            – Sunny Rahevar
            Dec 3 at 9:29











          • Yes, you need to create PHP script for update values for all categories in Database.
            – Ronak
            Dec 3 at 9:30












          up vote
          1
          down vote










          up vote
          1
          down vote









          You need to change in database OR create PHP script to update database value.






          share|improve this answer












          You need to change in database OR create PHP script to update database value.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 3 at 9:29









          Divyarajsinh

          30919




          30919











          • Can you please explain me in brief?
            – Sunny Rahevar
            Dec 3 at 9:29











          • Yes, you need to create PHP script for update values for all categories in Database.
            – Ronak
            Dec 3 at 9:30
















          • Can you please explain me in brief?
            – Sunny Rahevar
            Dec 3 at 9:29











          • Yes, you need to create PHP script for update values for all categories in Database.
            – Ronak
            Dec 3 at 9:30















          Can you please explain me in brief?
          – Sunny Rahevar
          Dec 3 at 9:29





          Can you please explain me in brief?
          – Sunny Rahevar
          Dec 3 at 9:29













          Yes, you need to create PHP script for update values for all categories in Database.
          – Ronak
          Dec 3 at 9:30




          Yes, you need to create PHP script for update values for all categories in Database.
          – Ronak
          Dec 3 at 9:30

















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f252192%2fset-use-default-value-for-all-categories-attributes-magento-2%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

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay