use class prop `flexslider_enabled` in `init_zoom`
This commit is contained in:
parent
4e48a2ddfa
commit
fb6c1b09fc
|
@ -158,7 +158,7 @@ jQuery( function( $ ) {
|
||||||
var zoom_target = gallery.$images,
|
var zoom_target = gallery.$images,
|
||||||
enable_zoom = false;
|
enable_zoom = false;
|
||||||
|
|
||||||
if ( ! wc_single_product_params.flexslider_enabled ) {
|
if ( ! gallery.flexslider_enabled ) {
|
||||||
zoom_target = zoom_target.first();
|
zoom_target = zoom_target.first();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue