V
V
vip_site2016-01-27 13:54:50
WooCommerce
vip_site, 2016-01-27 13:54:50

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:
<?php 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 question

Ask a Question

731 491 924 answers to any question