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
<adminhtml> | |
<cms> | |
<browser> | |
<extensions> | |
<allowed> | |
<pdf>1</pdf> | |
</allowed> | |
<image_allowed> | |
<pdf>1</pdf> | |
</image_allowed> |
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
$installer = $this; | |
$installer->startSetup(); | |
$model = Mage::getModel('catalog/resource_eav_attribute'); | |
$model->loadByCode('catalog_product', 'visibility'); | |
$model->setIsGlobal(Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL); | |
$installer->endSetup(); |
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
private function getWidgetByTitleFilter($filter) | |
{ | |
$collection = Mage::getModel('widget/widget_instance')->getCollection(); | |
$collection->addStoreFilter(Mage::app()->getStore()->getId(), false) | |
->addFieldToFilter('title', $filter)->load(); | |
$widget = $collection->getFirstItem(); | |
if($widget && is_numeric($widget->getId())) { | |
$widgetBlock = Mage::app()->getLayout() |
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
mkdir demo | |
cd demo | |
sudo wget http://www.magentocommerce.com/downloads/assets/1.9.0.1/magento-1.9.0.1.tar.gz | |
sudo wget http://www.magentocommerce.com/downloads/assets/1.9.0.0/magento-sample-data-1.9.0.0.tar.gz | |
tar -zxvf magento-1.9.0.1.tar.gz | |
tar -zxvf magento-sample-data-1.9.0.0.tar.gz | |
rsync -a magento-sample-data-1.9.0.0/media/* magento/media/ | |
mv magento-sample-data-1.9.0.0/magento_sample_data_for_1.9.0.0.sql magento/data.sql | |
mv magento/* magento/.htaccess . | |
chmod o+w var var/.htaccess app/etc |
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 | |
/** | |
* Created by PhpStorm. | |
* User: rhutterer | |
* Date: 02.07.14 | |
* Time: 08:55 | |
*/ | |
$this->startSetup(); | |
//#addWebsite | |
/** @var $website Mage_Core_Model_Website */ |
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 | |
/** | |
* Created by PhpStorm. | |
* User: rhutterer | |
* Date: 18.07.14 | |
* Time: 09:21 | |
*/ | |
$installer = $this; | |
//installer for footer cms-blocks |
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
{ | |
"minimum-stability": "dev", | |
"require": { | |
"magento-hackathon/magento-composer-installer": "*", | |
"integer-net/magento-localized-de": "dev-master", | |
"riconeitzel/german-localepack-de-de": "dev-preview", | |
"firegento/magesetup": "dev-feature/revocation_product_types#b5f50cdef0c588377f97cecf34442680e67076a4", | |
"firegento/pdf": "dev-master", | |
"magento-hackathon/localefallback": "dev-master", |
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 | |
$attribute_value = Mage::getResourceSingleton('catalog/product')->getAttributeRawValue($productId, 'attribute_code', Mage::app()->getStore()); | |
echo $attribute_value; |
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
rsync \ | |
--verbose \ | |
--progress \ | |
--stats \ | |
--compress \ | |
--rsh=/usr/bin/ssh \ | |
--recursive \ | |
--times \ | |
--perms \ | |
--links \ |
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 | |
/** | |
* Created by PhpStorm. | |
* User: rhutterer | |
* Date: 10.09.14 | |
* Time: 12:24 | |
*/ | |
?> | |
<div class="addthis-icons clearfix"> | |
<span><?php echo $this->__('Share:') ?></span> |
OlderNewer