PressTigers

How to Group WooCommerce Products on Shopping Cart

WooCommerce provides you many useful hooks (actions/filters) to perform different functionalities on content manipulation and display setup. In this article, we will describe the method of grouping WooCommerce products of the same author/vendor on a WordPress website.

The products on shipping calculator will be grouped using woocommerce_cart_shipping_packages filter. You just need to insert the following code in your Theme’s functions.php file or custom plugin:

User Comments

1 thought on “How to Group WooCommerce Products on Shopping Cart

    Sven says:

    Hello there,

    How would I go about adjusting this to group products in their respective categories?

    Category 1
    – Product 3
    – Product 7

    Category 2
    – Product 5
    – Product 1

    Thanks 🙂

    Sven

Leave a Reply

Your email address will not be published. Required fields are marked *

Get in Touch