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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -