跳到内容

CSS Classes For WooCommerce – customize the WooCommerce cart and checkout via CSS

v0.0.3

Jose Mortellaro · 2023年8月17日 上架

CSS classes depending on the cart to customize the checkout.

正在使用
10+
评分
5.0 / 5
累计下载
1,645
最近更新
2026年10月2日
1 条评价需要 WordPress 4.6+已测试到 7.1.5PHP 7.2+

CSS Classes For WooCommerce adds CSS classes to the body depending on the cart and the customer.
You can then use those classes to customize the checkout and cart pages with your custom CSS.

CSS classes added to the body if:

  • The cart is empty or not empty
  • There is at least a product with a price greater than zero (payment methood needed)
  • The shipping methods are shown or not needed
  • If the shipping address is needed or there are only digital products in the cart
  • The prices are shown including or excluding taxes
  • All products are sold individually
  • There are specific products in the cart
  • The quantity of specific products is a specific number
  • The billing address of the customer has a specific country
  • The customer has a specific role on the website
  • The customer has already bought something
  • The customer has bought a specific number of time

If for example in the cart there are only products that can be sold individually, you can take advantage of the CSS class added by this plugin to hide the column “Qty” .
In this case you will write the CSS

.ccfw-cart-all-sold-individually-true .shop_table .product-quantity {
    display: none;
}

How customize the WooCommerce cart and checkout via CSS

  • The plugin doesn’t provide any option, and you will not see any settings page. Just activate it.
  • Right-click and click on Inspect on the frontend.
  • Read the value of the class attribute of the body element.
  • Use the CSS classes added to the body for your custom CSS

Requirements

You can take advantage of this plugin only if you have at least basic skills with CSS and are able to add your custom CSS.
In other cases, you will not know what to do with this plugin.

Backend Speed Optimization

Is your dashboard slow? We optimize admin performance by improving queries and reducing plugin load.
Read Backend Speed Optimization Service for more information.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums