Page 1 of 1

hidibf products if price = $0

Posted: Mon Nov 13, 2023 11:01 am
by Portman
Hi,

I am trying to hide a product if the price is = $0
I am using different groups thanks to wholesale Pro - some of those groups will not be able to buy certain products. I thought the easiest way to do this would be to set the price to $0 for some products and then have an if statement to skip displaying the product.

At this stage I have played around with the includes/components/product_card.php file & I can get it to not show the content of the card, but the card is still there - just empty...

I thought maybe playing around with includes/system/versioned/1.0.7.other/1.0.7.12/product_builder.php may be another option but cant figure out how to do it there...

does someone with a better idea of how the site is constructed got any ideas where I would need to work to get this functioning?

thanks

Re: hidibf products if price = $0

Posted: Mon Nov 13, 2023 11:42 am
by burt
Could you not just remove the BUY button?
I think that might be easier than trying to "not display" a product.

Re: hidibf products if price = $0

Posted: Thu Nov 30, 2023 12:59 am
by Portman
Thanks @burt,

Yeah it probably is - I kind of thought hiding the product would be more elegant so that is why I was trying to go that route but I really cant get my head around it - maybe I'll add it to the growing list of things I'll attempt AFTER I have the new site up and running.