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
diff --git a/app/code/core/Mage/SalesRule/etc/config.xml b/app/code/core/Mage/SalesRule/etc/config.xml | |
index d5e7763..6a0e898 100644 | |
--- a/app/code/core/Mage/SalesRule/etc/config.xml | |
+++ b/app/code/core/Mage/SalesRule/etc/config.xml | |
@@ -134,8 +134,8 @@ | |
<totals> | |
<freeshipping> | |
<class>salesrule/quote_freeshipping</class> | |
- <after>subtotal,tax_subtotal</after> | |
- <before>shipping</before> |
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
#!/usr/bin/env bash | |
# Detect magento | |
# | |
# Adapted from Alan Storms approach | |
# to finding the Magento root by traversing up from the current | |
# directory checking for the existence of the di.xml file. | |
# | |
# Ref: https://github.com/astorm/pestle/blob/master/modules/pulsestorm/magento2/cli/library/module.php#L57 | |
di="app/etc/di.xml" |
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
#!/usr/bin/env bash | |
name=$1 | |
if [ -z "$name" ]; then | |
echo "\$name required" | |
exit 1 | |
fi | |
path=$(eval echo "~/Sites/$name") | |
if [ -d "$path" ]; then | |
echo "$path already exists. Aborting" |
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
<?xml version="1.0"?> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> | |
<type name="[ObservedType]"> | |
<plugin name="[pluginName]" type="[PluginClassName]" sortOrder="1" disabled="false" /> | |
</type> | |
</config> |
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
/app/design/*/Magento | |
/app/etc | |
/app/*.* | |
/bin/ | |
/dev/ | |
/lib/ | |
/phpserver/ | |
/pub/ | |
/setup/ | |
/update/ |
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
RewriteCond %{HTTP:X-Forwarded-Proto} !=https | |
RewriteCond %{HTTPS} !=on | |
RewriteCond %{REQUEST_METHOD} !=POST | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
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 | |
function getSubs($product, $parentId) | |
{ | |
$cats = array(); | |
// get the product category ids | |
$ids = $product->getCategoryIds(); | |
// get all children of the parent $catId |
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 | |
return array( | |
'modules' => array( | |
... | |
'Magento_CurrencySymbol' => 1, | |
'Magento_Wishlist' => 1, | |
'Iweb_HelloWorld' => 1 | |
) | |
); |
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
<?xml version="1.0"?> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd"> | |
<module name="[Vendor]_[ModuleName]" setup_version="0.0.0.1"/> | |
</config> |
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
<?xml version="1.0"?> | |
<config> | |
... | |
<crontab> | |
<jobs> | |
<[namespace]_cron> | |
<schedule> | |
<!-- | |
/** | |
* |