In Mage_Checkout_OnepageController
, temporarely comment out $session->clear();
View Amasty_Shopby_Helper_Attributes.php
<?php | |
/** | |
* @return array | |
*/ | |
public function getAllFilterableOptionsAsHash() | |
{ | |
if (is_null($this->_optionsHash)) { | |
$hash = array(); | |
$attributes = $this->getFilterableAttributes(); | |
View translation_var_order.csv
%1$s %2$s private sales | Ventes privées %2$s %1$s |
---|
View product_entity_type_id.php
<?php | |
Mage::getModel('eav/entity_type')->loadByCode(Mage_Catalog_Model_Product::ENTITY)->getEntityTypeId(); |
View first_product_category.php
<?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(); |
View kill_solr
lsof -i :8983 | |
# and kill returned pid |
View catalog_category_attribute_price.php
<?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, |
View store_date_interval.php
<?php | |
Mage::app()->getLocale()->isStoreDateInInterval(null, $myfromDate, $myToDate); |
View test_order_success_page.md
View translate_specific_string_module.md
In csv file
"Mage_Module::Original Text String","Customized Text String"
Source http://magebase.com/magento-tutorials/quick-tip-translating-strings-from-specific-modules/