How do I check if a product is configurable The Next CEO of Stack OverflowHow to display...

Why do professional authors make "consistency" mistakes? And how to avoid them?

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin

Why is there a PLL in CPU?

Trouble understanding the speech of overseas colleagues

What is the point of a new vote on May's deal when the indicative votes suggest she will not win?

Apart from "berlinern", do any other German dialects have a corresponding verb?

How to make a software documentation "officially" citable?

Anatomically Correct Mesopelagic Aves

How do I construct this japanese bowl?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Need some help with wall behind rangetop

How to write the block matrix in LaTex?

What does "Its cash flow is deeply negative" mean?

Opposite of a diet

How to make a variable always equal to the result of some calculations?

Should I tutor a student who I know has cheated on their homework?

MAZDA 3 2006 (UK) - poor acceleration then takes off at 3250 revs

How do scammers retract money, while you can’t?

Is a stroke of luck acceptable after a series of unfavorable events?

What can we do to stop prior company from asking us questions?

What is the purpose of the Evocation wizard's Potent Cantrip feature?

Only print output after finding pattern

What does this shorthand mean?

Is it my responsibility to learn a new technology in my own time my employer wants to implement?



How do I check if a product is configurable



The Next CEO of Stack OverflowHow to display configurable product options in category list pageWrong price for configurable product in carthow to check if a product is a simple product and not a child of a configurable productPrice filter on configurable productsLink configurable swatches to appropriate simple productGet Price For Configurable Product Magento 2how to display configurable product price of default selected in product list instead of Zero?How to show configurable price range on product list page & product page?How configurable product price works in magento 2?Product list page configurable product price in negative value in magento 1?












1















Does someone know how to check if a product is configurable ?



I want my configurable products to say 'From:' in front of the price on the product list page.










share|improve this question




















  • 1





    Please specify which Magento version you are using.

    – Lez
    Jan 8 '18 at 18:03











  • this one I believe your question can be answered through this link stackoverflow.com/questions/24968361/…

    – Mestre Magento
    Jan 8 '18 at 18:17











  • Found answer here?

    – sv3n
    Feb 3 '18 at 13:00
















1















Does someone know how to check if a product is configurable ?



I want my configurable products to say 'From:' in front of the price on the product list page.










share|improve this question




















  • 1





    Please specify which Magento version you are using.

    – Lez
    Jan 8 '18 at 18:03











  • this one I believe your question can be answered through this link stackoverflow.com/questions/24968361/…

    – Mestre Magento
    Jan 8 '18 at 18:17











  • Found answer here?

    – sv3n
    Feb 3 '18 at 13:00














1












1








1








Does someone know how to check if a product is configurable ?



I want my configurable products to say 'From:' in front of the price on the product list page.










share|improve this question
















Does someone know how to check if a product is configurable ?



I want my configurable products to say 'From:' in front of the price on the product list page.







configurable-product products






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 38 mins ago









Teja Bhagavan Kollepara

3,01241949




3,01241949










asked Jan 8 '18 at 18:02









samldnsamldn

1113




1113








  • 1





    Please specify which Magento version you are using.

    – Lez
    Jan 8 '18 at 18:03











  • this one I believe your question can be answered through this link stackoverflow.com/questions/24968361/…

    – Mestre Magento
    Jan 8 '18 at 18:17











  • Found answer here?

    – sv3n
    Feb 3 '18 at 13:00














  • 1





    Please specify which Magento version you are using.

    – Lez
    Jan 8 '18 at 18:03











  • this one I believe your question can be answered through this link stackoverflow.com/questions/24968361/…

    – Mestre Magento
    Jan 8 '18 at 18:17











  • Found answer here?

    – sv3n
    Feb 3 '18 at 13:00








1




1





Please specify which Magento version you are using.

– Lez
Jan 8 '18 at 18:03





Please specify which Magento version you are using.

– Lez
Jan 8 '18 at 18:03













this one I believe your question can be answered through this link stackoverflow.com/questions/24968361/…

– Mestre Magento
Jan 8 '18 at 18:17





this one I believe your question can be answered through this link stackoverflow.com/questions/24968361/…

– Mestre Magento
Jan 8 '18 at 18:17













