if ( $this -> custom_fields ) : ?> foreach ( $this -> custom_fields as $key => $val ) : ?> $custom_field = ( new \Domain\Product\ProductRepository( $GLOBALS['mdb'] ) )->findCustomFieldCached( $key ); ?> if ( $custom_field['type'] == 'text' ) : ?>