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
So we all hate reading docs. Here is the quick setup for installing Magento2. If you want the long route - http://devdocs.magento.com/ | |
I'm assuming you have composer, PHP 5.4+ and MySQL5.6+. If you have MAMP installed time to go sort that as it wont work (MAMP is on MySQL5.5.x). | |
1. Install Composer - curl -sS https://getcomposer.org/installer | php | |
2. mv composer.phar /usr/local/bin/composer (might need to sudo) | |
3. Goto base httpdocs directory | |
4. git clone git@github.com:magento/magento2.git | |
5. Set permissions (like you do in Magento 1.x) | |
6. cd magento2 |
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
--- a/app/code/core/Mage/Core/Model/App.php | |
+++ b/app/code/core/Mage/Core/Model/App.php | |
@@ -511,11 +511,7 @@ class Mage_Core_Model_App | |
if ($this->_currentStore == $store) { | |
$store = $this->getStore($store); | |
- if ($store->getWebsite()->getDefaultStore()->getId() == $store->getId()) { | |
- $this->getCookie()->delete(Mage_Core_Model_Store::COOKIE_NAME); | |
- } else { | |
- $this->getCookie()->set(Mage_Core_Model_Store::COOKIE_NAME, $this->_currentStore, true); |
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 Namespace | |
* @package Namespace_Module | |
* @author Anna Völkl | |
* @author Christoph Aßmann | |
* @author Fabian Schmengler | |
*/ | |
/** @var Mage_Core_Model_Resource_Setup $installer */ |
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
#!/bin/sh | |
svnstyle(){ sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" -e 's/@@\(.*\)@@.*/@@\1@@/g' ;} | |
DIFFPARAMS='--no-prefix --ignore-space-at-eol --minimal' | |
git diff $DIFFPARAMS "$@" | svnstyle |
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
#!/bin/sh | |
# | |
# Generates magento modman file | |
# | |
# INSTALLATION: | |
# Save this file to /opt/deploy/tools/modman-generator.sh | |
# ln -s /opt/deploy/tools/modman-generator.sh /usr/local/bin/mg | |
# chmod a+x /usr/local/bin/mg | |
# | |
# USAGE: |
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
<?xml version="1.0"?> | |
<config> | |
<frontend> | |
<events> | |
<!-- disble logs --> | |
<controller_action_predispatch> | |
<observers><log><type>disabled</type></log></observers> | |
</controller_action_predispatch> | |
<controller_action_postdispatch> | |
<observers><log><type>disabled</type></log></observers> |
For refreshing the catalog_category_product index Magento EE generates SQL queries with joins over many tables to determine which product relates to what category and may show up in what category.
The queries fired by the indexer will look something like this:
INSERT IGNORE INTO `catalog_category_product_index_tmp` (`category_id`, `product_id`, `position`, `is_parent`, `store_id`, `visibility`) SELECT `cc`.`entity_id` AS `category_id`, `ccp`.`product_id`, ccp.position + 10000 AS `position`, 0 AS `is_parent`, 20 AS `store_id`, IFNULL(cpvs.value, cpvd.value) AS `visibility` FROM `catalog_category_entity` AS `cc`
INNER JOIN `catalog_category_entity` AS `cc2` ON cc2.path LIKE CONCAT(`cc`.`path`, '/%') AND cc.entity_id NOT IN (1)
INNER JOIN `catalog_category_product` AS `ccp` ON ccp.category_id = cc2.entity_id
Patch using method below or if you don't want to patch a core file, see this Magento extension that does the same thing but correctly overrides the core file:
https://github.com/MageMechanic/PhpSeven
# run in magento root directory
# one-liner to apply patch using wget
wget -qO- 'https://gist.githubusercontent.com/MageMechanic/66449504110fbbd96214/raw/php7_magento_1_9_core.patch' | patch -p0
# one-liner to apply patch using curl
- (in progress) 64-bit Windows 10 Pro, Enterprise and Education (1511 November update, Build 10586 or later)
- Mac OS 10.10.3 "Yosemite" or later
- Install docker https://www.docker.com/products/docker#/mac
- Navigate to http://104.236.203.81/devbox-UI/configure-download.html [NOTE ADDRESS CHANGE]
- Select Create New
OlderNewer