This file contains hidden or 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 | |
/** | |
* Utility for creating a flat list of all ACL entries in a given installation. Useful for analyzing and comparing permissions structures to other platforms or use cases. | |
* | |
* How to use: | |
* [SEPARATOR="{value}"] php build-acl.php | |
* | |
* Runtime or environment variables: | |
* SEPARATOR - Optional. Specifies the resource hierarchy separator. Default: "." (dot-notation) | |
*/ |
This file contains hidden or 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
cd /tmp | |
curl -O https://files.magerun.net/n98-magerun2.phar | |
chmod +x ./n98-magerun2.phar | |
XDG_CONFIG_HOME="/tmp" ./n98-magerun2.phar dev:console --root-dir=$MAGENTO_CLOUD_DIR |
This file contains hidden or 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 [ | |
'modules' => [ | |
'Magento_AdminAnalytics' => 1, | |
'Magento_Store' => 1, | |
'Magento_AdminGwsConfigurableProduct' => 1, | |
'Magento_AdminGwsStaging' => 1, | |
'Magento_Directory' => 1, | |
'Magento_AdobeIms' => 1, | |
'Magento_AdobeImsApi' => 1, |
This file contains hidden or 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
<script type="application/javascript"> | |
/** | |
* Edit each block of conditions below based on your requirements | |
*/ | |
var conditions = [ | |
{ | |
'parameter': 'utm_source', | |
'value': 'google', | |
'blockId': 'block-segment-a' |
This file contains hidden or 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 MagentoTools; | |
class Generator | |
{ | |
private $config = [ | |
'type' => CsvSnapshotConfig::class, | |
'left' => null, | |
'right' => null, |
This file contains hidden or 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/Magento/Tax/Model/Sales/Total/Quote/CommonTaxCollector.php b/app/code/Magento/Tax/Model/Sales/Total/Quote/CommonTaxCollector.php | |
index ff31aa4ba90..b279408ba8e 100644 | |
--- a/app/code/Magento/Tax/Model/Sales/Total/Quote/CommonTaxCollector.php | |
+++ b/app/code/Magento/Tax/Model/Sales/Total/Quote/CommonTaxCollector.php | |
@@ -188,6 +188,7 @@ class CommonTaxCollector extends AbstractTotal | |
* @param bool $priceIncludesTax | |
* @param bool $useBaseCurrency | |
* @param string $parentCode | |
+ * @param bool $useOriginalPrice | |
* @return \Magento\Tax\Api\Data\QuoteDetailsItemInterface |
This file contains hidden or 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
// Execute in your console while WP Smush is open to bulk smush in intervals of 50 automatically | |
var smushTimer = setInterval( function() { !jQuery('.wp-smush-button').attr('disabled') ? jQuery('.wp-smush-button').click() : console.log('smush-check'); }, 3000); |