Skip to content

Instantly share code, notes, and snippets.

View piotrekkaminski's full-sized avatar

Piotr Kaminski piotrekkaminski

View GitHub Profile
diff --git a/app/code/core/Mage/Core/Model/Url/Rewrite/Request.php b/app/code/core/Mage/Core/Model/Url/Rewrite/Request.php
index 773c781..4801473 100644
--- a/app/code/core/Mage/Core/Model/Url/Rewrite/Request.php
+++ b/app/code/core/Mage/Core/Model/Url/Rewrite/Request.php
@@ -140,7 +140,7 @@ class Mage_Core_Model_Url_Rewrite_Request
$fromStore = $this->_request->getQuery('___from_store');
if (!$this->_rewrite->getId() && $fromStore) {
- $stores = $this->_app->getStores();
+ $stores = $this->_app->getStores(false, true);
@piotrekkaminski
piotrekkaminski / PATCH_SUPEE-3203_EE_1.13.1.0_v1.sh
Created July 11, 2014 23:32
SUPEE-3202: Bundle Products Error: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'selection_id' cannot be null
#!/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=""
@piotrekkaminski
piotrekkaminski / PATCH_SUPEE-1800_EE_1.12.0.2_v1_v1.sh
Created October 6, 2014 19:46
Issues with customer created_at dates
#!/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=""
@piotrekkaminski
piotrekkaminski / swatchesfallback.patch
Last active August 29, 2015 14:09
[PATCH] Fixed issue where language fallback swatch images would not be loaded from media/wysiwyg/swatches
diff --git a/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php b/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php
index 2de62ed..c284811 100644
--- a/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php
+++ b/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php
@@ -227,6 +227,8 @@ class Mage_ConfigurableSwatches_Helper_Productimg extends Mage_Core_Helper_Abstr
$fileExt = self::SWATCH_FILE_EXT;
}
+ // normalize to all lower case so that value can be used as array key below
+ $value = Mage_ConfigurableSwatches_Helper_Data::normalizeKey($value);
@piotrekkaminski
piotrekkaminski / gist:8315e60a5ac3650f10d3
Created February 26, 2015 18:48
Popular Magento 1 dev tools
Commerce Bug http://store.pulsestorm.net/products/commerce-bug-2
Magicento http://magicento.com/
n98-magerun https://github.com/netz98/n98-magerun
Modman https://github.com/colinmollenhour/modman
AOE_Profiler https://github.com/AOEpeople/Aoe_Profiler
Index: downloader/lib/Mage/HTTP/Client/Curl.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- downloader/lib/Mage/HTTP/Client/Curl.php (revision 70e08f1032574126d01d9c7022d9bdafa1c27303)
+++ downloader/lib/Mage/HTTP/Client/Curl.php (revision )
@@ -374,7 +374,7 @@
$this->_ch = curl_init();
$this->curlOption(CURLOPT_URL, $uriModified);
### Keybase proof
I hereby claim:
* I am piotrekkaminski on github.
* I am piotrekkaminski (https://keybase.io/piotrekkaminski) on keybase.
* I have a public key whose fingerprint is 5C18 197D 1390 24D9 8973 0F57 6968 AA3A 830C 1DB3
To claim this, I am signing this object:
Index: dev/tests/functional/tests/app/Mage/Adminhtml/Test/Constraint/AssertProductIsPresentOnCustomWebsite.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- dev/tests/functional/tests/app/Mage/Adminhtml/Test/Constraint/AssertProductIsPresentOnCustomWebsite.php (revision 133010710c8351e2bc0f3d64631a99633732a7c1)
+++ dev/tests/functional/tests/app/Mage/Adminhtml/Test/Constraint/AssertProductIsPresentOnCustomWebsite.php (revision )
@@ -34,7 +34,6 @@
use Magento\Mtf\Fixture\FixtureFactory;
use Magento\Mtf\Fixture\InjectableFixture;
@piotrekkaminski
piotrekkaminski / website_selection.patch
Created June 8, 2015 21:51
website_selection.patch
Index: dev/tests/functional/tests/app/Mage/CatalogRule/Test/Repository/CatalogRule.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- dev/tests/functional/tests/app/Mage/CatalogRule/Test/Repository/CatalogRule.xml (revision 133010710c8351e2bc0f3d64631a99633732a7c1)
+++ dev/tests/functional/tests/app/Mage/CatalogRule/Test/Repository/CatalogRule.xml (revision )
@@ -33,7 +33,9 @@
<field name="description" xsi:type="string">-50% of price, Priority = 0</field>
<field name="is_active" xsi:type="string">Active</field>
@piotrekkaminski
piotrekkaminski / PATCH_SUPEE-3762_EE_1.14.0.1_v1.sh
Created July 11, 2014 23:44
SUPEE-3762: Navigating to the SOAP V2 WSDL and index page causes only the install page to display
#!/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=""