Check products by categoryId using scheduled task
I want to use Scheduled Task that checks if a specific category has products or not. I have used product.repository
to get products by categoryId
, but this method does not work. For example if the category “Clothes” shows 2 products in storefront, I get null when using product.repository
.
Check products by categoryId using scheduled task
I want to use Scheduled Task that checks if a specific category has products or not. I have used product.repository
to get products by categoryId
, but this method does not work. For example if the category “Clothes” shows 2 products in storefront, I get null when using product.repository
.