How to write a function to assign only shipping total to cart total in woocommerce?

How do I write a function to overide the cart total to only reflect the shipping cost in woocommerce? Meaning I’d like to exclude the product totals(subtotals).The final cart total and the shipping total should be the same at checkout – customer only pays for shipping.

Read more here: How to write a function to assign only shipping total to cart total in woocommerce?

Leave a Reply

Your email address will not be published. Required fields are marked *