Website Building » WooCommerce » How Do I Show Items in WooCommerce Cart?

How Do I Show Items in WooCommerce Cart?

Last updated on January 17, 2023 @ 5:26 am

If you’re using WooCommerce to sell products on your WordPress site, you may want to customize how the items in the cart are displayed. By default, WooCommerce will show the product image, title, price, and quantity in the cart.

However, you can change this by modifying the template files. In this article, we’ll show you how to show items in WooCommerce cart and style text in HTML using <p>, <b> and <u> tags where applicable.

When a customer adds a product to their cart on your WooCommerce store, the default layout will display the product image, title, price, and quantity. You can change this by modifying the template files.

If you want to show items in WooCommerce cart, you’ll need to edit the cart.php template file. This file is located in your WooCommerce folder:

/wp-content/plugins/woocommerce/templates/cart/cart.php

You can edit this file by going to Appearance > Editor from your WordPress dashboard. On the right hand side, you'll see a list of all the templates that make up your theme.

Locate and click on cart.php. Once you've found it, click on the Update File button to save your changes.

If you want to style text in HTML using <p>, <b> and <u> tags where applicable, you can do so by adding the following code to your style.css file:

.entry-content p {  
   font-size: 18px;  
   line-height: 1.5;  
} 

.entry-content is the class that is applied to all post content on WordPress sites. So this code will affect all paragraphs in your posts.

Conclusion:

You can change how items are displayed in your WooCommerce shopping cart by editing the cart.php template file. You can access this file by going to Appearance > Editor from your WordPress dashboard. Once you have made your changes, click on the Update File button to save your changes.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.