generate functionMon, 26 Dec 2022

add shipping costs to woocommerce checkout summary

function woocommerce_cart_shipping_method_full_label( $label, $method ) { $label .= ' - ' . $method->cost . ' ' . get_woocommerce_currency_symbol(); return $label; } add_filter( 'woocommerce_cart_shipping_method_full_label', 'woocommerce_cart_shipping_method_full_label', 10, 2 );

Questions about programming?Chat with your personal AI assistant