Created
June 25, 2026 12:31
-
-
Save xlplugins/3cb3e021e531553fe12c17920963c587 to your computer and use it in GitHub Desktop.
exclude shipping in cart summary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // FKCart: show recurring total as product price + tax only (no shipping), subscriptions only. | |
| add_action( 'fkcart_after_order_summary', function () { | |
| if ( empty( WC()->cart->recurring_carts ) ) { | |
| return; | |
| } | |
| foreach ( WC()->cart->recurring_carts as $recurring_cart ) { | |
| $recurring_cart->set_total( (float) $recurring_cart->get_subtotal() + (float) $recurring_cart->get_subtotal_tax() ); | |
| } | |
| }, 5 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment