WooCommerce Product Category display Type options: Add an option to display none

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

  • Avatar: AmanziDigital
    AmanziDigital
    Participant
    March 4, 2019 at 08:00

    Hi support,

    On the WoCommerce Product category editor there is an option for display type with the following options:
    – Standard
    – Subcategories
    – Products
    – Both

    I would like to add another option to this to display none. This will allow me to manually add content to the category page. I tried to update the WooCommerce > archive-product.php file to handle this. However, the upgrade from Xstore 4 to 5 broke my code.

    Is there a function that I can hook into to help with this? I need to make sure that this option is upgrade friendly going forwards.

    See the video in the link below for more info on this.

    https://www.useloom.com/share/e13e060072b74f11989445d088eaca9e

    Thanks and kind regards
    Ryan

    3 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 4, 2019 at 10:21

    Hello,

    There is no such option by default in WooCommerce plugin, our theme is not responsible for display type. If you want to customize some functionality you need to use child theme, you can find child theme archive in the Downloads area of your account. Then you won’t lose your modification after theme update.

    Regards

    Avatar: AmanziDigital
    AmanziDigital
    Participant
    March 4, 2019 at 13:01

    Thanks Olga,

    Would you be able to point out what file I would need to work on to achieve this? As mentioned, I had a developer work on the woocommerce > archive-product.php file before. This was added to my child theme. However, the file stopped working after upgrading. Version 5 of the theme seems to call in Ajax at the top of the template.

    I am hoping you can help point me in the right directing as to where I can best modify the theme to avoid this from happening again. What file would I need to work on to add a new option to the Display Type options?

    Kind Regards
    Ryan

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 4, 2019 at 18:31

    Hello,

    Unfortunately, additional customization is outside the scope of basic theme support according to ThemeForest support policy. We can help you only with existing theme options and parent theme and are not responsible for the child theme code. If you need help with your custom code submit customization request to Codeable team.

    Regards

  • Viewing 4 results - 1 through 4 (of 4 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.