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?

Rotate a column

Failed to fetch jessie backports repository

India just shot down a satellite from the ground. At what altitude range is the resulting debris field?

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Why didn't Khan get resurrected in the Genesis Explosion?

How do I construct this japanese bowl?

If I blow insulation everywhere in my attic except the door trap, will heat escape through it?

If the heap is initialized for security, then why is the stack uninitialized?

Can the Reverse Gravity spell affect the Meteor Swarm spell?

Why does C# sound extremely flat when saxophone is tuned to G?

How to get regions to plot as graphics

Shade part of a Venn diagram

How can I open an app using Terminal?

WOW air has ceased operation, can I get my tickets refunded?

Anatomically Correct Mesopelagic Aves

Why is there a PLL in CPU?

How to Reset Passwords on Multiple Websites Easily?

Return the Closest Prime Number

When Does an Atlas Uniquely Define a Manifold?

Is it okay to store user locations?

How do we know the LHC results are robust?

Describing a person. What needs to be mentioned?

Is HostGator storing my password in plaintext?

How easy is it to start Magic from scratch?



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

                      Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                      Magento 2 disable Secret Key on URL's from terminal The Next CEO of Stack OverflowMagento 2 Shortcut/GUI tool to perform commandline tasks for windowsIn menu add configuration linkMagento oAuth : Generating access token and access secretMagento 2 security key issue in Third-Party API redirect URIPublic actions in admin controllersHow to Disable Cache in Custom WidgetURL Key not changing in Magento 2Product URL Key gets deleted when importing custom options - Magento 2Problem with reindex terminalMagento 2 - bin/magento Commands not working in Cpanel Terminal

                      Aasi (pallopeli) Navigointivalikko