Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi.
    have you made any implementation to do this? can share your solution?

    Thanks,
    Luis

    maybe this can help you:

    1. Open frontend.js in assets\js directory.
    2. In tawcvs_variation_swatches_form function: Sub-function .on( ‘click’, ‘.swatch’, function ( e ) {

    Define:

    attribute_title = $el.attr('title')
    $label = $el.closest('tr').find('.label').first(),

    And change this if:

    if ( $el.hasClass( 'selected' ) ) {
    $select.val( '' );
    $el.removeClass( 'selected' );
    
    if ($label) {
    $label.html('<label for="pa_color">Color</label>');
    }
    
    delete selected[selected.indexOf(attribute_name)];
    } else {
    if ($label) {
    $label.html('<label for="pa_color">Color: '+ attribute_title +'</label>');
    }
    						
    $el.addClass( 'selected' ).siblings( '.selected' ).removeClass( 'selected' );
    $select.val( value );
    }

    update your server directory .. and test it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display color names’ is closed to new replies.