javascript:$$('input[name="skip_attr[]"]').each(function(el) {el.checked=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
#!/bin/bash | |
# Patch apllying tool template | |
# v0.1.2 | |
# (c) Copyright 2013. Magento Inc. | |
# | |
# DO NOT CHANGE ANY LINE IN THIS FILE. | |
# 1. Check required system tools | |
_check_installed_tools() { | |
local missed="" |
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 | |
namespace Example\Http; | |
use Psr\Http\Message\UriInterface; | |
use Psr\Http\Message\StreamInterface; | |
use Symfony\Component\HttpFoundation\HeaderBag; | |
/** | |
* Immutable request object | |
*/ |
In diesem Gist sind weiterführende Informationen zum Vortrag "Herausforderungen bei Konzeption und Test von Magento-Modulen" und der zugrundeliegenden Forschungsarbeit gesammelt.
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 | |
/** | |
* Add events to observe stock qty change | |
* | |
* @author Fabian Schmengler | |
* | |
*/ | |
class SGH_ShippingExpress_Model_CatalogInventory_Stock | |
extends Mage_CatalogInventory_Model_Stock | |
{ |
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)
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 | |
/** | |
* Integration test for OnePageCheckout | |
* | |
* @author Fabian Schmengler <fschmengler@sgh-it.eu> | |
* @copyright SGH informationstechnologie UGmbH 2012 | |
* @package SGH\Common | |
* @subpackage Test | |
* | |
*/ |
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 | |
require 'Timer.php'; | |
$testData = array( | |
// $k | count($a) | |
// -------+--------- | |
array( 10, 1000), | |
array( 10, 10000), | |
array( 10, 100000), | |
array( 10, 1000000), |
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
find -L app/design/frontend -regex '.*\(shipping\|billing\|shipping_method\|payment\).phtml' -exec grep -L formkey {} \; \ | |
| xargs sed -i 's/<\/form>/<?php echo $this->getBlockHtml("formkey") ?><\/form>/g' | |
find -L skin/frontend -name 'opcheckout.js' -exec grep -L form_key {} \; \ | |
| xargs sed -i 's/if (elements\[i\].name=='\''payment\[method\]'\'') {/if (elements[i].name=='\''payment[method]'\'' || elements[i].name == '\''form_key'\'') {/g' |
OlderNewer