Woocommerce orders without prices
-
I would like to use WooCommerce with the ability to place order but hide prices. I know the WooCommerce Catalog Visibility Options seems to be able to do this, but it doesn’t work. I can disable Prices and enable Purchases, but this disables the add to cart buttons.
Any ideas how I can do this?
-
If you want the prices to function but just not be seen, you can try adding one of these to your css:
.price { visibility: hidden!important;}
.amount { visibility: hidden!important;}It will probably hide them everywhere though, like in the cart.
1-I was able to remove pricing from all areas without any plugins on a recent woocommerce project by using a handful of editing to woocommerce template files in my child theme. The add to cart button was still functional…but since the price for the product was $0 client wanted to hide it.
==
2-I have not tried the Catalog Visibility Options add-on
==
3-Normally, I use Conductorplugin (not free) to remove specific display elements for WooCommerce–however for this project I customized the templates instead.
===I found the problem with the Catalog Visibility Options plugin. There was a line in the code where it was checking if the user was able to make purchases:
//If the user can not view prices, they can not purchase the product. $price_result = $this->user_can_view_price( $product );I added a filter for ‘catalog_visibility_user_can_purchase’ and ran the same logic without those 2 lines. This works, but I also need to do what contentiskey is suggesting — to edit a few templates.
Currently all the prices don’t show up, but the subtotals in the cart are still appearing. I need to modify some more templates.
The topic ‘Woocommerce orders without prices’ is closed to new replies.