In csv file
"Mage_Module::Original Text String","Customized Text String"
Source http://magebase.com/magento-tutorials/quick-tip-translating-strings-from-specific-modules/
In csv file
"Mage_Module::Original Text String","Customized Text String"
Source http://magebase.com/magento-tutorials/quick-tip-translating-strings-from-specific-modules/
<?php | |
Mage::getModel('my_model') | |
->getCollection() | |
->addAttributeToFilter('my_column', array('gt' => Zend_Db_Expr(MY_EXPRESSION))) | |
; |
<?php | |
$canonicalUrl = Mage::getBaseUrl(); // your logic... | |
$this->getLayout() | |
->getBlock('head') | |
->addLinkRel('canonical', $canonicalUrl); |
<?php | |
/** | |
* In some Mage_Adminhtml_Block_Catalog_Form class... | |
*/ | |
protected function _prepareForm() | |
{ | |
$formDataObject = new Varien_Object() // Your logic to get original data for your form | |
$form = new Varien_Data_Form(); |
<php | |
/** | |
* Parse variables string into array of variables | |
* | |
* @param string $variablesString | |
* @return array | |
*/ | |
protected function _parseVariablesString($variablesString) | |
{ | |
$variables = array(); |
<!-- Update config node /config/global/sales/order/states like this: --> | |
<config> | |
<global> | |
<sales> | |
<order> | |
<states> | |
<[state_code]> | |
<!-- | |
Available state_code are: | |
. new |
<?php | |
Mage::getSingleton('core/session')->setSkipSessionIdFlag(true); | |
// line below may also be needed | |
Mage::app()->setUseSessionInUrl(false); | |
?> |
<?php | |
/* | |
Just create as many shopping cart price rules that are elligible for free shipping | |
and this block class will use the most appropriate one to define: | |
- minimum amount to get freeshipping | |
- remaining amount to purchase to get freeshipping. | |
If no rule is elligible, the block falls back to a CMS block. |
<?php | |
$installer = $this->startSetup(); | |
$installer->getConnection() | |
->addColumn( | |
$installer->getTable('module/table_alias'), | |
'sql_column_name', | |
array( | |
'type' => Varien_Db_Ddl_Table::TYPE_INTEGER, // Or any other type from Varien_Db_Ddl_Table | |
'nullable' => true, // Or false... |
mysqldump … | sed -e 's/DEFINER=[^*]*\*/\*/' > dump.sql |