Support » Plugin: WP eCommerce » Change WP-Ecommerce variant dropdown selector to radio button?

  • I really like some of the features in WP-Ecommerce but I’m wondering if I can use buttons for variant selection instead of the dropdown selector? It seems like it would be possible but I haven’t found any answers on the internet. Something like the Woocoomerce Variation Swatches and Photos plugin for WP-Ecommerce would be awesome.

Viewing 1 replies (of 1 total)
  • Just Add this code on your theme JS file

    	$('.wpsc_variation_forms').append('<div class="new-variation-div"></div>');
    	var i = 0;
    	$( ".wpsc_variation_forms" ).each(function() {
    		var output = '';
    		var variation = '';
    			var name = $(this).attr('name');
    					var val = $(this).text();
    					var value = $(this).attr('value');
    					if( value != '0' ){
    						variation = variation + '<label class="new-variation-radio radio-variation" for="'+name+i+'"><input class="wpsc_select_variation" type="radio" id="'+name+i+'" name="'+name+'" value="'+value+'" rel=' + val +' />'+val+'</label>';
    				variation = '<div class="variation-variation">'+variation+'</div>';
    			output = color + variation;
    		$(this).find('.new-variation-div').html( output );
Viewing 1 replies (of 1 total)
  • The topic ‘Change WP-Ecommerce variant dropdown selector to radio button?’ is closed to new replies.