16
Support / Re: Displaying in stock options on product listing
« on: October 20, 2014, 01:36:32 PM »
Thanks, That seems to work, and already filters out 0 quantity,
$this->model_catalog_product->getProductOptions($product['product_id']);
Would be nice if this was cached in the product, I think this will query for each product, correct?
$this->model_catalog_product->getProductOptions($product['product_id']);
Would be nice if this was cached in the product, I think this will query for each product, correct?
Check the model for product
getProductOptions method will give you all details for options including the stock.
Look at 'quantity' for each option.