<div class="row">

						<div class="col-lg-5 col-md-6 col-xs-12">

							<!-- product quickview image gallery -->

							<div class="product-image-slider">

								<!--Modal Tab Content Start-->

								<div class="tab-content product-large-image-list" id="myTabContent">

									<div class="tab-pane fade show active" id="single-slide1" role="tabpanel" aria-labelledby="single-slide-tab-1">

										<!--Single Product Image Start-->

										<div class="single-product-img img-full">

							<a href="<?php echo base_url().str_replace(" ","-",$pro->cat_name).'/details/'.str_replace(" ","-",$pro->title).'/'.$pro->pid;?>"><img src="<?php echo base_url();?>assets/images/products/<?php echo $pro->img;?>" class="img-fluid" alt=""></a>

										</div>

										<!--Single Product Image End-->

									</div>

                                    <?php $i=2;$imgs=explode(",",$pro->extimgs);

								foreach($imgs as $img){?>

                <div class="tab-pane fade" id="single-slide<?php echo $i;?>" role="tabpanel" aria-labelledby="single-slide-tab-<?php echo $i;?>">

                    <!--Single Product Image Start-->

                    <div class="single-product-img img-full">

                        <img src="<?php echo base_url();?>assets/images/products/<?php echo $img;?>" class="img-fluid" alt="">

                    </div>

                    <!--Single Product Image End-->

                </div>

                                    <?php $i++;}?>

								</div>

								<!--Modal Content End-->

								<!--Modal Tab Menu Start-->

								<div class="product-small-image-list"> 

									<div class="nav small-image-slider" role="tablist">

										<div class="single-small-image img-full">

											<a data-toggle="tab" id="single-slide-tab-1" href="#single-slide1">

                   <img style="width:50px;" src="<?php echo base_url();?>assets/images/products/<?php echo $pro->img;?>" class="img-fluid" alt=""></a>

										</div>

                                        <?php $i=2;$imgs=explode(",",$pro->extimgs);

								foreach($imgs as $img){?>

										<div class="single-small-image img-full">

											<a data-toggle="tab" id="single-slide-tab-<?php echo $i;?>" href="#single-slide<?php echo $i;?>">

                                 <img style="width:50px;" src="<?php echo base_url();?>assets/images/products/<?php echo $img;?>" class="img-fluid" alt=""></a>

										</div>

                                        <?php $i++;}?>

									</div>

								</div>

								<!--Modal Tab Menu End-->

							</div>

							<!-- end of product quickview image gallery -->

						</div>

						<div class="col-lg-7 col-md-6 col-xs-12">

							<!-- product quick view description -->

							<div class="product-feature-details">

                            <h2 class="product-title mb-15"><?php echo $pro->title;?></h2>



                            <p class="product-rating">

                                <i class="fa fa-star active"></i>

                                <i class="fa fa-star active"></i>

                                <i class="fa fa-star active"></i>

                                <i class="fa fa-star active"></i>

                                <i class="fa fa-star"></i>



                                <a href="#">(1 customer review)</a>

                            </p>

        

                            <h2 class="product-price mb-15 pbox<?php echo $pro->pid;?>"> 

                            	<?php if($pro->prod_type=="Normal"){if($pro->oprice!=""){?>

                                <span class="main-price"><i class="fa fa-inr"></i> <?php echo $pro->price;?></span>

                                <span class="discounted-price"><i class="fa fa-inr"></i><?php echo $pro->oprice;?></span>

                                                        <?php }else{?>

                               <span class="discounted-price"><i class="fa fa-inr"></i><?php echo $pro->price;?></span>

                                                        <?php }}else{$prices=explode(",",$pro->prices);$oprices=explode(",",$pro->oprices);

                                                        if($pro->oprices!=""){?>

                               <span class="main-price"><i class="fa fa-inr"></i> <?php echo $prices[0];?></span>

                               <span class="discounted-price"><i class="fa fa-inr"></i><?php echo $oprices[0];?></span>

                                                        <?php }else{?>

                               <span class="discounted-price"><i class="fa fa-inr"></i><?php echo $prices[0];?></span>

                                                <?php }}?>

                                <!--<span class="main-price">$12.90</span> 

                                <span class="discounted-price"> $10.00</span>-->

                            </h2>

        

                            <!--<p class="product-description mb-20">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco,Proin lectus ipsum, gravida et mattis vulputate, tristique ut lectus</p>-->

							<form action="" method="post" class="addtocart">

                            <input type="hidden" name="pid" value="<?php echo $pro->pid;?>" />

                        

                            <div class="size mb-20">

                                 <?php if($pro->prod_type=="Variant"){$type=explode(",",$pro->packs);$colsize=7;?>

                                                <select style="width:100px;" name="type" class="form-control prod_type" id="<?php echo $pro->pid;?>"><?php

                                                $i=0;foreach($type as $t){

									echo '<option value="'.$i.'">'.$t.'</option>';

                                                $i++;}?></select><?php }else{$colsize=12;}?>

                            </div>



                            <div class="cart-buttons mb-20">

                                <div class="pro-qty mr-20 mb-xs-20">

                                    <input type="text" name="qty" value="1">

                                </div>

                                <div class="add-to-cart-btn">

                                    <button type="submit" class="btn btn-success"><i class="fa fa-shopping-cart"></i> Add to Cart</button>

                                </div>

                            </div>

							</form>

                            <!--<div class="single-product-action-btn mb-20">

                                <a href="#" data-tooltip="Add to wishlist"> <span class="icon_heart_alt"></span> Add to wishlist</a>

                            </div>-->

                            <!--<div class="single-product-category mb-20">

                                <h3>Categories: <span><a href="shop-left-sidebar.html">Fast Foods</a>, <a href="shop-left-sidebar.html">Vegetables</a></span></h3>

                            </div>-->

                            <!--<div class="social-share-buttons">

                                <h3>share this product</h3>

                                <ul>

                                    <li><a class="twitter" href="#"><i class="fa fa-whatsapp"></i></a></li>

                                    <li><a class="facebook" href="#"><i class="fa fa-facebook"></i></a></li>

                                </ul>

                            </div>-->

                        </div>

							<!-- end of product quick view description -->

						</div>

					</div>

                    <script>

					$(document).ready(function(){

						$(".addtocart").submit(function(e){e.preventDefault();

			var formdata=$(this).serialize();

			//alert(formdata);

			$.ajax({

				 type: "POST",

				 url: '<?php echo base_url();?>home/ajax_addtocart',

				 data: {formdata:formdata},

				 success: function(response){

					// alert(response);

					 $("#cart-floating-box").html(response);

				 }

				 });

			setTimeout(function(){

			 $.ajax({

			 type: "POST",

			 url: '<?php echo base_url();?>home/ajax_item_total',

			 data: {id:"asdf"},

			 success: function(response){

				 //alert(response);

				 $("#items_total").html(response);

			 }

			 });

			},1000);

		});

					});

					</script>