Support » Plugin: Product Slider and Carousel with Category for WooCommerce » Slider not showing on Safari/webkit browsers

  • Resolved dougllio

    (@dougllio)


    I was able to get this plugin working on Chrome and Firefox browsers but not on any Apple Browser or on Epiphany Webkit browser. Not sure what to look for to troubleshoot.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rafik

    (@rafikwp)

    Hello,

    Thanks for reaching here.
    Can you please provide page URL so we can check and help you.

    Thanks

    I managed to code a workaround. It seems the slider was not getting initialized so I added code to check after 500ms if the slick components were added and if not call the initialization code again. The code is a copy so obviously if there are changes to the plugin, this workaround will need to be updated. Here is the url.

    jQuery(function($) {
    	setInterval(function(){
    		$( '.wcpscwc-product-slider' ).each(function( index ) {
    			var slick = $(this).find('.slick-track');
    			var slicklength = slick.length;
    			if (slicklength == 0) {
    				var slider_id   = $(this).attr('id');
    				var slider_conf = $.parseJSON( $(this).closest('.wcpscwc-product-slider-wrap').find('.wcpscwc-slider-conf').attr('data-conf'));
    				var slider_cls	= slider_conf.slider_cls ? slider_conf.slider_cls : 'products';
    					jQuery('#'+slider_id+' .'+slider_cls).slick({
    ...

    The original code seemed to always work on Firefox, 50% of the time on Chrome, but almost never on iOS Safari or Epiphany. I am not sure if there are conflicts on the page but the delayed check that I added seems to work for all cases.

    • This reply was modified 1 month, 4 weeks ago by dougllio.
    • This reply was modified 1 month, 4 weeks ago by dougllio.
    Plugin Support Rafik

    (@rafikwp)

    Hello,

    Thanks for sharing the code.
    Now your shared code is working, right? we will check it.

    Thanks

    • This reply was modified 1 month, 4 weeks ago by Rafik.
    • This reply was modified 1 month, 4 weeks ago by Rafik.

    Yes it is working.

    Plugin Support Ketan Patel

    (@patelketan)

    Hello,

    If you like our plugin please give you an important Rate and Review Hereā€¦

    Thanks,

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.