short but sweet

Thursday, 22 June 2017

get attribute id from attribute code.

If you want to get attribute id from attribute code, use following code.

 $attributeId = Mage::getResourceModel('eav/entity_attribute')
    ->getIdByCode('catalog_product', 'small_image');



Posted by krupa at 00:02 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2019 (1)
    • ►  January (1)
  • ▼  2017 (4)
    • ►  August (3)
    • ▼  June (1)
      • get attribute id from attribute code.
  • ►  2016 (1)
    • ►  September (1)
  • ►  2014 (5)
    • ►  December (1)
    • ►  November (2)
    • ►  October (1)
    • ►  May (1)
  • ►  2013 (18)
    • ►  October (3)
    • ►  September (1)
    • ►  July (3)
    • ►  June (4)
    • ►  May (7)
  • ►  2012 (2)
    • ►  April (2)

About Me

krupa
View my complete profile
Watermark theme. Powered by Blogger.