-
katrinae
Hello – What settings do we use to run woocommerce as a catalog instead of having a cart and checkout, so visitors can’t buy anything. Thanks
-
Hi there,
I’m not sure if Woocommerce has the option, but you should check with them.
-
katrinae
Thanks for the reply Ying, I thought the generatepress pro might have that option to turn off the ecommerce section to use woocommerce just as a catalogue.
-
Hi there,
Woocommrce sells extensions for doing most things including Catalog mode:
https://woocommerce.com/posts/how-to-use-woocommerce-as-a-product-catalog/
There are also some free plugins in the WordPress repository that do the same thing.
For GP Premium only options you can disable a lot of the add to cart functionality from the Woocommerce module:
https://docs.generatepress.com/article/woocommerce-overview/
To remove the single product add to cart form you can use this PHP Snippet:
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
Aside from that you would just need to remove checkout and cart pages from the site, to give you a basic catalog
-
katrinae
Brilliant!
Where do I put it?
Thank you David 🙂 -
The PHP Snippet to to remove the add to cart:
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
That can go in a child theme functions.php file or if you’re not using a child theme, use the Code Snippets plugin to add it.
- You must be logged in to reply to this topic.