Skip to content

Instantly share code, notes, and snippets.

@clare485
Created September 19, 2013 08:59
Show Gist options
  • Save clare485/6620860 to your computer and use it in GitHub Desktop.
Save clare485/6620860 to your computer and use it in GitHub Desktop.
blockUI error blockUI requires jQuery v1.2.3 or later
replace the two block ui files in woocommerce with these:
https://github.com/woothemes/woocommerce/blob/master/assets/js/jquery-blockui/jquery.blockUI.js
https://github.com/woothemes/woocommerce/blob/master/assets/js/jquery-blockui/jquery.blockUI.min.js
This might not work, so try using the jquery updater plugin
This might break the fancybox lightbox, in which case:
disable lightbox in woocommerce admin panel
edit woocommerce > single-product > product-thumbnails.php
if you're using simple lightbox plugin, add this to the thumbnail link:
rel="slb_group[650_gallery_1] slb slb_internal"
so it'll look like this
printf( '<a href="%s" title="%s" rel="slb_group[650_gallery_1] slb slb_internal" class="%s">%s</a>', wp_get_attachment_url( $attachment->ID ), esc_attr( $attachment->post_title ), implode(' ', $classes), wp_get_attachment_image( $attachment->ID, apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment