Timeline for Magento 2.3.3 Hide product that are missing product image
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 30, 2021 at 12:34 | comment | added | Diana |
Check this article devdocs.magento.com/guides/v2.2/config-guide/cron/… you will have to create a custom cron in Magento and in its execute() method call another model that collects the list of products which have no images and disables them.
|
|
Mar 30, 2021 at 12:31 | comment | added | Nicklas Gilbertsson | How would I set up a cronjob like this? :) | |
Mar 30, 2021 at 5:52 | comment | added | Diana | yes, of course you can write a script to check and set the proper visibility, but i am thinking more of a long term solution. if you have, for example, product imports from a 3rd party entity (erp, pim, etc), then the problem will reoccur, so i was thinking of a cronjob that can be scheduled after such an import and deal with the problem :) | |
Mar 30, 2021 at 2:17 | comment | added | Jimmy | May I ask why using cronjob? I mean this is not a schedule task. Could we just write a script to check and set product visibility from the script itself? | |
Mar 29, 2021 at 10:38 | history | answered | Diana | CC BY-SA 4.0 |