• Resolved umairriaz2008

    (@umairriaz2008)


    Dear

    I put your code in order to display 4 related products instead of 3 but now this code not working kindly suggest some other way to do desire work

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Vagelis

    (@eboxnet)

    Hello there, i am not sure what code you used and where you added it but try this one:

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

    Should work

    Thread Starter umairriaz2008

    (@umairriaz2008)

    I used same code last time and it works but i now it is not working

    Plugin Contributor Vagelis

    (@eboxnet)

    Where did you add the function?

    i wrote same code in functions.php but it is not working i want to increase item 4

    Plugin Contributor Vagelis

    (@eboxnet)

    Hello @mahi8900 please start your own topic so we can solve your issue. Make sure you provide a URL and your configuration settings. Thanks.

    Thread Starter umairriaz2008

    (@umairriaz2008)

    i wrote in function.php

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘related products is not incremented’ is closed to new replies.