I searched a lot about this and found almost the same answer everytime. I have referred Owl Carousel Won't Autoplay and Owl Carousel Will Not Autoplay and this too http://owlcarousel.owlgraphic.com/demos/autoplay.html
I am using below code for setting autoplay time but it's not working:
<script type="text/javascript">
$(document).ready(function() {
var owl = $("#productslider");
owl.owlCarousel({
items: 1,
autoplay: true
});
});
</script>
I am using owl carousel in below format:
<div id="productslider" class="owl-carousel owl-theme">
<div class="item">
<div class="product">
<a class="add-fav tooltipHere" data-toggle="tooltip" data-original-title="Add to Wishlist" data-placement="left">
<i class="glyphicon glyphicon-heart"></i>
</a>
<div class="image">
<div class="quickview">
<a title="Quick View" class="btn btn-xs btn-quickview" data-target="#product-details-modal" data-toggle="modal"> Quick View </a>
</div><a href="product-details.html"><img src="images/product/34.jpg" alt="img" class="img-responsive"></a>
<div class="promotion"> <span class="new-product"> NEW</span> <span class="discount">15% OFF</span> </div>
</div>
<div class="description">
<h4><a href="product-details.html">Product 1</a></h4>
<p>abcd</p>
<span class="size">XL / XXL / S </span> </div>
<div class="price"> <span>$25</span> </div>
<div class="action-control"> <a class="btn btn-primary"> <span class="add2cart"><i class="glyphicon glyphicon-shopping-cart"> </i> Add to cart </span> </a> </div>
</div>
</div>
Can anyone please tell me what is that I am missing?