[Решено] Как мога да скрия колоната 'Subtotal' (WooCommerce) с помощта на CSS?

  

3
Старт на темата

Имам WooCommerce сайт и съм инсталирал плъгин за генериране на купони (кодове за поръчка) – НО на страниците на количката и поръчката междинната сума не се обновява. Междинна сума information.

И така, как мога да скрия „Междинна сума“ колоната (включително заглавието и стойностите) в таблицата на количката в WooCommerce със CSS?

1 Отговор
2

To hide or remove the "Subtotal" text and the corresponding amount, you can use the following CSS code (insert it in your Child's theme):

/* Hide the subtotal row in the cart */
.woocommerce-cart-form .product-subtotal {
    display: none !important;
}

/* Hide the "Subtotal" header in the table */
.shop_table th.product-subtotal {
    display: none !important;
}

/* Hide the subtotal column content */
.shop_table td.product-subtotal {
    display: none !important;
}
  • .woocommerce-cart-form .product-subtotal: Targets all subtotal cells (data and headers) to ensure they are hidden.
  • .shop_table th.product-subtotal: Specifically hides the "Subtotal" header in the table.
  • .shop_table td.product-subtotal: Hides the subtotal values in the table rows.
Споделете: