• Resolved bsriwas

    (@bsriwas)


    Hi Support,
    There is a need to customize?the product loop behavior on the shop page. I have parent category ex. “Electric Irons” contains all the Electric Irons from all brands. And subcategories ex. Crompton Irons, Bajaj Irons, Usha Irons, and so on contain respective brand products.

    Tree view of Parent and Child categories are below
    Electric Iron
    ? —->Crompton Irons
    ? —->Bajaj Irons
    ? —->Usha Irons
    ? —-> ….
    If I clicked the Parent Category then the shop page is displaying all the products from all the all brands it has.
    Parent Category

    If I click the subcategory(Crompton Irons ) then it will display the respective Crompton Ironsproducts of that subcategories.
    SubCategory
    This is the default behavior of WordPress/woo-commerce.

    But the requirement of the shop page is different from the default behavior.?When the user will click?the subcategory(Crompton Irons ) then the shop page should display all products from all brands. It means I need Parent Catagory?behavior in the subcategory. This type of implementation will easy for the customer to find the relevant product with?a few clicks.
    How to achieve?this functionality? Do we have any Plugins or available codes to do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    WooCommerce doesn’t automatically show parent category products in child category. But you can assign particular products in Electric Iron to child categories like Crompton Irons too. That way, those products show in Electric Iron and Crompton Irons categories: https://docs.woocommerce.com/document/managing-product-taxonomies/

    I hope it helps.

    Thread Starter bsriwas

    (@bsriwas)

    Thanks, Maykato for your suggestion!
    If I will assign the product to all categories, for example, one electric iron product to all the categories Crompton Irons, Bajaj Irons, Usha Irons, etc. Will this type of approach impact the performance?
    Consider that I have 20K products and 25K traffic per day, will this approach make my website slow?

    Regards
    bsriwas

    Hi,

    20K products could cause a slow site especially if they have variations.
    Using a caching plugin might help, but if your site becomes slow, here are some general tips for troubleshooting: https://docs.woocommerce.com/document/troubleshooting-a-slow-site/

    Hi @bsriwas

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to show parent category product list inside sub-category’ is closed to new replies.