I’m trying to add an extra fee to the cart through a plugin so I created a field on the shipping-calculator.php template and on my shipping plugin I calculate shipping and check if that field has any value and if it does then I add it with:
$woocommerce->cart->add_fee('Name', ENTERED AMOUT)
And it shows up in the cart, so that is fine, but when I hit proceed to checkout the fee is not there anymore. I just need to get that fee to stay.
Also I need for the cart to calculate shipping if that value changes, right now it only does it if I change the state, not even the zip code.
Any ideas or thoughts help.
- The topic ‘Add fee amount showing on cart but not on checkout’ is closed to new replies.