Remve certain categories from related products

This topic has 8 replies, 2 voices, and was last updated 5 years, 10 months ago ago by Olga Barlow

  • Avatar: jobo9967
    jobo9967
    Participant
    June 12, 2018 at 15:04

    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

    7 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 12, 2018 at 15:20

    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

    Avatar: jobo9967
    jobo9967
    Participant
    June 12, 2018 at 15:47

    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

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 12, 2018 at 16:16

    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

    Avatar: jobo9967
    jobo9967
    Participant
    June 12, 2018 at 22:38

    I Did install storefront
    I placed the code in the theme functions file
    And that category products won’t come up

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 13, 2018 at 09:07

    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

    Avatar: jobo9967
    jobo9967
    Participant
    June 13, 2018 at 21:07

    Check private content

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 14, 2018 at 17:35

    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

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.