if ( $this -> custom_fields ) : ?> foreach ( $this -> custom_fields as $key => $val ) : ?> $custom_field = \shop\ProductCustomField::getFromCache( $key ); ?> if ( $custom_field['type'] == 'text' ) : ?>