Catalogue mode: show products without selling
Products can’t be bought: the add-to-cart buttons disappear and the cart stays empty. Prices still show. For showrooms, B2B catalogues or a shop that isn’t open yet.
Before you switch it on: Nothing to fill in: it stays off after installing because it stops all sales. Switch it on when you mean it.
It arrives switched off, even when you install its whole pack with "Switch on after installing".
<?php
add_filter( 'woocommerce_is_purchasable', '__return_false' );
add_filter( 'woocommerce_variation_is_purchasable', '__return_false' );
Good to know
Products already in carts can’t be ordered either. Add “Hide prices from visitors” as well if you don’t want prices shown.
In these packs
- WooCommerce: shop and product pages: Badges, price display, tabs and layout for your shop and product pages.