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
hidibf products if price = $0
- burt
- Core Team
- Posts: 4561
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 422 times
Re: hidibf products if price = $0
Could you not just remove the BUY button?
I think that might be easier than trying to "not display" a product.
I think that might be easier than trying to "not display" a product.
- Portman
- Contributor
- Posts: 158
- Joined: Mon Mar 08, 2021 1:04 am
- Phoenix Version: v1.0.8.20
- Has thanked: 29 times
- Been thanked: 4 times
Re: hidibf products if price = $0
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.
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.