$options = $attribute->getFrontend()->getSelectOptions(); foreach($options as $option){ print $option['value']; }
To be used locally for development: server { listen 80; server_name magento.dev; root /usr/share/nginx/html/magento.dev; access_log /var/log/nginx/$host.access.log main;
// Gets the current store's details $store = Mage::app()->getStore(); // Gets the current store's id $storeId = Mage::app()->getStore...
$dateFormatted = "Feb 18, 2015"; $timezone = Mage::getStoreConfig(Mage_Core_Model_Locale::XML_PATH_DEFAULT_TIMEZONE, $storeId);
... $codes = [...
Mage::getModel('eav/entity_attribute') ->getCollection() ->addFieldToFilter( 'attribute_code', array('in' => $codes) )
Get database read adapter /* @var $adapter Varien_Db_Adapter_Interface */ $adapter = Mage::getSingleton('core/resource') ->getConnection('core_read'); Get database write...
Get full table name Mage::getSingleton('core/resource') ->getTableName($tableShortName); Example: Mage::getSingleton('core/resource') ->getTableName('catalog/product');
Best results in other decks
How to debug cli command in magento 2 Steps: 1) Export the key (if you are using docker, do it...
After installing DDEV in WSL2 Ubuntu terminal. Note: do not install in Windows. How to Launch VS Code