• Resolved Nox

    (@profnox)


    Hi,

    I’m trying to edit the shop page in order to split the products by categories, displaying the category name as a title before each products loop. What I want is to follow this kind of scheme :

    Category one <- (title)
    – product 1
    – product 2
    – product 3

    Category two
    – product 4
    – product 5
    etc.

    I wanted to override the archive-product.php template in order to loop through several queries that would use the cat argument, and display the category title before each query, but anyway the products are displayed following the action “woocommerce_shop_loop”, and I presume for maintenance issues of the plugin, I can’t edit what happens in this hook.

    What is the best way to do this ?

    Thank you in advance.

    • This topic was modified 3 years, 10 months ago by Nox.
    • This topic was modified 3 years, 10 months ago by Nox.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    Have you considered using the standard WooCommerce shortcodes for that? Alternatively, have you looked into using the dedicated extension for that: https://woocommerce.com/products/woocommerce-nested-category-layout/?

    Thread Starter Nox

    (@profnox)

    Hi RK,

    Thank you for your answer. Unfortunately, I may recommand that solution for some clients, but I can’t afford such extension for this particular project.

    Using shortcodes may be a good and maybe more flexible solution. I’ll try to go with that and mark the thread as resolved.

    • This reply was modified 3 years, 10 months ago by Nox.

    Hi Profnox
    I have the same problem, I want the subcategory to appear in the main category with its description and below the products of that subcategory and so on with each one, but to do it without plugins because my client cannot afford it, it is already out of budget, Is there any way to do it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Split products loop by categories on the shop page’ is closed to new replies.