How to disable configurable if there are no active/enabled associated simple products programmatically?How do...

Does paint affect EMI ability of enclosure?

Using only 1s, make 29 with the minimum number of digits

Are there any modern advantages of a fire piston?

Incorporating research and background: How much is too much?

Early credit roll before the end of the film

How to count the characters of jar files by wc

Blindfold battle as a gladiatorial spectacle - what are the tactics and communication methods?

Why do members of Congress in committee hearings ask witnesses the same question multiple times?

How should I handle players who ignore the session zero agreement?

Publishing research using outdated methods

Avoiding morning and evening handshakes

If I delete my router's history can my ISP still provide it to my parents?

What is 6÷2×(1+2) =?

It took me a lot of time to make this, pls like. (YouTube Comments #1)

What are "industrial chops"?

Why is working on the same position for more than 15 years not a red flag?

Table formatting top left corner caption

Do authors have to be politically correct in article-writing?

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

Why would the Pakistan airspace closure cancel flights not headed to Pakistan itself?

what does しにみえてる mean?

What is the purpose of easy combat scenarios that don't need resource expenditure?

Can I string the D&D Starter Set campaign into another module, keeping the same characters?

Finding a mistake using Mayer-Vietoris



How to disable configurable if there are no active/enabled associated simple products programmatically?


How do I? Magento out of stock simple products, but DO want to show configurable product (out of stock)Create a product with different colors (associated products) where each color shares stock with all other colorsHow to display status of associated product in configurable productsMagento CE 1.9.1 Configurable Products do not get their simple products 'associated'Remove disabled attribute from out of stock simple productMagento 2 - Configurable products not pairing with simple products?Display all associated simple products, even if all of them are out of stockDisabled product still displaying on frontendUpdating configurable product prices via CSV import?Get Report of Configurable with All Associated Simple disabled













0















I would like to disable my configurable products if there are no enable (not out of stock) associated simple. Just display "out of stock" is not enough.



I have a cronjob which sets stocks and prices of each simple product from a csv import. Sometimes there are no enabled associated simple left. In that case configurable must be set as disabled.
The other case is to enable configurable if at least one associated simple is enabled again after stock import.



Is there any way to do that programmatically? Hoping someone could help me with that.










share|improve this question





























    0















    I would like to disable my configurable products if there are no enable (not out of stock) associated simple. Just display "out of stock" is not enough.



    I have a cronjob which sets stocks and prices of each simple product from a csv import. Sometimes there are no enabled associated simple left. In that case configurable must be set as disabled.
    The other case is to enable configurable if at least one associated simple is enabled again after stock import.



    Is there any way to do that programmatically? Hoping someone could help me with that.










    share|improve this question



























      0












      0








      0








      I would like to disable my configurable products if there are no enable (not out of stock) associated simple. Just display "out of stock" is not enough.



      I have a cronjob which sets stocks and prices of each simple product from a csv import. Sometimes there are no enabled associated simple left. In that case configurable must be set as disabled.
      The other case is to enable configurable if at least one associated simple is enabled again after stock import.



      Is there any way to do that programmatically? Hoping someone could help me with that.










      share|improve this question
















      I would like to disable my configurable products if there are no enable (not out of stock) associated simple. Just display "out of stock" is not enough.



      I have a cronjob which sets stocks and prices of each simple product from a csv import. Sometimes there are no enabled associated simple left. In that case configurable must be set as disabled.
      The other case is to enable configurable if at least one associated simple is enabled again after stock import.



      Is there any way to do that programmatically? Hoping someone could help me with that.







      magento-1.9 configurable-product import cron associated-products






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 21 mins ago









      Muhammad Hasham

      2,0041424




      2,0041424










      asked Apr 24 '18 at 7:50









      AlexAlex

      12




      12






















          0






          active

          oldest

          votes











          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%2f223424%2fhow-to-disable-configurable-if-there-are-no-active-enabled-associated-simple-pro%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f223424%2fhow-to-disable-configurable-if-there-are-no-active-enabled-associated-simple-pro%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

          “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

          How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

          夢乃愛華...