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 foreach ($_associatedProducts as $_item): ?> | |
<tr> | |
<td> | |
<?php $stockItem = $_item->getStockItem(); ?> | |
<?php echo $stockItem->getMinSaleQty(); ?> | |
</td> | |
</tr> | |
<?php endforeach; ?> |
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
tar czvf - / | ssh root@newlocation "tar -xzv -C / -f -" |
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 | |
$apikey = Mage::getModel('api/user')->load(1)->getApiKey(); | |
print_r($apikey); | |
$roles = Mage::getModel('api/roles')->getCollection(); | |
foreach($roles as $role): | |
echo '<br/>Role : '.$role->getId()." | ".$role->getRoleName(); | |
endforeach; | |
?> |
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
scp min_backup.tar.gz ssh [email protected]:/var/www |
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 tar -xvpzf /path/to/backup.tar.gz -C /media/whatever --numeric-owner |
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
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON dbname.* to dbuser@localhost IDENTIFIED BY 'pwd'; |
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
<reference name="head"> | |
<block type="core/text" name="meta.gwt"> | |
<action method="setText"> | |
<text> | |
<![CDATA[<meta name="google-site-verification" content="some_hashed_string"/>]]> | |
</text> | |
</action> | |
</block> | |
</reference> |
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
use mydb; | |
SELECT store_id, name FROM core_store; | |
select * from eav_entity_store; | |
UPDATE `eav_entity_store` SET `increment_last_id` = '400000340' WHERE `entity_type_id` = '5' AND `entity_store_id` = '7'; |
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
postqueue -p | |
check if postfix is down, restart if needed | |
sudo /etc/init.d/postfix restart | |
check mail queue | |
mailq |
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 | |
$order_id = $this->getOrderId(); | |
$order = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId()); | |
$total = $order->getGrandTotal(); | |
?> | |
<?php echo $order_id; ?> | |
<?php echo $total; ?> |
OlderNewer