How to show color attribute with sku id in magento -
i need show color attribute of other product sku id. example. on product page. have sku of other product(b,c) . need display other product color ,size sku.
how can it?
thanks
you can fetch product sku code below , use/display information want display.
$product = mage::getmodel('catalog/product')->loadbyattribute('sku',$sku); //$sku product's sku.
if don't show details can try load product it's code
$productid = $product->getidbysku($sku); //$sku prdouct's sku if ($productid) { $product->load($productid); }
if have more 1 sku create array , call in loop.
Comments
Post a Comment