Support » Plugin: WooCommerce » Show all Categories & Products

  • Hi,
    i want to get all categories and products of my shop on one site.

    i added all the hooks and stuff so the woocommerce plugin works.
    with

    <?php woocommerce_content(); ?>

    the plugin shows me all products on one site but i want it sorted in categories like

    [cat1]
    [product1]
    [product2]
    [product3]
    [cat2]
    [product4]
    [product5]
    [cat3]
    [product6]

    need help for this.

    thx a lot

    https://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • This isn’t possible with stock WooCommerce, but I started a plugin that would do it.

    The plugin isn’t finished, but you can use this to get started:
    https://gist.github.com/growdev/7930554

    Add that code to your theme’s functions.php file.
    Then on a page add this shortcode [growdev_category_list] and
    the categories/products will show like this: http://cl.ly/image/413X0l0u1H0M

    The code is looping through the categories, then for each category having another query grab all of the products and display them. The category name is listed as an <h3>, then all the products in that category show.

    Hope this helps to get you started.

Viewing 1 replies (of 1 total)
  • The topic ‘Show all Categories & Products’ is closed to new replies.