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 -zcvf var/backups/media_$(date +%d%m%Y).tar.gz --exclude-vcs --exclude='*cache*' --exclude='captcha' --exclude='wysiwyg/.thumbs' --exclude='tmp' --exclude='import' --exclude='export' --exclude='js' --exclude='js_secure' --exclude='css' --exclude='css_secure' media/ |
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
## Website Sitemap | |
# Sitemap: http://www.example.com/sitemap.xml | |
## Crawlers Setup | |
User-agent: * | |
# Crawl-delay: 30 | |
## Do not crawl common Magento folders | |
Disallow: /app/ | |
Disallow: /downloader/ |
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 | |
/** | |
* CMS Blocks Installer | |
*/ | |
try { | |
/* @var $installer Mage_Core_Model_Resource_Setup */ | |
$installer = $this; | |
$block1Content = <<<HTML |
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 | |
/** | |
* CMS Pages Installer | |
*/ | |
try { | |
/* @var $installer Mage_Core_Model_Resource_Setup */ | |
$installer = $this; | |
$page1Content = <<<HTML |
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 Attribute Sets Installer | |
*/ | |
/* @var $installer Mage_Catalog_Model_Resource_Setup */ | |
$installer = $this; | |
// Default attribute set | |
$defaultAttributeSetId = $installer->getAttributeSetId(Mage_Catalog_Model_Product::ENTITY, 'Default'); |
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 | |
/** | |
* Create Shopping Cart Sales Rule with Specific Coupon Code Programmatically | |
*/ | |
// All customer group ids | |
$customerGroupIds = Mage::getModel('customer/group')->getCollection()->getAllIds(); | |
// SalesRule Rule model | |
$rule = Mage::getModel('salesrule/rule'); |
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 Attribute Installer | |
*/ | |
try { | |
/* @var $installer Mage_Catalog_Model_Resource_Setup */ | |
$installer = $this; | |
$installer->startSetup(); |
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 | |
/** | |
* Customer/Customer Address Attributes Installer | |
*/ | |
try { | |
/* @var $installer Mage_Customer_Model_Entity_Setup */ | |
$installer = $this; | |
$installer->startSetup(); |
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 | |
/** | |
* Check if out of stock options of configurable products should be displayed | |
*/ | |
public function checkDisplayOutOfStockOptions() | |
{ | |
$currentProduct = Mage::registry('current_product'); | |
if ($currentProduct && $currentProduct->isConfigurable()) { | |
if (Mage::getStoreConfigFlag(Mage_CatalogInventory_Helper_Data::XML_PATH_SHOW_OUT_OF_STOCK)) { |
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
############################################################ | |
# From the directory which contains the composer.json file # | |
############################################################ | |
curl -s http://getcomposer.org/installer | php | |
php composer.phar install |
OlderNewer