diff --git a/assets/js/frontend/single-product.js b/assets/js/frontend/single-product.js index f511321fa36..1254950a4cb 100644 --- a/assets/js/frontend/single-product.js +++ b/assets/js/frontend/single-product.js @@ -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. }); }, diff --git a/includes/class-wc-frontend-scripts.php b/includes/class-wc-frontend-scripts.php index 3ac9e66d2fb..63d9710af54 100644 --- a/includes/class-wc-frontend-scripts.php +++ b/includes/class-wc-frontend-scripts.php @@ -431,6 +431,7 @@ class WC_Frontend_Scripts { 'controlNav' => 'thumbnails', 'slideshow' => false, 'animationSpeed' => 500, + 'animationLoop' => false, // Breaks photoswipe pagination if true. ) ), ); break;