Magento finset()

<?php $_product = $this->getProduct(); //get product object $case_studies = Mage::getModel('contentmanager/content') ->getCollection('case_studies') ->addAttributeToSelect(array('*')) ->addAttributeToFilter('status', 1) ->addAttributeToSort('cs_position', 'ASC') ->addAttributeToFilter('cs_product', array('finset' => $_product->getSku())) ->addAttributeToFilter('cs_category', 'cs_case_study'); // loop grab collection of case studies associated with this product's sku assocated with case study cagetory "Case Study"

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.