Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. # Get attribute set data of current product
  2.  
  3. ### By product id
  4. ```php
  5.  
  6. $productId = 1;
  7. $product = Mage::getModel(‘catalog/product’)->getCollection->load($productId);
  8.  
  9. // see below
  10.  
  11. ```
  12.  
  13. ### By already loaded product
  14. ```php
  15.  
  16. $attributeSetModel = Mage::getModel("eav/entity_attribute_set");
  17. $attributeSetModel->load($product->getAttributeSetId());
  18.  
  19. ```
  20.  
  21. **Data from attribute set**: `attribute_set_id`, `entity_type_id`, `attribute_set_name`, `sort_order`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement