Fee amount doesn’t show for the fee line item

Top WooCommerce & WordPress Plugins Forums Custom Checkout Fields for WooCommerce Fee amount doesn’t show for the fee line item

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #91676
    Victor
    Guest

    Hello, when the fee option is used, is there a way to show the actual calculation of the fee on the payment/order view section? The text shows up of the fee title, but the amount doesn’t show for that fee line item, but it is added to the Total of the cart.

    #91677
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Victor,

    Hmm… That’s odd… I’ve just re-tested it on my server, and it seems to be working fine here – the fee amount is visible in the fee line as well – please check this screenshot. Would it be possible to share access to your site, so I could log in and check what’s going on (my email is [email protected])? Please let me know if sharing an account is not an option, and I will continue solving it remotely.

    #91678
    Tom Anbinder
    Moderator
    Plugin Support

    If anyone else is interested – as we’ve figured out, it looks like there was a custom filter that removed the fee value. Adding this snippet to the site solved the issue:

    add_action( 'init', function() {
        remove_all_filters( 'woocommerce_cart_totals_fee_html' );
    }, PHP_INT_MAX );
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.