Skip to content

How to filter product with salable filter in magento2

In magento 1 , $products = Mage::getModel(‘catalog/product’)->getCollection(); $products->addAttributeToFilter(‘status’, 1); // enabled $products->addAttributeToFilter(‘type_id’, ‘simple’); //$products->addAttributeToFilter(‘sku’, array(‘1234’)); //for testing purposes $products->addAttributeToSelect(‘*’); Mage::getSingleton(‘catalog/product_status’)->addSaleableFilterToCollection($products); Mage::getSingleton(‘cataloginventory/stock’)->addInStockFilterToCollection($products); $prodIds = $products->getAllIds(); I need to filter product collection with Is_salable() filter in magento2 Mage::getSingleton(‘catalog/product_status’)->addSaleableFilterToCollection($products); Mage::getSingleton(‘cataloginventory/stock’)->addInStockFilterToCollection($products); How to do… Read More »How to filter product with salable filter in magento2

Are WHMCS owned licenses still sellable?

I just noticed I had one in my whmcs account with branding removal and I am not even sure if anyone would buy it… Hope someone could let … | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1904788&goto=newpost