More

    How to: WordPress WooCommerce Catalog Mode & Disable Shopping Cart

    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!

    Recent Articles

    How to remove category & tag base from WordPress URL

    Would you like to remove the category & tag base from WordPress URL? Do you need custom URL's? It's a super simple!...

    How to Disable Right Click on WordPress

    Are you worried about having your images stolen from your WordPress website? Then you need to know how to disable right click on...

    How to redirect HTTP to HTTPs in .htaccess

    Today's standard is to have an https certificate. Google will love you if your sites are secured. So https is not standard,...

    How to fix TypeError: $ is not a function in WordPress

    We can guess. You purchased a theme or plugin and a console shown a message "TypeError: $ is not a function"? Ok,...

    How to fix Unknown collation: ‘utf8mb4_unicode_520_ci’

    Unknown collation is probably caused because your local and live server are running different versions of MySQL. This problem mostly comes when...

    Related Stories

    Leave A Reply

    Please enter your comment!
    Please enter your name here

    Stay on op - Get the daily news in your inbox