add_filter( 'wfacp_wpml_checkout_page_id', function ( $checkout_id ) {
   $checkout_id=WFACP_Common::get_checkout_page_id();
   $map_checkout = [
      '14489' => [ 'en' => 14484 , 'ro' => 14489],
// aici primu e din store checkout, prima pagina din lista, acolo cand dai pe checkout te duce si dupa pentru en te redirectioneaza pe 14484 sau pt ro 14489
   ]; // Change the country id's to small letters in case capital Case is not working for you. FOr eg: "it" for italy
// 	echo ICL_LANGUAGE_CODE;  //to see current checkout page language please uncomment slashes from starting 'echo'
   if ( class_exists( 'WPML_TM_Records' ) ) {
      if ( isset( $map_checkout[ $checkout_id ] ) && isset( $map_checkout[ $checkout_id ][ ICL_LANGUAGE_CODE ] ) ) {
         $checkout_id = $map_checkout[ $checkout_id ][ ICL_LANGUAGE_CODE ];
      }
   }
   return $checkout_id;
}, 20);
