plugin development - How do I add custom column to woocommerce cart?

admin2025-06-01  2

I want to add a custom column for "Installation Charges" inside cart items. This is going to be different installation charges for every product. I can pass that to cart using woocommerce_add_cart_item_data action hook. But how do I add the separate column to show these installation charges in cart?

Attached is a screenshot mockup of how it needs to be built.

I want to add a custom column for "Installation Charges" inside cart items. This is going to be different installation charges for every product. I can pass that to cart using woocommerce_add_cart_item_data action hook. But how do I add the separate column to show these installation charges in cart?

Attached is a screenshot mockup of how it needs to be built.

Share Improve this question asked Apr 19, 2017 at 9:08 aslamdoctoraslamdoctor 1894 silver badges15 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

Overwrite the WooCommerce template in your theme. The documentation for this can be found at https://docs.woocommerce/document/template-structure/

The file you're looking to overwrite is wp-content/woocommerce/templates/cart/cart.php

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748788535a313750.html

最新回复(0)