1 vote

Getting categories id for all products in cart

The answer from @sally works great, as long as your products are Simple products. If your product uses a variation, then the above code no longer works as the $cart_item['data'] does not return the ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible