[Solved] Problem with Swiper Slider on changing product variation

galicloud's picture
galicloud
Sun, 11/20/2016 - 12:31
#1
[Solved] Problem with Swiper Slider on changing product variation

When I change a product variation it is loaded by ajax and Swiper slider not working, to solve it add the next lines at the end of md_hosoren.js file

(function ($) {

 Drupal.behaviors.exampleModule = {

   attach: function (context, settings) {
       if ($('.product-slider-main').length > 0) {
           aweProductRender(true);
       }   
   }
 };
}(jQuery));
 

Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.