Guest User

Untitled

a guest
Jun 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. $storeId = Mage::app()->getStore()->getId();
  2. $session = Mage::getSingleton('checkout/session');
  3. //print_r($session); die;
  4.  
  5. $attributes = Mage::getResourceModel('catalog/product_collection')
  6. ->addAttributeToSelect(Mage::getSingleton('checkout/session')->getProductAttributes())
  7. //Product Attributes
  8. ->addAttributeToSelect('placement', 'inner')
  9. ->setStoreId($storeId)
  10. ->addStoreFilter($storeId);
  11.  
  12. foreach ($attributes as $item) {
  13.  
  14. $returnedUrl = $item->getData();
  15. print_r($item->getData()); //die
  16. }
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. // How about this?
  24.  
  25. $attributeCode = "computer_manufacturers";
  26.  
  27. /* @var $attribute Mage_Catalog_Model_Resource_Eav_Attribute */
  28. $attribute = $_product->getResource()->getAttribute($attributeCode);
  29.  
  30. //$attribute->debug();
  31.  
  32. //And...
  33. $af = $attribute->getFrontend();
  34. //$af->getSelectOptions()
Add Comment
Please, Sign In to add comment