Quantcast
Viewing all articles
Browse latest Browse all 33

Child products from parent ID by store

Child products from a parent ID by store $storeId = Mage::app()->getStore()->getStoreId(); $coreResource = Mage::getSingleton('core/resource'); $conn = $coreResource->getConnection('core_read'); $query = "SELECT * FROM catalog_product_relation AS c LEFT JOIN catalog_product_website AS w ON c.parent_id = w.product_id LEFT JOIN catalog_product_link AS l ON l.product_id = w.product_id WHERE c.child_id = $childId AND w.website_id = $storeId AND link_type_id = 4 … Continue reading Child products from parent ID by store

The post Child products from parent ID by store appeared first on An authentic perspective.


Viewing all articles
Browse latest Browse all 33

Trending Articles