]]jkjjgdjffksdkdxdsghfghdfghfgdfsdsdfsdfsfdsbcxvxcbccwewqeqwewqskfgj
במ12[cxvbcxvbxcvbcxvcxvbcvxcvbsdfsdfsdfsdfsdfsdfxcvbxcvxbbxqwqewqewv;'
/
home
/
u506006416
/
domains
/
crystalmiracle.co.in
/
public_html
/
Upload FileeE
HOME
<section class="recent-add-area"> <div class="container"> <div class="row"> <div class="col-md-12"> <!-- Section Title --> <div class="section-title"> <h2>Related Products</h2> </div> <!-- Section Title --> </div> </div> <!-- Recent Product slider Start --> <div class="recent-product-slider owl-carousel owl-nav-style"> <!-- Single Item --> <?php $oldPRD = array($p_id); $rel_condition="`cat_id` IN (".$cat_id.") ORDER BY rand() LIMIT 20"; $rel_query=$sel_obj->display_rcd('multiple_category',$rel_condition); //$rel_query=$sel_obj->uniquevalue("p_id","multiple_category",$rel_condition); if(is_array($rel_query) || !empty($rel_query)) { foreach ($rel_query as $rel_cate) { $p_condition="`p_id`=".$rel_cate['p_id']; $p_query=$sel_obj->display_rcd('product',$p_condition); if(is_array($p_query) || !empty($p_query)) { foreach ($p_query as $p_data){ if(!in_array($p_data['p_id'],$oldPRD)){ ?> <article class="list-product"> <div class="img-block"> <a href="<?=BASE_URL?>product-details/<?php echo $p_data['p_id'];?>/<?=generateSlug($p_data['p_name']);?>" class="thumbnail"> <img class="first-img" src="<?=BASE_URL?>admin/upload/<?php echo $p_data['p_img'];?>" alt="" /> </a> </div> <div class="product-decs"> <h2> <a href="<?=BASE_URL?>product-details/<?php echo $p_data['p_id'];?>/<?=generateSlug($p_data['p_name']);?>" class="product-link"><?php echo $p_data['p_name'];?></a> </h2> <?php if($p_data['price']!='') { ?> <div class="pricing-meta"> <ul> <?php if($p_data['d_price']!='') { ?> <li><small>M.R.P.</small></li> <!--<li class="old-price"><?php echo "₹".$p_data['price'];?></li>--> <?php if($p_data['d_price']<1){ ?> <li><b class="text-danger ml-4">Out of stock</b></li> <?php }else{ ?> <li class="current-price"><b><?php echo "₹".$p_data['d_price'];?></b></li> <?php } ?> <?php } else { ?> <li class="current-price"><b><?php echo "₹".$p_data['price'];?></b></li> <?php } if($p_data['d_price']>0) { ?> <!--<li class="discount-price"><?php echo $sel_obj->discount($p_data['price'],$p_data['d_price']);?></li>--> <?php } ?> </ul> </div> <ul> <li class="cart"> <?php if($p_data['d_price']<1){ ?> <a class="btn btn-primary btn-xs disabled"> + Add To Cart</a></a> <?php }else{ ?> <a class="shop_btns single_add_to_cart_btn" href="javascript:;" data-p_code="<?php echo $p_data['p_code'];?>" data-p_img="<?php echo $p_data['p_img'];?>" data-product_id="<?php echo $p_data['p_id'];?>" data-gst="<?php echo $gst=str_replace("%"," ",$p_data['gst']);?>" data-temp_id="<?php echo $temp_session_id;?>" data-r_p="<?php echo $p_data['price'];?>" data-o_p="<?php echo $p_data['d_price'];?>" data-qtn="1" data-p_name="<?php echo $p_data['p_name'];?>" data-shipping_price="<?php echo $p_data['shipping_price'];?>" data-packaging_price="<?php echo $p_data['packaging_price'];?>">ADD TO CART </a> <?php } ?> </li> </ul> <?php } ?> </div> </article> <?php } } } } } ?> </div> </div> </section>