Answer the question
In order to leave comments, you need to log in
How to display category thumbnail in Woocommerce cart?
Good afternoon friends!!! Help, I did not find a solution for displaying a thumbnail of a product category in the basket. What you need is required after adding products to the basket, going to the basket itself, displaying an image (thumbnail) of the category in which it is located opposite each product.
In this case, I have it in the template folder: "wordpress_themes_folder/woocommerce/cart/cart.php"
While only displaying the name of the product category works, through:echo $_product->get_categories();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question