Skip to content

Instantly share code, notes, and snippets.

@wienczny
wienczny / magento-ce-1.9.1.0-swatchfix.patch
Created April 4, 2016 13:04 — forked from splendidinternet/magento-ce-1.9.1.0-swatchfix.patch
Patch for Magento 1.9.1.0 swatches image swap
diff --git a/skin/frontend/rwd/default/js/configurableswatches/product-media.js b/skin/frontend/rwd/default/js/configurableswatches/product-media.js
index 17fd81f..5726200 100644
--- a/skin/frontend/rwd/default/js/configurableswatches/product-media.js
+++ b/skin/frontend/rwd/default/js/configurableswatches/product-media.js
@@ -65,8 +65,11 @@ var ConfigurableMediaImages = {
});
});
+ compatibleProducts.sort();
+
@wienczny
wienczny / add-checkout-form-key.sh
Created June 2, 2017 13:59 — forked from schmengler/add-checkout-form-key.sh
Magento SUPEE-9767 Checkout Form Key Theme Patch
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'
@wienczny
wienczny / enable.sh
Created June 11, 2021 10:26
Magento 2 Queue Consumer with Systemd
systemctl enable magento-queue-consumers@async.operations.all.service