if ( is_array( $this -> transports_methods ) ) { $transport_found = false; $default_transport_id = false; foreach ( $this -> transports_methods as $transport_method ) { if ( $transport_method['id'] == $this -> transport_id ) $transport_found = true; if ( $transport_method['default'] ) $default_transport_id = $transport_method['id']; } if ( !$transport_found ) { $this -> transport_id = $default_transport_id; \S::set_session( 'basket-transport-method-id', $default_transport_id ); } } ?> if ( is_array( $this -> transports_methods ) ): foreach ( $this -> transports_methods as $transport_method ):?>
if ( $transport_method['id'] == 1 or $transport_method['id'] == 2 ):?>