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?
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
add a comment |
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
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
add a comment |
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
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
configurable-product products
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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
add a comment |
For M1
you can use:
/* Mage_Catalog_Model_Product */
if ($product->isConfigurable())
...
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Jan 8 '18 at 19:26
Keyur ShahKeyur Shah
13.2k24165
13.2k24165
add a comment |
add a comment |
For M1
you can use:
/* Mage_Catalog_Model_Product */
if ($product->isConfigurable())
...
add a comment |
For M1
you can use:
/* Mage_Catalog_Model_Product */
if ($product->isConfigurable())
...
add a comment |
For M1
you can use:
/* Mage_Catalog_Model_Product */
if ($product->isConfigurable())
...
For M1
you can use:
/* Mage_Catalog_Model_Product */
if ($product->isConfigurable())
...
answered Jan 8 '18 at 21:48
sv3nsv3n
9,90562455
9,90562455
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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