frontAttributeDetails( (int)$this -> attribute['id'], $lang_id ); $forced_value_id = null; if ( isset( $_GET['permutation_hash'] ) && $_GET['permutation_hash'] !== '' ) { $pairs = explode( '|', str_replace( '_', '|', $_GET['permutation_hash'] ) ); foreach ( $pairs as $pair ) { $parts = explode( '-', $pair ); if ( count( $parts ) == 2 && (int)$parts[0] === (int)$this -> attribute['id'] ) { $forced_value_id = (int)$parts[1]; break; } } } if ( $attribute_details['type'] == 0 ) { ?>
= $attribute_details['language']['name'];?>:
foreach ( $this -> attribute['values'] as $value ): $is_active = $forced_value_id !== null ? ( (int)$value['id'] === $forced_value_id ) : (bool)$value['is_default']; ?>