Last active
November 26, 2019 06:30
-
-
Save zainengineer/ae5256aa8fa75afb2215c0f132ea2778 to your computer and use it in GitHub Desktop.
magento 2 cheat sheet
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
* 98-magerun2 db:dump --add-time prefix | |
//do not complain about setup scripts | |
// Use n98-magerun2.phar dev:console | |
\Magento\Framework\App\ObjectManager::getInstance()->get('\Magento\Framework\Config\CacheInterface')->save(serialize(true),'db_is_up_to_date'); | |
https://marketplace.magento.com/customer/accessKeys/ | |
Public Key: b... | |
Private Key: 0.... | |
May be need to go to https://account.magento.com/downloads/token/ first | |
and generate tokens first | |
* configurable stock | |
should work (at least in newer magento2) https://github.com/magento/magento2/issues/14389 | |
but does not work in code I am working on \Magento\ConfigurableProduct\Model\ResourceModel\Indexer\Stock\Configurable::_getStockStatusSelect \Magento\CatalogInventory\Model\ResourceModel\Indexer\Stock\DefaultStock::getStatusExpression | |
* Sample data with auto installation | |
with n98 auto install some time it does not work because of permissions | |
for some reason it expects auth.json to be in var/composer_home/auth.json (may be root auth.json too but did not try) | |
auto deploy does not prompt for keys so fails | |
so quickly copy it after install puts some files alternatively break the installation when sample data is attempted install it manually |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment