Trigger .trigger('contentUpdated')
on the element where dynamic content is injected.
$.ajax({
url: 'https://www.example.com',
method: 'POST',
data: {
id: '1'
<?php | |
/** | |
* Copyright © Magento, Inc. All rights reserved. | |
* See COPYING.txt for license details. | |
*/ | |
use Magento\Framework\App\Bootstrap; | |
use Magento\Framework\DB\Adapter\AdapterInterface; | |
use Magento\Framework\DB\Query\Generator; | |
use Magento\Framework\DB\Select\QueryModifierFactory; |
#!/bin/bash | |
SHOP_URL=https://yourshop.url | |
ADMIN_USERNAME=yourusername | |
ADMIN_PASSWORD=yourpassword | |
BEARER=$(curl -XPOST -H 'Content-Type: application/json' ${SHOP_URL}/index.php/rest/V1/integration/admin/token -d '{ "username": "${ADMIN_USERNAME}", "password": "${ADMIN_PASSWORD}" }') | |
curl -XGET -H "Authorization: Bearer ${BEARER}" ${SHOP_URL}/rest/default/schema?services=all | tee swagger.json | |
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate -i /local/swagger.json -l php -o /local/ |
#!/bin/bash | |
echo "*** This script is anonymizing a DB-dump of the LIVE-DB in the DEMO-Environment ***" | |
HOST=`grep host ../app/etc/local.xml | sed 's/ *<host>\(.*\)<\/host>/\1/' | sed 's/<!\[CDATA\[//' | sed 's/\]\]>//'` | |
USER=`grep username ../app/etc/local.xml | sed 's/ *<username>\(.*\)<\/username>/\1/' | sed 's/<!\[CDATA\[//' | sed 's/\]\]>//'` | |
PASS=`grep password ../app/etc/local.xml | sed 's/ *<password>\(.*\)<\/password>/\1/' | sed 's/<!\[CDATA\[//' | sed 's/\]\]>//'` | |
NAME=`grep dbname ../app/etc/local.xml | sed 's/ *<dbname>\(.*\)<\/dbname>/\1/' | sed 's/<!\[CDATA\[//' | sed 's/\]\]>//'` | |
echo "" |
#!/bin/bash | |
# Sets up a database with a magento2 installation. This assumes you are running from under your httpdocs/<release> location and have www.localhost.com in your /etc/hosts file | |
# To run type : install_magento2 <dirname> <password> <release> | |
# password is used for the datbase user and the magento admin password | |
if [ $# -eq 0 ]; then | |
echo "No arguments supplied" | |
echo "Usage: `basename $0` <dirname> <password> <release>" | |
echo "e.g install_magento2.sh mage2 password 21" | |
exit 1 |
Thank you FireGento & MM15DE for the infos (see links at the end of the gist).
You can find all event locations + the Meet Magento Event Locations on our custom map:
[Map] (https://www.google.com/maps/d/edit?mid=zzV6gTyhOMU4.kk33GHy-a-1A)
These bookmarklets allow you to use the scripts of SSE_FormFiller in any Magento installation without having to install the extension.
Load FormFiller:
javascript:(function%20(){document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).src='https://cdnjs.cloudflare.com/ajax/libs/Faker/0.7.2/MinFaker.js';document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).src='https://rawgit.com/schmengler/FormFiller/master/js/sse/formfiller.js';}());
Fill billing form:
javascript:formFiller.fill(billingForm.form)
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 |
<?xml version="1.0"?> | |
<config> | |
<frontend> | |
<events> | |
<!--disable logs--> | |
<controller_action_predispatch> | |
<observers><log><type>disabled</type></log></observers> | |
</controller_action_predispatch> | |
<controller_action_postdispatch> | |
<observers><log><type>disabled</type></log></observers> |
{ | |
"require": { | |
"connect20/mage_all_latest": "1.7.*" | |
}, | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "http://packages.firegento.com/" | |
} | |
], |