Hi, please login here https://help.xforwoocommerce.com/my-support-tickets/ to read the full post. Thanks.
7 thoughts on “Making your first product tab with table from CSV”
Comments are closed.
Hi, please login here https://help.xforwoocommerce.com/my-support-tickets/ to read the full post. Thanks.
Comments are closed.
Hello!
what condition must be written to add a tab to an entire product category ??
I would also like to know the answer of the question above!
I’m sure you figured this out already but in case you haven’t, you can use the category format below to display it. (must use hyphen in front and can use the slug or ID.
!is_product_category:nike-shoes
That code did not work in WooCommerce prior to version 4.0. Not sure does it work in the new version, as it’s not tested. I’ll instruct our support to re-test that. Why it didn’t work? When registering a tab, using the actions and hooks provided by WooCommerce, that conditional function isn’t available. It could be true that they’ve fixed that behaviour. If so, our plugin is ready and can support it.
somehow it is not working: !is_singular:mix-en-match
and how do i exclude more then 1 page?
?like: !is_singular:mix-en-match,product-giftcard
ah i see the problem, is_singular is for post_types not page slugs!!!
https://developer.wordpress.org/reference/functions/is_singular/
now it is working when i use:
!is_single:mix-en-match,product-giftcard
Hi, you can even make your own function in functions.php child theme file or similar, that will return either true or false, and just use that. Still, some conditionals will work when the action for registering tabs is fired, and some won’t, so you’ll have to be careful with that. Thanks!