Found answer here?

– sv3n
Feb 3 '18 at 13:00





Found answer here?

– sv3n
Feb 3 '18 at 13:00










2 Answers
2






active

oldest

votes


















5














From the question it is not clear for which version you want to check still I am adding answer,



For M2 you can check like this,



if($product->getTypeId() == MagentoConfigurableProductModelProductTypeConfigurable::TYPE_CODE){
echo "product is configurable";
}


Where $product is MagentoCatalogModelProduct object





For M1 you can check like this,



if($product->getTypeId() == Mage_Catalog_Model_Product_Type_Configurable::TYPE_CODE){
echo "product is configurable";
}


Where $product is Mage_Catalog_Model_Product object






share|improve this answer































    1














    For M1 you can use:



    /* Mage_Catalog_Model_Product */
    if ($product->isConfigurable()) {
    ...
    }





    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%2f208571%2fhow-do-i-check-if-a-product-is-configurable%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









      5














      From the question it is not clear for which version you want to check still I am adding answer,



      For M2 you can check like this,



      if($product->getTypeId() == MagentoConfigurableProductModelProductTypeConfigurable::TYPE_CODE){
      echo "product is configurable";
      }


      Where $product is MagentoCatalogModelProduct object





      For M1 you can check like this,



      if($product->getTypeId() == Mage_Catalog_Model_Product_Type_Configurable::TYPE_CODE){
      echo "product is configurable";
      }


      Where $product is Mage_Catalog_Model_Product object






      share|improve this answer




























        5














        From the question it is not clear for which version you want to check still I am adding answer,



        For M2 you can check like this,



        if($product->getTypeId() == MagentoConfigurableProductModelProductTypeConfigurable::TYPE_CODE){
        echo "product is configurable";
        }


        Where $product is MagentoCatalogModelProduct object





        For M1 you can check like this,



        if($product->getTypeId() == Mage_Catalog_Model_Product_Type_Configurable::TYPE_CODE){
        echo "product is configurable";
        }


        Where $product is Mage_Catalog_Model_Product object






        share|improve this answer


























          5












          5








          5







          From the question it is not clear for which version you want to check still I am adding answer,



          For M2 you can check like this,



          if($product->getTypeId() == MagentoConfigurableProductModelProductTypeConfigurable::TYPE_CODE){
          echo "product is configurable";
          }


          Where $product is MagentoCatalogModelProduct object





          For M1 you can check like this,



          if($product->getTypeId() == Mage_Catalog_Model_Product_Type_Configurable::TYPE_CODE){
          echo "product is configurable";
          }


          Where $product is Mage_Catalog_Model_Product object






          share|improve this answer













          From the question it is not clear for which version you want to check still I am adding answer,



          For M2 you can check like this,



          if($product->getTypeId() == MagentoConfigurableProductModelProductTypeConfigurable::TYPE_CODE){
          echo "product is configurable";
          }


          Where $product is MagentoCatalogModelProduct object





          For M1 you can check like this,



          if($product->getTypeId() == Mage_Catalog_Model_Product_Type_Configurable::TYPE_CODE){
          echo "product is configurable";
          }


          Where $product is Mage_Catalog_Model_Product object







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 8 '18 at 19:26









          Keyur ShahKeyur Shah

          13.2k24165




          13.2k24165

























              1














              For M1 you can use:



              /* Mage_Catalog_Model_Product */
              if ($product->isConfigurable()) {
              ...
              }





              share|improve this answer




























                1














                For M1 you can use:



                /* Mage_Catalog_Model_Product */
                if ($product->isConfigurable()) {
                ...
                }





                share|improve this answer


























                  1












                  1








                  1







                  For M1 you can use:



                  /* Mage_Catalog_Model_Product */
                  if ($product->isConfigurable()) {
                  ...
                  }





                  share|improve this answer













                  For M1 you can use:



                  /* Mage_Catalog_Model_Product */
                  if ($product->isConfigurable()) {
                  ...
                  }






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 8 '18 at 21:48









                  sv3nsv3n

                  9,90562455




                  9,90562455






























                      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%2f208571%2fhow-do-i-check-if-a-product-is-configurable%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)...

                      夢乃愛華...