https://github.com/cpriego/valet-linux
Add to your ~/.profile
file follow code:
if [ -d "$HOME/.config/composer/vendor/bin" ] ; then
--- /vendor/magento/module-catalog-import-export/Model/Import/Product.php | |
+++ /vendor/magento/module-catalog-import-export/Model/Import/Product.php (Unsaved) | |
@@ -3062,7 +3062,9 @@ | |
$stockItemDo = $this->stockRegistry->getStockItem($row['product_id'], $row['website_id']); | |
$existStockData = $stockItemDo->getData(); | |
- if (isset($rowData['qty']) && $rowData['qty'] == 0 && !isset($rowData['is_in_stock'])) { | |
+ if (isset($rowData['qty']) && $rowData['qty'] == 0 && !isset($rowData['is_in_stock']) | |
+ && empty($existStockData['backorders']) // backorders not set or set to 0 | |
+ ) { |
https://github.com/cpriego/valet-linux
Add to your ~/.profile
file follow code:
if [ -d "$HOME/.config/composer/vendor/bin" ] ; then
jQuery('#catalog_category_products_table tbody td.col-entity_id').map(function() { return jQuery(this).text().trim(); }).get().join(); |
# connect to SSH | |
ssh -o IdentitiesOnly=yes username@hostname -p NN | |
# transfer file via terminal | |
scp -i ~/.ssh/key_file -P NN -o IdentitiesOnly=yes /home/user/file username@hostname:/home/target/dir |
{ | |
"extends": [ | |
"./.eslintrc-reset", | |
"./.eslintrc-magento" | |
] | |
} |
$layout = $this->getLayout(); | |
$layout->getNode()->asXML(); |
git reset --soft HEAD^ # use --soft if you want to keep your changes | |
git reset --hard HEAD^ # use --hard if you don't care about keeping the changes you made |
grep --include=\*.php -rnw 'app/code/' -e "echo " |