How to disable products in Magento2 which dont have any gallery image?

UPDATE `catalog_product_entity_int` SET `value`=2 where `entity_id` in (SELECT a.`entity_id` FROM `catalog_product_entity` AS a LEFT JOIN `catalog_product_entity_media_gallery_value` AS b ON a.entity_id = b.entity_id LEFT JOIN `catalog_product_entity_media_gallery` AS c ON b.value_id = c.value_id WHERE c.value IS NULL) and `attribute_id` = 96 It is SQL query Assumption: value=2 means disable and value=1 means enable attribute_id=96 means “status” attribute References: https://gist.github.com/tegansnyder/8464261#gistcomment-2910808 https://magento.stackexchange.com/a/83033/32283

August 22, 2019 · 1 min · Harshvardhan Malpani

How to remove sign in popup from Magento 2 checkout page?

Magento2 has this authentication pop up on checkout page, which many store owners wont like to see on their checkout page. Background of this pop up area and Related files The pop up itself is generated by Magento_Customer::account/authentication-popup.phtml But this pop up works very differently on checkout page. In fact this is a separate pop up than the one you see in header area. It is embedded in a series of js files which are governed by knockout-js ...

May 27, 2019 · 1 min · Harshvardhan Malpani

Magento 2.1x Cron Jobs

Cron Jobs Add through cPanel/WHM Time interval – 10 minutes -> */10 * * * * Replace ^username^ with user dir php /home/^username^/public_html/bin/magento cron:run >/dev/null 2>&1 php /home/^username^/public_html/update/cron.php >/dev/null 2>&1 php /home/^username^/public_html/bin/magento setup:cron:run >/dev/null 2>&1 Using Crontab editor in Terminal Use command crontab -e */10 * * * * php /home/^USERNAME AND PATH^/public_html/bin/magento cron:run >/dev/null 2>&1 */15 * * * * php /home/^USERNAME AND PATH^/public_html/bin/magento indexer:reindex >/dev/null 2>&1

August 12, 2017 · 1 min · Harshvardhan Malpani