Viewing 2 replies - 1 through 2 (of 2 total)
  • Have the same problem.
    Did you resolve it in any way?

    Скорее всего надо перезаписать названия ярлыков. Вместо $label .= ‘ (‘ . __( ‘Free’, ‘woocommerce’ ) . ‘)’; подставлять названия переводов.

    function my_custom_show_free_label_with_free_shipping( $label, $method ) {
    
    //	if ( $method->method_id == 'local_pickup' ) return $label; // Don't apply to local pickup rates
    
    	if ( $method->cost == 0 ) {
    		$label .= ' (' . __( 'Free', 'woocommerce' ) . ')';
    	}
    
    	return $label;
    
    }
    add_filter( 'woocommerce_cart_shipping_method_full_label', 'my_custom_show_free_label_with_free_shipping', 10, 2 );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce shipping zone names’ is closed to new replies.