add animationLoop to woocommerce_single_product_carousel_options filter

This commit is contained in:
Maximus80 2017-01-23 13:14:17 +01:00
parent d8bd80fbb7
commit 21a14b8636
2 changed files with 2 additions and 1 deletions

View File

@ -124,7 +124,7 @@ jQuery( function( $ ) {
controlNav: wc_single_product_params.flexslider.controlNav,
slideshow: wc_single_product_params.flexslider.slideshow,
animationSpeed: wc_single_product_params.flexslider.animationSpeed,
animationLoop: false // Breaks photoswipe pagination if true. It's hard disabled because we don't need it anyway (no next/prev enabled in flex).
animationLoop: wc_single_product_params.flexslider.animationLoop // Breaks photoswipe pagination if true.
});
},

View File

@ -431,6 +431,7 @@ class WC_Frontend_Scripts {
'controlNav' => 'thumbnails',
'slideshow' => false,
'animationSpeed' => 500,
'animationLoop' => false, // Breaks photoswipe pagination if true.
) ),
);
break;