Okay
  Public Ticket #2828028
WooCommerce: how to display categories and sub-categories
Closed

Comments

  • fucine started the conversation

    Hi there. See here: https://www.businessbloomer.com/woocommerce-categories/
    Seems that we'd need that config being in place in Customizer, but I do not find/see it. So how could I - without using Elementor, but only standard WooCommerce theme templates - get category pages to list their own subcategories only, and not - which seems to be standard behavior for Bifrost - all products belonging to both mother and child/sub categories?

    5834219805.png

    Thanks in advance for reply, and best regards, e.-

  •  870
    Neuron replied

    Hi,

    I am very sorry for the late reply, we were not working on the weekend.

    This needs to be changed on the theme code, so I've logged into your website via the wp-admin that you've sent me in another ticked and make those changes.

    Feel free to ask for anything you need.

    Kind Regards


  • fucine replied

    Are you sure you did it? I mean, here we are in the "main" (mother) "Hosting" category, but instead of listing the 4 subcategories, that page lists all the 27 products, taken from any of such child categories (and also mother one).
    In next post I'll give you info on local DNS resolver overrides, so to have you pointing to the correct server (the one which actually hosts the development site). Credentials for accessing WP backend will be the same you already have for staging environment. Kindly let me know whether or not you also need FTP access (or phpMyAdmin, via Plesk). Thanks, e.-

  •   fucine replied privately
  •   fucine replied privately
  •   Neuron replied privately
  •   fucine replied privately
  •   Neuron replied privately
  •   fucine replied privately
  •   fucine replied privately
  •   fucine replied privately
  •   fucine replied privately
  •   Neuron replied privately
  •   fucine replied privately
  •   Neuron replied privately
  •   fucine replied privately
  •  870
    Neuron replied

    Hi,

    For those two issues we can simply fix them via the CSS code, so to remove the pagination can you please add the following code at Appearance > Customize > Additional CSS.

    .term-hosting-ssd .pagination {
        display: none !important;
    }

    And for the title use this one

    .term-hosting-ssd .l-woocommerce-wrapper__products-holder--meta-outside h2 {
        font-size: 20px !important;
    }

    Feel free to ask for anything you need.

    Kind Regards


  • fucine replied

    Oh, thank you so much! That's so kind of you. Going to apply those additional CSS directives, as you suggested, and then I'll be back to you soon, with some feedback. All the best, e.-

  •   fucine replied privately
  •  870
    Neuron replied

    Hi Fucine,

    There was a typo in the code that I've sent you, I've updated it now and everything seems to be alright, can you please take a look at it?

    Feel free to ask for anything you need.

    Kind Regards


  • fucine replied

    I do confirm that now the pagination issue has been fixed. I've copied the additional CSS from https://neuronthemes.fucine.it/ecm/ (public) and pasted it into http://fucine.it/ecm/ (private) and now http://fucine.it/ecm/categoria-prodotto/hosting-ssd/ works as expected: good sub-categories title size, and no pagination at all. So, in the end, it was simply a matter of ".o-pagination" vs ".pagination". Quite funny! :-)
    Thank you SO MUCH for the stellar support. All the best to you all, e.-

  •  870
    Neuron replied

    You are welcome anytime, feel free to ask for anything you need

    If you like our theme, please leave us a rate of 5 stars at ThemeForest, that would help us a lot.

    Kind Regards,
    NeuronThemes


  • fucine replied

    > If you like our theme, please leave us a rate of 5 stars at ThemeForest, that would help us a lot.

    This has just been made. As per attached image. You deserved it, sure.
    I beg your pardon for not having reviewed it before. All the best, e.-

  •  870
    Neuron replied

    You're welcome anytimesmile.png

    Feel free to ask for anything you need.

    Kind Regards


  • fucine replied

    > Feel free to ask for anything you need.

    In effect there are several other issues which might be possibly/hopefully addressed. Let's start.

    So https://neuronthemes.fucine.it/ecm/categoria-prodotto/hosting-ssd/ has been fixed, and this is great.
    But it seems that any other product category, not being under the "hosting-ssd" one, still presents unexpected behaviour. For example this one: https://neuronthemes.fucine.it/ecm/categoria-prodotto/hosting-sata/ or this newly created one: https://neuronthemes.fucine.it/ecm/categoria-prodotto/test-category/
    The first one actually has a product inside, and also the second one. Both categories have "default" type of visualization. In the end: products (inside them) should be listed, and not sub-categories of "hosting-ssd" main category.

    Furthermore we now have - which was not present before the overrides via custom shop.php took place - an issue with TAGS also. For example: https://neuronthemes.fucine.it/ecm/tag-prodotto/storage/ Again: products with "storage" TAG should be listed, and not (again!) sub-categories of "hosting-ssd" main category.

    Thanks for further investigations (I'm so sorry about this mess with WooCommerce), and best regards, e.-

  •   Neuron replied privately
  • fucine replied

    I beg your pardon for not having replied before: when you wrote I was just leaving my town for Summer holidays. And now that I'm come back I do confirm that all my issues are fixed:

    - products (inside categories) are actually listed, and not listed anymore sub-categories of "hosting-ssd" main category;
     - products with any possible TAG are actually listed, and not listed anymore sub-categories of "hosting-ssd" main category.

    What else to say? Thank you so much!
    All the best, e.-

  •  870
    Neuron replied

    Hi Fucine,

    I am very sorry for the late reply, we were not working on the weekend.

    Hope you had a good holiday, and I'm so glad to know that the issues are fixed now, feel free to ask for anything you needsmile.png.

    Kind Regards,
    NeuronThemes.


  •   fucine replied privately
  •   Neuron replied privately
  •   fucine replied privately
  •   Neuron replied privately
  •   fucine replied privately
  •   fucine replied privately
  •   Neuron replied privately