sol321123
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] How to add tracking info or manual note to emailsHi, the woo emails are very plain so thats why I’d like to use my own emails. If I use that plugin, can I still use my own emaails and show the tracking info?
Any help?
When I use your code it hides the category but also hides the product variations and cart button.
I have added the exact code u recommended. Unfortunately it doesn’t make a difference
The category thumbnail is still showing at the bottom of my page.
It’s odd because if I click it, it then opens up a new product page and then if I click again it opens up a new page exactly as I want it with no categories thumbnail at the bottom
Forum: Plugins
In reply to: [WooCommerce] How to hide categories on single shop pageHey stef, any chance of editing the code so my woo product price and variations don’t disappear. They only reappeared when I remove the code. You’re code does the job but I can’t use it if it’s hiding the product price etc.
Thanks again
Forum: Plugins
In reply to: [WooCommerce] How to hide categories on single shop pageoh ok i understand you. I will play with it. Thank you for going above and beyon Stef. Have a virtual beer on me 5*
Thanks again.
Forum: Plugins
In reply to: [WooCommerce] How to hide categories on single shop pageIve had to creat a shop page through elementor and use the shortcode to direct visitors to the elemtor shop page as woo doesnt let you edit their shop page in the way i need to. I dont like the woo shop page so i had to make it through elementor.
The category that i wanted to hide had set itself up as a default category as woo doesnt let you have no category, and as i have 1 producti thought it was not useful.
Ive set it so when visitors visit the site it takes them to my shop page which is the home page with no categories. Seems ok?
Forum: Plugins
In reply to: [WooCommerce] How to hide categories on single shop pageWhat ive done is basically created a single shop page (1 product) so no need for categories. May add other products in the future but not for now. To remove the No products selected message i have put the following into my theme custome css and cleared all history and cache’s
body.post-type-archive-product.woocommerce .woocommerce-info{ display:none;}
Seriosuly though stef, cant thank you enough. Ive been scratching my head for days. Thank you soooooooo much for all your efforts nd solution. You are amazing.
Forum: Plugins
In reply to: [WooCommerce] How to hide categories on single shop pageHey stef,
good work thank you that did the trick. The only issue now is that its replaced itself with the following message;
(No products were found matching your selection.)
It doesnt seem editable.
Thank you for all your work so far.
Forum: Plugins
In reply to: [WooCommerce] How to hide categories on single shop pageHi,
the link location is – https://mydomain.co.uk/wp-admin/term.php?taxonomy=product_cat&tag_ID=35&post_type=product&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dproduct_cat%26post_type%3Dproduct
This category is a default category.
I have tried your new code and still no luck. im assuming all i need to change is the clothing array to my category name (cat1)?
Thanks
Forum: Plugins
In reply to: [WooCommerce] How to hide categories on single shop pageHi Stef,
Again, i’d like to thank you for taking the time to look into this so far. unfortunately its still not working.
My actions so far;
I have cleared all history and emptied all cache’s. I copied the code you gave me and amended (Array 1234) to Array 35 because thats my post id for the category. I have no subcategories and the category i have is called cat1.
I copied the below code into the functions.php file in my oceanwp theme. I pasted it right at the bottom.
function get_subcategory_terms( $terms, $taxonomies, $args ) {
$new_terms = array();
$hide_category = array( 35 );if ( in_array( ‘product_cat’, $taxonomies ) && !is_admin() && is_shop() ) {
foreach ( $terms as $key => $term ) {
if ( ! in_array( $term->term_id, $hide_category ) ) {
$new_terms[] = $term;
}
}
$terms = $new_terms;
}
return $terms;
}
add_filter( ‘get_terms’, ‘get_subcategory_terms’, 10, 3 );Forum: Plugins
In reply to: [WooCommerce] How to hide categories on single shop pageShould I clear the shop cache as I am using w3 cache?
Forum: Plugins
In reply to: [WooCommerce] How to hide categories on single shop pageHi there. Thank you for taking the time to respond. If I have understood you correctly I changed (array 1234) to 35 which is my cat ID. Still no luck. Still not making a difference.