You can use the Magento integrator instructions to install download/install Magento 2 via composer
Get the Magento CE metapackage
To get started:
#!/usr/bin/env bash | |
# What it does: | |
# - Creates a local Shopware installation using the Symfony Flex template for local development of client projects | |
# - Prerequisites: ddev installed on your machine, see https://ddev.com/get-started/ | |
# | |
# How to use: | |
# - create a project folder | |
# - copy this file into the project folder | |
# - chmod +x install.sh |
find -L app/design/frontend -name 'shipping.phtml' -or -name 'billing.phtml' -or -name 'shipping_method.phtml' -or -name 'payment.phtml' \ | |
| xargs grep -L formkey \ | |
| xargs perl -i -pe 's/<\/form>/<?php echo \$this->getBlockHtml("formkey") ?>\n<\/form>/g' | |
find -L skin/frontend -name 'opcheckout.js' \ | |
| xargs grep -L form_key \ | |
| xargs perl -i -pe 's/if \(elements\[i\]\.name=='\''payment\[method\]'\''\) \{/if (elements[i].name=='\''payment[method]'\'' || elements[i].name == '\''form_key'\'') {/g' | |
find -L js -name 'payment.js' \ | |
| xargs grep -L form_key \ |
You can use the Magento integrator instructions to install download/install Magento 2 via composer
Get the Magento CE metapackage
To get started:
This procedure is tested on Mac OS X 10.10.5 with Developpers tools installed (xCode).
PHP 5.6 installed with Homebrew.
Download the following files from Oracle website (yes, you need to create an account and accept terms):
This Gist is a collection of configuration files that can be used to easily setup a Homebrew-based LEMP stack on Mac OS X.
Files in this repository are numbered and named for ordering purposes only. At the top of each file is a section of metadata that denote what component the file belongs to and the default name & location of the file. Feel free to implement it however you want.
Note: some configuration files have hard-coded paths to my user directory -- fix it for your setup
SET @entityid = 5; -- category's ID | |
-- Select varchar/string based category attribute values | |
SELECT ea.attribute_id, ea.attribute_code, eav.value AS 'value', 'varchar' AS 'type' | |
FROM catalog_category_entity e | |
JOIN catalog_category_entity_varchar eav ON e.entity_id = eav.entity_id | |
JOIN eav_attribute ea ON eav.attribute_id = ea.attribute_id | |
WHERE e.entity_id = @entityid | |
-- Select integer based category attribute values (includes boolean values) | |
UNION( |
# Install `dnsmasq` and configure for *.dev domains | |
$ brew install dnsmasq | |
$ vim /usr/local/etc/dnsmasq.conf | |
# Reload configuration and clear cache | |
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
$ dscacheutil -flushcache |
// Post repeat directive for logging the rendering time | |
angular.module('myApp').directive('postRepeatDirective', | |
['$timeout', | |
function($timeout) { | |
return function(scope) { | |
if (scope.$first) | |
window.a = new Date(); // window.a can be updated anywhere if to reset counter at some action if ng-repeat is not getting started from $first | |
if (scope.$last) | |
$timeout(function(){ | |
console.log("## DOM rendering list took: " + (new Date() - window.a) + " ms"); |
For helpful resources on overriding Magento controllers, blocks, models, helpers, etc. see Josh Pratt's post on Magento: Overriding Core Files (Blocks, Models, Resources, Controllers)
Here's a list of search results that I've found most helpful; otherwise good luck with the Googling!