This topic has 8 replies, 2 voices, and was last updated 6 years, 5 months ago ago by Olga Barlow
hi there
I have to remove certain categories from related products on the single product pages (there are 2 categories to be removed)
the highlighted have to be removed
http://prntscr.com/ju2bum
I tried to use solutions like this one https://docs.woocommerce.com/document/remov-product-content-based-on-category/ but nothing worked.
I think it might be theme related
What can be done please?
Thanks
Hello,
We use default WooCommerce functions wc_get_related_products to display related products. If you want to change what products to show there either copy to child theme and edit related xstore/woocommerce/related.php file or use child theme functions.php file and change the wc_get_related_products function according to your needs.
Additional customization is not included in our support unfortunately. If you need help with additional customization you can submit the request to WPKraken team.
Regards
I’m not asking you to customise anything for me
I’m just saying that typical solutions ain’t w orking with the theme for some reasons
Hello,
Have you checked if that solution works for the default WooCommerce theme Storefront? Are you sure that your customization does not work with our theme only?
Regards
I Did install storefront
I placed the code in the theme functions file
And that category products won’t come up
Hello,
Provide us the link to the staging site where we’ll be able to check this and FTP to check the code that works with the default theme and does not work with the XStore.
Regards
Check private content
Hello,
We have enabled the Storefront and see the same products https://gyazo.com/26574ce751ff0aa300ffca1e80ea4857
So, what does exactly work with Storefront but not work with our theme?
Regards
You must be logged in to reply to this topic.Log in/Sign up