xpay✦ Commerce
Directory
WooCommerce plugins
Hide Categories On Shop Page
Hide Categories On Shop Page
Simple solution to hide specific categories in you woocommerce shop main page i.e. domain.com/shop This plugin was based on WC Hide Categories On Shop …
4.4
(14 ratings)Will this break my store?
What the WordPress.org registry says about keeping Hide Categories On Shop Page running.
Tested to 6.1.10 — 9 branches behind 7.0
Several branches behind. Worth checking on a staging site before updating WordPress.3 years ago
At least 0.9 releases a year since launch. WordPress.org only lists versions still available for download, so the real number may be higher.7.0
Your host must be running at least this version.3.0.1
1
A single maintainer. Worth knowing if the plugin is load-bearing for your store.Maintenance & trust
Scored on how Hide Categories On Shop Page is looked after — not on how many stores run it.
21
out of 100Maintenance
0 / 35WordPress compatibility
0 / 20Support responsiveness
Not enough dataMerchant satisfaction
11 / 15Listing transparency
6 / 10Ratings
4.4
14 ratingsThis free WooCommerce extension permits you to hide categories on your shops main page.
For this you have to save the categories with ‘,’ seperated in woocommerce > settings > products tab section.
In order for this to work you have to have Categories displayed. This can be set via Customizer. Appearance > Customize > WooCommerce > Product Catalog.
“Choose what to display on the main shop page.” Select Show categories as seen in the Screenshot below.
Additional Information
For users who has a different/custom page for their shop you can edit the wc-hide-categories.php file
Find line # 127 and remove //
//$mwd_opt4 = in_array( 'product_cat', $taxonomies ) && ! is_admin() && is_page('YOUR_PAGE_SLUG'),
Then find line #129 /*|| $mwd_opt4*/
Change to
|| $mwd_opt4
To remove products from those categories find line 160
// Uncomment the function below if you also want those products hidden
/*
add_action( 'woocommerce_product_query', 'mwd_hwcosp_remove_product_in_cat' );
function mwd_hwcosp_remove_product_in_cat( $q ) {
//hwcosp_global is the databse row entry
$opt_terms = get_option('hwcosp_global');
// Processes our users data to the way we want it from above
$data = mwd_hwcosp_comma_separated_to_array($opt_terms);
$tax_query = (array) $q->get('tax_query');
$tax_query[] = array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => $data, // Set Category Slug which products not show on the shop and Archieve page.
'operator' => 'NOT IN'
);
$q->set( 'tax_query', $tax_query );
}
*/
The code is well documented so its easy to find what part you are looking for
If you have any question please ask in the support forum, Thanks
As of version 1.1.0 Yes
Click the donate button to the right or go here https://www.paypal.me/matrixwd
And thank you in advance 🙂
Plugin details
Tags on WordPress.org
