Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function(){
- //for swatches1
- var swatchLength = $('.swatch-attribute').length;
- if(swatchLength >= 1){
- if($('.swatch-attribute').hasClass("size")){
- $('.swatch-option').first().trigger('click');
- }
- }
- });
Add Comment
Please, Sign In to add comment