Forum Replies Created
-
AuthorPosts
-
Hi
I found the code on a wordpress blog a number of others said that i had worked for them.I will put this in the woo commerce forum too
Thanks in advance
Alex
March 12, 2016 at 2:23 pm in reply to: Hiding Add to Cart from a product category in Woocommerce #597208Sorry i couldn’t get back to you sooner my details are below
Thanks for your help on this
Alex
March 11, 2016 at 5:49 pm in reply to: Hiding Add to Cart from a product category in Woocommerce #596962Hi Jordan,
This was successful last night but i have gone back to start adding in some test product this morning and both the add to quote and add to basket are now there Below is the code i adapted to suit my categories from your initial template do you have any other suggestions?
add_action( ‘woocommerce_after_shop_loop_item’, ‘remove_add_to_cart_buttons’, 1 );
function remove_add_to_cart_buttons() {
if( is_product_category( array( ‘bespoke-range’, ‘bespoke-italian-chairs’, ‘made-to-order-tables’, ‘made-to-order-bases’, ‘made-to-order-fitted-seating’))) {
remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’ );
}
}The other issue is that i get this every time i add a product since making the changes to the .php
your help would be greatly appreciated
Alex
- This reply was modified 8 years, 8 months ago by alexrobson. Reason: more detail on issue added
March 11, 2016 at 12:05 am in reply to: Hiding Add to Cart from a product category in Woocommerce #596618Hi Jordan,
Just updated the php worked great thank you for the quick response.
Alex
I’m new to building website but enfold really made it easier for me.
This is my first site for my current business http://furniturenortheast.co.uk
Thanks
Alex
- This reply was modified 8 years, 8 months ago by alexrobson.
-
AuthorPosts