Title: CSS Classes For WooCommerce &#8211; customize the WooCommerce cart and checkout via CSS
Author: Jose Mortellaro
Published: <strong>2023 年 8 月 17 日</strong>
Last modified: 2026 年 10 月 1 日

---

搜尋外掛

![](https://ps.w.org/css-classes-for-woocommerce/assets/banner-772x250.png?rev=2955116)

![](https://ps.w.org/css-classes-for-woocommerce/assets/icon-256x256.png?rev=2955116)

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

 由 [Jose Mortellaro](https://profiles.wordpress.org/giuse/) 開發

[下載](https://downloads.wordpress.org/plugin/css-classes-for-woocommerce.0.0.3.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/css-classes-for-woocommerce/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/css-classes-for-woocommerce/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/css-classes-for-woocommerce/#developers)

 [技術支援](https://wordpress.org/support/plugin/css-classes-for-woocommerce/)

## 外掛說明

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](https://josemortellaro.com/backend-speed-optimization/)
for more information.

## 使用者評論

![](https://secure.gravatar.com/avatar/0750c31ad2e4acbd1e971a549974bf676de83ffafccd57e2dd7e2139fdd9e88d?
s=60&d=retro&r=g)

### 󠀁[Perfect to customize the cart and checkout via CSS](https://wordpress.org/support/topic/perfect-to-customize-the-cart-and-checkout-via-css/)󠁿

 [Jose Mortellaro](https://profiles.wordpress.org/giuse/) 2023 年 8 月 18 日

I love my own plugin because it gives you the possibility to customize the cart 
and checkout pages depending on the cart situation, only via CSS without touching
any line of PHP code 🙂

 [ 閱讀全部 1 則使用者評論 ](https://wordpress.org/support/plugin/css-classes-for-woocommerce/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈CSS Classes For WooCommerce – customize the WooCommerce 
cart and checkout via CSS〉的開發相關工作。

參與者

 *   [ Jose Mortellaro ](https://profiles.wordpress.org/giuse/)

[將〈CSS Classes For WooCommerce – customize the WooCommerce cart and checkout via CSS〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/css-classes-for-woocommerce)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/css-classes-for-woocommerce/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/css-classes-for-woocommerce/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/css-classes-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/css-classes-for-woocommerce/)。

## 變更記錄

#### 0.0.3

 * Checked: WordPress v. 6.4

#### 0.0.2

 * Added: CSS class for each row depending on the product ID, slug, and category

#### 0.0.1

 * Initial release.

## 中繼資料

 *  版本 **0.0.3**
 *  最後更新 **2 個月前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 4.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.1.4**
 *  PHP 版本需求 ** 7.2 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/css-classes-for-woocommerce/)
 * 標籤:
 * [body](https://tw.wordpress.org/plugins/tags/body/)[cart](https://tw.wordpress.org/plugins/tags/cart/)
   [checkout](https://tw.wordpress.org/plugins/tags/checkout/)[customization](https://tw.wordpress.org/plugins/tags/customization/)
   [style](https://tw.wordpress.org/plugins/tags/style/)
 *  [進階檢視](https://tw.wordpress.org/plugins/css-classes-for-woocommerce/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/css-classes-for-woocommerce/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/css-classes-for-woocommerce/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/css-classes-for-woocommerce/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/css-classes-for-woocommerce/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/css-classes-for-woocommerce/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/css-classes-for-woocommerce/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/css-classes-for-woocommerce/reviews/)

## 參與者

 *   [ Jose Mortellaro ](https://profiles.wordpress.org/giuse/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/css-classes-for-woocommerce/)