This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Mage_Checkout_Block_Onepage_Billing::getAddress() should be something like this | |
* | |
* Similar for Mage_Checkout_Block_Onepage_Shipping | |
*/ | |
public function getAddress() | |
{ | |
if (is_null($this->_address)) { | |
$this->_address = $this->getQuote()->getBillingAddress(); //always take address from quote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"magento/magento-composer-installer": "*", | |
"magento/product-community-edition": "0.1.0-alpha97" | |
}, | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "http://packages.magento.com/" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Inchoo_Edu_Model_Example | |
{ | |
/* | |
* Custom cache example | |
* | |
* @see: Directory, Adminhtml_Block, etc. | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Inchoo_Edu_Model_Resource_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract | |
{ | |
/* | |
* Collection that always caches all its queries | |
* | |
*/ | |
protected function _construct() | |
{ | |
$this->_init('inchoo_edu/dummy'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Inchoo_Edu_Block_Template extends Mage_Core_Block_Template | |
{ | |
/* | |
* Block caching | |
* | |
*/ | |
protected function _construct() | |
{ |
NewerOlder