public function display_visual_variations() { global $product; if ( ! $product || ! $product->is_type( 'variable' ) ) { return; } $attributes = $product->get_variation_attributes(); if ( empty( $attributes ) ) { return; } echo '
'; foreach ( $attributes as $attribute_name => $options ) { $sanitized_attr_name = str_replace( 'pa_', '', $attribute_name ); $display_type = get_term_meta( wc_attribute_taxonomy_id_by_name($sanitized_attr_name), 'marsouk_vv_display_type', true ); $display_type = empty($display_type) ? 'text' : $display_type; echo '
'; echo '

' . wc_attribute_label( $attribute_name ) . ' :

'; // On conserve ici le type d'affichage pour que le JS sache quoi sécuriser echo ''; echo ''; echo '
'; } echo '
'; // .marsouk-variations-container echo ''; echo ''; echo ''; } tenue décontractée femme - Marsouk | Shopping en ligne au Maroc

Menu Principal