Exclude custom Woocommerce function for specific product type child elements in minicart, cart & checkout

Have search all over the internet wondering if it is possible to exclude current function for specific product type child elements in cart and checkout. I have a custom code which set the prices for multicurrency. In my store I use woocommerce composite type products which are set from real products into package which you could choose on the website and add them to cart with specified discount you set in product admin settings.

Problem is that my code overrides the code from the plugin so I do not get discount and I see prices from my custom meta fields. I have been investigating how the plugin actually works and the best solution how to fix this would be to exclude my code from the composite product and its child elements in cart, minicart and checkout. Problem is that I did not find the ideal solution to do it.

I have tried to apply the code only to simple and variable products but It also disabled the composite childs because composite product is made of other products so under composite you have simple or variable products packed together with applied discount.

In plugin files I have found this code, which recognises the product type in cart.

foreach ( $cart_object->cart_contents as $cart_item_key => $cart_item ) {
                        // child product price
                        if ( ! empty( $cart_item['wooco_parent_id'] ) ) {
                            $parent_product = wc_get_product( $cart_item['wooco_parent_id'] );

                            if ( $parent_product && $parent_product->is_type( 'composite' ) ) {
                                if ( method_exists( $parent_product, 'get_pricing' ) && ( $parent_product->get_pricing() === 'only' ) ) {
                                    $cart_item['data']->set_price( 0 );

                                }

My code – I set up product prices for several languages for multicurrency with this function

add_filter( 'woocommerce_get_price', 'display_super_sale_pricex', 10, 2 );
add_filter('woocommerce_product_get_sale_price', 'display_super_sale_pricex', 10, 2); 
function display_super_sale_pricex( $price, $product ) {
    
    
    /*foreach ( $cart_item as $cart_item_key => $item ) {
    $parent_product = wc_get_product( $item['wooco_parent_id'] );
    }*/
    //if ($product->is_type( 'simple' ) && !$parent_product ){
        if(weglot_get_current_language()=='cs'){
            if( !empty ($product->get_meta('woocommerce_mena_zlava_kc')) ){
            $price = $product->get_meta('woocommerce_mena_zlava_kc');
        }else{
            $price = $product->get_meta('woocommerce_mena_kc');
        }} 
    
        if(weglot_get_current_language()=='hu'){
            if( !empty ($product->get_meta('woocommerce_mena_hufa')) ){
            $price = $product->get_meta('woocommerce_mena_hufa');
        } else {
            $price = $product->get_meta('woocommerce_mena_huf');
        }}  
    
        if(weglot_get_current_language()=='ro'){
            if( !empty ($product->get_meta('woocommerce_mena_leia')) ){
            $price = $product->get_meta('woocommerce_mena_leia');
        } else {
            $price = $product->get_meta('woocommerce_mena_lei');
        }}
    
    return $price;
    //}
}

Is there any possibility to exclude my code for the composites product child elements in cart, minicart and checkout within this funcion? Thanks in advance.