Show tax total for each item within the cart
-
Hi,
I’m trying to include a column in the cart showing the tax per item, so the cart will have 5 columns:Product, Price, Quantity, Tax, Total
This code almost achieves it but it’s showing the total tax rather than tax per item & it’s missing the currency symbol:
<td class="product-tax" data-title="<?php esc_attr_e( 'VAT', 'woocommerce' ); ?>"> <?php echo apply_filters( 'woocommerce_subtotal_tax', WC()->cart->get_subtotal_tax( $_product ), $tax_amount, $cart_item_key, $rate, $price ); // PHPCS: XSS ok. ?> </td>
Any ideas?
- This topic was modified 5 years, 5 months ago by .
- This topic was modified 5 years, 5 months ago by .
- This topic was modified 5 years, 5 months ago by .
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Show tax total for each item within the cart’ is closed to new replies.