Hiding products with £0.00

Magento 2.3, how can I hide products automatically via cron for products that have a £0.00 price? I use a 3rd party to calculate prices across my store and when some products cannot be matched in their database it will not calculate the frontend price.


I suggest you use a plugin to change the value of product status based on price. No need to use a cron.


Tags: Magento 2.x / PHP / SQL

Similar questions

Hiding Sections of Admin
I would like to hide sections of the magento admin for some users. I've seen this option for hiding things all together but am wondering if there is a way to conditionally hide sections of the admin for some users.
Hiding prices from certain countries using GeoIP
My website is going to be viewed worldwide, but I want only certain countries to be able to view prices/purchase goods. In total there will be 5 different regions that will be able to view prices/buy products, but the product ranges will vary depending on region. I thought about using GeoIP to determine where the customer is based, but how do I do ...
Hiding Default Chart
I am new to magento platform. I have a quick question in regards to hiding a default setting. currently we are using version Magento ver. We have setup a custom price break table. But it when you select a product attibute, a chart drops down and shows you savings if you buy more, how do i hide that? Our store is multi-store using same back...
Hiding items in a bundle?
I have a bundle of items with fixed quantities and a fixed price. If I the items are "A, B, C, D, and E"... I want to show instead "A, B, Group 1, and E". Basically, hide products C and D. The reason I have to hide some of the items is to fulfill a very specific business case where users aren't allowed to know what items are in Group 1. The only ap...
CSS Caching.. Where is it hiding?
I'm getting a bit frustrated with caching as I can't figure out where the CSS files are being cached, and I'm hoping someone can help me out. Here's the situation. Here are the various methods I have tried to clear cache (I have done all of these together with no success): I have even tried a browser on a separate PC that has never loaded the site ...
Layered attribute navigation hiding when all active
I'm having an issue with my Magento code which is used to modify the layout of the left layered navigation. I'm looking to have all items visible in the navigation even if they are currently active, however; when they are all active, the menu disappears. Did I incorrectly set it up or is there a simple mistake I have made? Here is my code: State.ph...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.