how to filter by product type when we have some other types?
-
31-10-2019 - |
문제
$batt_pack = Mage::getModel('catalog/product')->getCollection();
$batt_pack->addFieldToFilter('product_type',
array(
'like' => Mage::getResourceModel('catalog/product')
->getAttribute('product_type')
->getSource()
->getOptionId('Battery Pack')
)
although I used "like" it shows me only the ones that has just the product type of Battery pack it doesn't show me the ones has battery pack and some thing else how can I do that?
->getOptionId('Battery Pack%')
this one also didn't work I know it is so wrong but I guess I should do something like this
올바른 솔루션이 없습니다
제휴하지 않습니다 magento.stackexchange