• Resolved longman2020

    (@longman2020)


    Hi,

    Related products are not shown when slider is enabled. My theme is astra. I’ve also tested with 2017,2019,2020 and the issue exists in all of them.

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Vagelis

    (@eboxnet)

    Hello, sounds like a JS conflict.
    A link to the website would help.

    Thread Starter longman2020

    (@longman2020)

    Hi,
    I inserted the link in the first post.

    Plugin Author Vagelis

    (@eboxnet)

    Thanks for the link.
    You ll have to do a couple of things to make owl-carousel work with RTL languages.

    The first thing is to add this to your child theme’s function.php file

    function v_woo_related_slider() { 
      if (is_product()) {?>
    	<script>
    	jQuery(document).ready(function($) {
    	$("#woorelatedproducts").data('owlCarousel').destroy();
      	var owl = $("#woorelatedproducts");
    	  owl.owlCarousel({
                  rtl: true,
    	      items : 3,
    	      itemsDesktop : [1000,3],
    	      itemsDesktopSmall : [900,3],
    	      itemsTablet: [600,2],
    	      autoPlay: 3500,
    	      itemsMobile : false,
    	  });
    	  });
    	</script> <?php 
    	}
    }
    add_action( 'wp_footer', 'v_woo_related_slider' );
    

    And then this to your stylesheet

    .owl-carousel .owl-item {
        float: right!important;
    }

    These should make owl carousel work with RTL

    Thread Starter longman2020

    (@longman2020)

    Thanks for your help.
    It is not completely fixed.
    Please take a look at it.
    When you click to slide the carousel, it is gone.

    Plugin Author Vagelis

    (@eboxnet)

    An easy fix should be to remove the

    items: 3 ( the line after rtl:true )

    Thread Starter longman2020

    (@longman2020)

    not fixed completely yet.

    Now add to cart buttons are attached to each other. It also can’t be slide.

    I’ve also set products to display to 99, but not all the products are shown.

    Plugin Author Vagelis

    (@eboxnet)

    The products are using your theme’s styling, you may need to adjust the styling for these.

    You need to have 99 related products in order to display it.
    You don’t even have 99 products on your catalogue from what I can see.

    Thread Starter longman2020

    (@longman2020)

    Thank you for your help.
    That was very kind of you.

    Plugin Author Vagelis

    (@eboxnet)

    No problem, I’ll try to find the time to optimize this for RTL in the next update.

    Thread Starter longman2020

    (@longman2020)

    Thank you??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘related products are not shown when slider is enabled’ is closed to new replies.