# get_attributes(); foreach ( $product_object->get_attributes() as $attribute ) { if ( ! $attribute->get_variation() ) { continue; } $selected_value = isset( $attribute_values[ 'attribute_' . sanitize_title( $attribute->get_name() ) ] ) ? $attribute_values[ 'attribute_' . sanitize_title( $attribute->get_name() ) ] : ''; ?>