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
// Load by name | |
$_category = Mage::getModel('catalog/category')->loadByAttribute('name', 'Acoustic Guitars'); |
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
if ($productCollection instanceof Varien_Data_Collection) { | |
$productCollection->load(); | |
Mage::getModel('review/review')->appendSummary($productCollection); | |
} |
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
$form = new Varien_Data_Form(); | |
$form->addField('yesno', 'select', array( | |
'label' => $this->__('Yes or No?'), | |
'values' => Mage::model('adminhtml/system_config_source_yesnocustom') | |
->toOptionArray(), | |
)); | |
$form->addField('custom_value', text, array( | |
'label' => $this->__('Other'), | |
)); |
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
xdebug.remote_enable=1 | |
xdebug.remote_host="10.0.2.2" | |
xdebug.remote_connect_back=0 | |
xdebug.remote_port=9007 | |
xdebug.remote_handler="dbgp" | |
xdebug.remote_mode=req | |
xdebug.profiler_enable=0 | |
xdebug.idekey="PHPSTORM" | |
xdebug.max_nesting_level=100 | |
xdebug.dump.SERVER="REQUEST_URI" |
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
XDEBUG_CONFIG="idekey=PHPSTORM" PHP_IDE_CONFIG="serverName=www.server.com" php import.php categorias_v3.csv --truncate |
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
git branch -m <oldname> <newname> | |
git branch -m <newname> |
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
$quote= Mage::getModel('sales/quote')->loadByIdWithoutStore($quoteid); |
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
sudo apt-get install ssmtp | |
sudo nano /etc/ssmtp/ssmtp.conf | |
------------------ CUT HERE --------------------- | |
# | |
# Config file for sSMTP sendmail | |
# | |
# The person who gets all mail for userids < 1000 |
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
XDEBUG_CONFIG="idekey=PHPSTORM" PHP_IDE_CONFIG="serverName=www.remoteserver.com" php import.php categorias_v3.csv --truncate |
OlderNewer