In Mage_Checkout_OnepageController
, temporarely comment out $session->clear();
This file contains 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 | |
Mage::app()->getLocale()->isStoreDateInInterval(null, $myfromDate, $myToDate); |
This file contains 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 | |
$catalogInstaller = new Mage_Catalog_Model_Resource_Setup('core_setup'); | |
$catalogInstaller->addAttribute('catalog_category', 'myattribute_code', array( | |
'type' => 'decimal', | |
'label' => Mage::helper('myHelper')->__('Price From'), | |
'input' => 'text', | |
'input_renderer' => 'adminhtml/catalog_product_helper_form_price', | |
'required' => false, | |
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL, | |
'sort_order' => 9999, |
This file contains 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
lsof -i :8983 | |
# and kill returned pid |
This file contains 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 | |
// $product must be an instance of Mage_Catalog_Model_Product | |
$productCategoryIds = $product->getCategoryIds(); | |
$productCategory = Mage::getModel('catalog/category')->getCollection() | |
->addAttributeToFilter('is_active', true) | |
->addAttributeToFilter('entity_id', array('in' => $productCategoryIds)) | |
->setPageSize(1) | |
->getFirstItem(); |
This file contains 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 | |
Mage::getModel('eav/entity_type')->loadByCode(Mage_Catalog_Model_Product::ENTITY)->getEntityTypeId(); |
This file contains 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
%1$s %2$s private sales | Ventes privées %2$s %1$s |
---|
This file contains 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 | |
/** | |
* @return array | |
*/ | |
public function getAllFilterableOptionsAsHash() | |
{ | |
if (is_null($this->_optionsHash)) { | |
$hash = array(); | |
$attributes = $this->getFilterableAttributes(); | |
This file contains 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 | |
/** | |
* Has shipping been applied to quote? | |
* | |
* @var bool | |
*/ | |
protected $_hasShipping = false; | |
/** |