Categories in the cart

by Dimitry   Last Updated January 13, 2018 15:08 PM

In the cart need to make the division of goods into categories, indicating these categories. There is a variant of <? php echo $ _product-> get_categories (); ?>. But the problem is that the categories are displayed before each product:

Category 1

product 1 - $100.

Category 1

product 2 - $100.

Category 2

product 1 - $100.

Category 2

product 2 - $100.

It is necessary that the output should be in front of a group of goods of a certain category:

Category 1

product 1 - $100.

product 2 - $100.

Category 2

product 1 - $100.

product 2 - $100.

Tell me, how it's best done?

Thanks!

Tags : woocommerce


Related Questions


How can add and preview product Frontend

Updated March 26, 2015 12:02 PM


How to add "Reply-to" in Woocommerce

Updated April 04, 2015 15:03 PM


WooCommerce epdq gateway Change order status

Updated April 06, 2015 19:03 PM