How can i get the product type(simplee,configurable/grouped …) using product sku or id, i have loaded product collection and from that trying to prict type by
$_product->getTypeId()
But its not printing the product type. Please help me
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think
$_product->getTypeId()should work. If it doesn’t then try$_product->getResource()->getTypeId()