Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $storeId = Mage::app()->getStore()->getId();
- $session = Mage::getSingleton('checkout/session');
- //print_r($session); die;
- $attributes = Mage::getResourceModel('catalog/product_collection')
- ->addAttributeToSelect(Mage::getSingleton('checkout/session')->getProductAttributes())
- //Product Attributes
- ->addAttributeToSelect('placement', 'inner')
- ->setStoreId($storeId)
- ->addStoreFilter($storeId);
- foreach ($attributes as $item) {
- $returnedUrl = $item->getData();
- print_r($item->getData()); //die
- }
- // How about this?
- $attributeCode = "computer_manufacturers";
- /* @var $attribute Mage_Catalog_Model_Resource_Eav_Attribute */
- $attribute = $_product->getResource()->getAttribute($attributeCode);
- //$attribute->debug();
- //And...
- $af = $attribute->getFrontend();
- //$af->getSelectOptions()
Add Comment
Please, Sign In to add comment