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 | |
/* | |
Edit file vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php | |
and add the following code at line 237 | |
*/ | |
$sqlQuery = $sql; | |
if (is_string(key($bind))) { | |
foreach ($bind as $field => $value) { | |
$sqlQuery = str_replace($field, $this->quote($value), $sqlQuery); |
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 | |
/** | |
* Copy all images from $productSrc to $productDest | |
* | |
* @param Mage_Catalog_Model_Product $productSrc | |
* @param Mage_Catalog_Model_Product $productDest | |
*/ | |
public function copyProductImages(Mage_Catalog_Model_Product $productSrc, Mage_Catalog_Model_Product $productDest) | |
{ | |
$images = array(); |
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
[alias] | |
ci = commit | |
co = checkout | |
st = status | |
br = branch | |
lg = log -10 --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative | |
files = diff-tree --no-commit-id --name-only -r |
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
nginx/ | |
!nginx/.gitkeep | |
!nginx/logs/.gitkeep | |
src/ | |
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
<?php | |
/** @var $collection Mage_Catalog_Model_Resource_Category_Collection */ | |
$collection = Mage::getModel('catalog/category', array('disable_flat' => true))->getCollection(); | |
// ... custom stuff |
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 Mage_Catalog_Helper_Product_Flat $helper */ | |
$process = Mage::helper('catalog/product_flat')->getProcess(); | |
$status = $process->getStatus(); | |
$process->setStatus(Mage_Index_Model_Process::STATUS_RUNNING); | |
/** @var $collection Mage_Catalog_Model_Resource_Product_Collection */ | |
$collection = Mage::getResourceModel('catalog/product_collection'); // Use EAV tables | |
// ... custom stuff |
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 | |
// Reindex category urls | |
if (Mage::helper('core')->isModuleEnabled('Enterprise_Mview')) { | |
$client = Mage::getModel('enterprise_mview/client') | |
->init('enterprise_url_rewrite_category') | |
->execute('enterprise_catalog/index_action_url_rewrite_category_refresh'); | |
} |
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 | |
if (Mage::helper('catalog/product_flat')->isEnabled()) { | |
Mage::getSingleton('index/indexer') | |
->getProcessByCode(Mage_Catalog_Helper_Product_Flat::CATALOG_FLAT_PROCESS_CODE) | |
->changeStatus(Mage_Index_Model_Process::STATUS_REQUIRE_REINDEX); | |
} |
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 | |
/** | |
* @category Bubble | |
* @package Bubble_DynamicCategory | |
* @version 1.0.1 | |
* @copyright Copyright (c) 2014 BubbleShop (http://www.bubbleshop.net) | |
*/ | |
class Bubble_DynamicCategory_Helper_Data extends Mage_Core_Helper_Abstract | |
{ | |
public function getDynamicProductIds(Varien_Object $category) |
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
# Misc | |
/.buildpath | |
/.project | |
/nbproject | |
/catalog.xml | |
/sitemap.xml | |
/.settings | |
/.idea | |
/staging | |
/.modman |
NewerOlder