How to: WordPress WooCommerce Catalog Mode & Disable Shopping Cart

H

WordPress is an e-commerce enthusiast’s dream. It allows you to create swanky websites with relatively little effort. Every once in a while though, you come across a problem the solution to which isn’t so readily apparent.

Fortunately, the solutions are only a few steps away. Here we’ll be looking at how to create a product catalog using catalog mode and how to disable shopping carts on WordPress WooCommerce.

How to enable Catalog Mode on WordPress Woocommerce

Enabling WordPress WooCommerce catalog mode is easy.

To do this, you’ll need to install the WooCommerce catalog plugin. Go to the WordPress plugin directory, click on settings, and under that, select ‘WooCommerce catalog mode’. This will allow you to toggle the catalog mode and perform other neat tricks as well, such as
hiding the prices and toggle the ‘add to cart’ button.

Catalog for WooCommerce is another plugin you can use. You simply have to go to ‘Catalog Mode’ on the dashboard once it’s been activated and check all the options you want, which include catalog, ratings and more.

You can also install the YITH WooCommerce Catalog Mode. This plugin has both a paid and free version, with the former letting you hide the prices, add custom buttons and inquiry forms. Once downloaded, you can enable catalog mode by navigating to YITH plugins and then catalog mode. It’ll let you do a few other things as well.

How to Disable Shopping Carts on WordPress Woocommerce

All of the above plugins will let you remove the shopping cart from the plugin page. There are a few ways to disable WordPress WooCommerce shopping carts though. You can also prevent the shopping car from showing by not listing the price of a project. However, you can also use the ‘remove_action’ function on the functions.php file to prevent a product with a
particular ID from being purchased. Here’s the code:

add_filter('woocommerce_is_purchasable', 'woocommerce_cloudways_purchasable'); 

function woocommerce_cloudways_purchasable($cloudways_purchasable, $product) { return ($product->id == your_specific_product_id (like 22) ? false : $cloudways_purchasable); }

And that’s it! You can now enable catalog mode
and disable shopping carts!

Add comment

Recent Posts

Categories

Recent Comments

Archives

Tag Cloud