Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Get attribute set data of current product
- ### By product id
- ```php
- $productId = 1;
- $product = Mage::getModel(‘catalog/product’)->getCollection->load($productId);
- // see below
- ```
- ### By already loaded product
- ```php
- $attributeSetModel = Mage::getModel("eav/entity_attribute_set");
- $attributeSetModel->load($product->getAttributeSetId());
- ```
- **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