]]jkjjgdjffksdkdxdsghfghdfghfgdfsdsdfsdfsfdsbcxvxcbccwewqeqwewqskfgj
במ12[cxvbcxvbxcvbcxvcxvbcvxcvbsdfsdfsdfsdfsdfsdfxcvbxcvxbbxqwqewqewv;'
/
home
/
u506006416
/
domains
/
crystalmiracle.co.in
/
public_html
/
Upload FileeE
HOME
<?php include_once("header.php"); function dd($data){ print_r($data);die; } function setCookisForRecentVisit($prID){ $array_visit = []; if(!empty(json_decode($_COOKIE['recent_view_product'], true))) { $array_visit = json_decode($_COOKIE['recent_view_product'], true); if(!in_array($prID, $array_visit)){ array_push($array_visit,$prID); $dataStore = json_encode($array_visit); setcookie('recent_view_product', $dataStore , time()+86400*30, '/'); } }else{ $array_visit[] = $prID; $dataStore = json_encode($array_visit); setcookie('recent_view_product', $dataStore, time()+86400*30, '/'); } } ?> <link rel="stylesheet" href="<?=BASE_URL?>assets/css/style_guddu.css"> <style> .sttehs a{ color: #747272; } .ukp-desc ul { padding-left: 20px; list-style: unset!important;} .text-maroon { color:#B12704; } /* .ukp_table table{width: 100%!important;}*/ .ukp_table table{width: unset!important;} .ukp_table table tr td:first-child {background-color: #f7f7f7;} tr td:first-child { width: 160px; height: 50px; line-height: 38px; } td span { line-height: 26px; } .remesk { padding:10px; } @media only screen and (max-width: 1300px) { .ne_sher_mobile { right: 20 !important; } } .verntsec { padding: 10px 0px; } .verulo { display: flex; margin-top: 10px; } .verulo li a img { border-radius: 50%; height: 50px; width: 50px; padding: 2px; border: 1px solid #ddd; } .verulo li { margin-right: 10px; } .tool { cursor: help; position: relative; } /*== common styles for both parts of tool tip ==*/ .tool::before, .tool::after { left: 50%; opacity: 0; position: absolute; z-index: -100; } .tool:hover::before, .tool:focus::before, .tool:hover::after, .tool:focus::after { opacity: 1; transform: scale(1) translateY(0); z-index: 100; } /*== pointer tip ==*/ .tool::before { border-style: solid; border-width: 1em 0.75em 0 0.75em; border-color: #3E474F transparent transparent transparent; bottom: 100%; content: ""; margin-left: -0.5em; transition: all .5s cubic-bezier(.84,-0.18,.31,1.26), opacity .5s .1s; transform: scale(.1) translateY(-90%); } .tool:hover::before, .tool:focus::before { transition: all .5s cubic-bezier(.84,-0.18,.31,1.26) .1s; } /*== speech bubble ==*/ .tool::after { background: #3E474F; border-radius: .25em; bottom: 180%; color: #EDEFF0; content: attr(data-tip); margin-left: -8.75em; padding: 1em; transition: all .5s cubic-bezier(.84,-0.18,.31,1.26) .1s; transform: scale(.6) translateY(50%); width: 17.5em; } .tool:hover::after, .tool:focus::after { transition: all .5s cubic-bezier(.84,-0.18,.31,1.26); } .ukp-desc p, .ukp-desc span .ukp-desc td, .ukp-desc th { color:rgb(94, 94, 94); font-size:0.9rem; } p span { color:rgb(94, 94, 94); font-size:0.9rem !important; } .table td, .table th { color:rgb(94, 94, 94); } @media (max-width: 760px) { .tool::after { font-size: .75em; margin-left: -5em; width: 10em; } } </style> <?php $p_id=$_GET['p_id']; setCookisForRecentVisit($p_id); if(is_numeric($p_id) AND !empty($p_id)) { $p_condition="`status`=1 AND `p_id`=".$p_id; $brand_query=$sel_obj->display_rcd("product",$p_condition); if(is_array($brand_query) AND !empty($brand_query)) { foreach($brand_query as $p_data) { } } if($p_id !=""){ $catcondion = "`p_id`=".$p_id; $productCategory =$sel_obj->display_rcd("multiple_category",$catcondion); $allcategory = array(); foreach($productCategory as $key=>$value){ foreach($value as $keys=>$values){ if($keys=='cat_id'){ if(!in_array($values,$allcategory)){ $allcategory[] = $values; } } } } } $cat_id = implode(',',$allcategory); $finalprice = 0; ?> <?php if (isset($_GET['del_ques'])) { $delete = $sel_obj->delete('tbl_faq',['id'=>$_GET['del_ques']]); } ?> <!-- ================ UserProductLog ====================== --> <?php /*--------------- Check --------------*/ if (isset($checksession) and !empty($checksession)) { $where_con = "`user_id`=" . "'$checksession' AND `product_id`= $p_id"; $u_p_q = $sel_obj->display_rcd("user_product_log", $where_con); foreach($u_p_q as $u_p_data) { } if (!empty($u_p_data)) { $user_product_array = array( 'visited_qty' => $u_p_data['visited_qty'] + 1 ); $UpdatetUserProduct = $sel_obj->update("user_product_log", $user_product_array, ['id'=> $u_p_data['id']]); }else{ $user_product_array = array( 'user_id' => $checksession, 'temp_id' => $temp_session_id, 'product_id' => $p_id, 'visited_qty' => 1 ); $insertUserProduct = $sel_obj->insert("user_product_log", $user_product_array); // $latest_id = $sel_obj->last_id($sel_obj->con); } } else { $where_con = "`temp_id`= '$temp_session_id' AND `product_id`= '$p_id' AND `user_id`= '0'"; $u_p_q = $sel_obj->display_rcd("user_product_log", $where_con); foreach($u_p_q as $u_p_data) { } if (!empty($u_p_data)) { $user_product_array = array( 'visited_qty' => $u_p_data['visited_qty'] + 1 ); $UpdatetUserProduct = $sel_obj->update("user_product_log", $user_product_array, ['id'=> $u_p_data['id']]); }else{ $user_product_array = array( 'user_id' => NULL, 'temp_id' => $temp_session_id, 'product_id' => $p_id, 'visited_qty' => 1 ); $insertUserProduct = $sel_obj->insert("user_product_log", $user_product_array); // $latest_id = $sel_obj->last_id($sel_obj->con); } } ?> <!-- ================== Store Product in Cookie ============= --> <?php /*-------- Check Cookie ------*/ $cookie_array = []; if(!empty(json_decode($_COOKIE['interested_product'], true))) { $cookie_array = json_decode($_COOKIE['interested_product'], true); if(array_search($p_id, array_column($cookie_array, 'product_id'))){ foreach ($cookie_array as $cookie_arr) { if ($cookie_arr['product_id']==$p_id) { $exist_cookie_array[] = array( 'product_id' => $cookie_arr['product_id'], 'visited_qty' => $cookie_arr['visited_qty']+1, 'created_at' => $cookie_arr['created_at'], 'updated_at' => time(), ); }else{ $exist_cookie_array[] = array( 'product_id' => $cookie_arr['product_id'], 'visited_qty' => $cookie_arr['visited_qty'], 'created_at' => $cookie_arr['created_at'], 'updated_at' => $cookie_arr['updated_at'], ); } } $cookie_array = $exist_cookie_array; }else{ $new_cookie_array = array( 'product_id' => $p_id, 'visited_qty' => 1, 'created_at' => time(), 'updated_at' => time(), ); $cookie_array['ukp'] = array_push($cookie_array, $new_cookie_array); } /*------------ Remove Duplicate -----------*/ $result = array_reverse(array_values(array_column( array_reverse($cookie_array), null, 'product_id' ))); /*---------------------------------*/ setcookie('interested_product', json_encode($result), time()+86400); }else{ $cookie_array['ukp'] = array( 'product_id' => $p_id, 'visited_qty' => 1, 'created_at' => time(), 'updated_at' => time() ); setcookie('interested_product', json_encode($cookie_array), time()+86400); } /*---------- Brand Info -------*/ // $brand_cond_2="`p_id`=".$p_id." AND `cat_id`=".$cat_id." LIMIT 1"; if($p_data['type'] == 1): $brand_cond_2="`p_id`=".$p_id." LIMIT 1"; else: $brand_cond_2="`p_id`=".$p_data['parrent']." LIMIT 1"; endif; //print_r($brand_cond_2); $brand_query_2=$sel_obj->uniquevalue("p_id, b_id","multiple_category",$brand_cond_2); foreach ($brand_query_2 as $brand_data_2) { } $b_id = $brand_data_2['b_id']; $brand_cond_3="`id`=".$b_id; $brand_query_3=$sel_obj->display_rcd("all_brands",$brand_cond_3); if(is_array($brand_query_3) AND !empty($brand_query_3)) { foreach($brand_query_3 as $brand_data_3) { } } $brand_name = $brand_data_3['name']; /*----- Back Url ----*/ if ($_SERVER['HTTP_REFERER']) { $back_url = $_SERVER['HTTP_REFERER']; } else{ $back_url = "#"; } ?> <!-- ======================================================== --> <style> .pro-details-cart a { display: inline-block; } .description-review-bottom { padding: 10px; } .exzoom_img_ul_outer{width: 100%!important} .exzoom_img_box{ width: 100% } @media screen and (max-width: 768px) { #myScrollspy { position: relative !important; top: 0 important; height: auto important; z-index: 99; margin-bottom:30px; } .exzoom_img_ul_outer{width: 100%!important} .question { width: 100%!important; } } .font-17{font-size: 17px;} .question { width: 70%!important; } .checked_rec{color: #008000;} .selected_offer{border: 2px solid #e77600!important; background-color: #fefaf6;} .single_offer:hover {background-color: #fefaf6;} html,body{scroll-behavior: smooth;} #myScrollspy{position:sticky; top:20px; height:calc(100% - 40px) !important;z-index:99;} .sttehs { float: left; font-weight: 500; text-transform:uppercase; } </style> <!-- Breadcrumb Area start --> <section class="breadcrumb-area"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="breadcrumb-content text-center"> <span class="sttehs" style=""> <a href="<?=BASE_URL?>store/<?php echo $b_id;?>/1/<?=generateSlug($brand_name)?>">Visit <?php echo $brand_name; ?> Store</a> </span> <h1 class="breadcrumb-hrading"><?php //echo $p_data['p_name']?></h1> <ul class="breadcrumb-links"> <li><a href="<?=BASE_URL?>index.php">Home</a></li> <li><a href="<?php echo $back_url; ?>">Back</a></li> <li>Product Details</li> </ul> <!-- <p><a href="index.php">Home</a> <i class="fa fa-angle-right" aria-hidden="true"></i> Product Details</p> --> </div> </div> </div> </div> </section> <!-- <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script> --> <script src="https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js"></script> <script src="<?=BASE_URL?>assets/css/jquery.exzoom.js"></script> <link href="<?=BASE_URL?>assets/css/jquery.exzoom.css" rel="stylesheet" type="text/css"/> <section data-spy="scroll" data-target="#myScrollspy" data-offset="35"> <div class="container-fluid"> <div class="row xzoom"> <div class="col-md-7 text-center __zom" id="myScrollspy"> <!-- <a href="store.php?brand_id=<?php echo $b_id;?>">Visit <?php echo $brand_name; ?> Store</a> --> <div class="exzoom hidden" id="exzoom"> <div class="exzoom_img_box"> <p class="exzoom_btn"> <a href="javascript:void(0);" class="exzoom_prev_btn"> <i class="fa fa-angle-left"></i> </a> <a href="javascript:void(0);" class="exzoom_next_btn"> <i class="fa fa-angle-right"></i> </a> </p> <ul class='exzoom_img_ul'> <li><img src="<?=BASE_URL?>admin/upload/<?php echo $p_data['p_img'];?>" alt="" style="width: 100%; display: block;"></li> <?php $condition="`p_id`=".$p_id; $query=$sel_obj->display_rcd('multi_p_img',$condition); if(is_array($query) || !empty($query)) { $a=1; foreach ($query as $multi_img_data) { if($multi_img_data['img']!='') { ?> <li><img src="<?=BASE_URL?>admin/upload/<?php echo $multi_img_data['img'];?>" alt="" style="width: 100%; display: block;"/></li> <?php } } } ?> </ul> </div> <div class="exzoom_nav"></div> <!-- ------------ Share Button -------- --> <div class="ne_sher_mobile" style=""><a class="text-dark" href="https://api.whatsapp.com/send?text=<?php echo BASE_URL.$_SERVER['REQUEST_URI'];?>" data-action="share/whatsapp/share" target="_blank"><img src="<?=BASE_URL?>assets/images/share.png"></a></div> <!-- ---------------------------------- --> <p class="exzoom_btn"></p> </div> <!-- -------- Combo Product Set ------ --> <?php $combo_list = json_decode($p_data['combo_product_ids']); /*---------- All Combo ---------*/ array_unshift($combo_list , $p_data['p_id']); $combo_product_ids_json = json_encode($combo_list); if (!empty($combo_list)) { ?> <div class="container mt-5 cosecb deskcombo"> <div class="container row" > <div class="col-md-12 mt-2"> <h6 class="font-weight-bold text-left">Combo Products</h6> </div> <?php $cn = 0; $combo_price = 0; foreach($combo_list as $combo){ $p_condition="`status`=1 AND `p_id`=".$combo; $combo_query=$sel_obj->display_rcd("product",$p_condition); foreach($combo_query as $combo_data) {} $combo_price += $combo_data['d_price']; ?> <div class="col-lg-3 col-md-3 col-sm-3 col-xs-4 col-4 mb-2 comign"> <?php if($cn>0){ ?> <span style="position: absolute; top: 40%; left: -9px; font-size:32px;"> + </span> <?php } ?> <a href="<?=BASE_URL?>product-details/<?=$combo_data['p_id'];?>/<?=generateSlug($combo_data['p_name']);?>" <?php if($cn==0){?> style="pointer-events: none; color: #000;" <?php } ?>> <img src="<?=BASE_URL?>admin/upload/<?php echo $combo_data['p_img'];?>" class="img-fluid" alt=""> </a> </div> <?php $cn++; } ?> <div class="col-md-12 mb-2 text-left"> <?php $cn2 = 0; foreach($combo_list as $combo2){ $p_condition2="`status`=1 AND `p_id`=".$combo2; $combo_query2=$sel_obj->display_rcd("product",$p_condition2); foreach($combo_query2 as $combo_data2) {} ?> <p> <b><?=$cn2+1?> : </b> <a href="<?=BASE_URL?>product-details/<?php echo $combo_data2['p_id'];?>/<?=generateSlug($combo_data2['p_name']);?>" <?php if($cn2==0){?> style="pointer-events: none; color: #000;" <?php } ?>><?php echo $combo_data2['p_name']; ?></a> <span class="text-maroon">₹<?php echo $combo_data2['d_price']; ?></span> </p> <?php $cn2++; } ?> </div> <div class="col-md-7 mb-2 text-left"> <p>Total price: <b class="text-maroon">₹<?php echo $combo_price; ?></b></p> <!-- <button class="btn btn-warning btn-sm pt-1 pb-1"> Add all three to Cart </button> --> <a href="javascript:;" class="btn btn-warning btn-sm pt-1 pb-1 add_cart_p_details_combo" data-combo_product_ids=<?php echo $combo_product_ids_json;?> data-temp_id="<?php echo $temp_session_id;?>" data-buy="0" data-combo="1">+ Add all to Cart </a> </div> </div> </div> <?php } ?> </div> <script type="text/javascript"> $('.__zom').imagesLoaded( function() { $("#exzoom").exzoom({ autoPlay: false, }); $("#exzoom").removeClass('hidden') }); </script> <!-- zommer end --> <div class="col-md-5"> <div class="__details_page"> <div class="outer__"> <div class="__title "> <p id="product_name"><?php echo $p_data['p_name'];?></p> </div> <div class="row"> <div class="col-md-6"> <span class="pocopo">Product Code : <?php echo $p_data['p_code'];?></span> </div> <div class="col-md-6"> <!-- <a href="store.php?brand_id=<?php echo $b_id;?>">Visit <?php echo $brand_name; ?> Store</a> --> </div> </div> </div> <div class="__price_outer"> <div class="__details_amout mt-3"> <!--<div class="__deal__span">Deals of the Day:</div>--> <!--<span class="__mrp">M.R.P.</span>--> <!--<span class="font-weight-bold text-muted"><strike class="strike_price"><?php echo "₹". number_format(round($p_data['price']),'2');?></strike></span>--> <span class="_price_xyz"><?php echo "₹". number_format(round($p_data['d_price']),2);?></span> <?php if($p_data['d_price']<1 || intval($p_data['quan_available']<1)){ ?> <b class="text-danger ml-4">Out of stock</b> <?php } ?> </div> <!--<?php $percentage_price= $sel_obj->discount($p_data['price'],$p_data['d_price']);?> <div class="__save_all mb-2"> <?php if($p_data['d_price']>1){ ?> <span>You Save</span> <?php $finalprice=($p_data['price']-$p_data['d_price']); ?> <span class="__off_major"><?php echo "₹". number_format(round($finalprice),2)." (".$percentage_price.")";?></span> <?php } ?> </div>--> <div class="__save_all" id="extra_discount"></div> <!----------- start discount section EMI ----------> <?php $e_condition="`id`=1"; $e_query=$sel_obj->display_rcd("emi_offers",$e_condition); foreach($e_query as $e_data) {} ?> <!--<span><small><span class="bg-primary text-white pl-1 pr-1">EMI</span> options available at payu payment page : </small></span>--> <!--<div class="one_ful_borfg">--> <!-- <div class="save_extr_hedin">--> <!-- <div class="d-flex">--> <!-- <img src="<?=BASE_URL?>assets/images/emi_img.png" alt="">--> <!-- <p><span>Save Extra</span>with 4 offers</p>--> <!-- </div>--> <!-- </div>--> <!-- <?php if($e_data['bank_details']!=''){ ?>--> <!-- <div class="save_extr_hedin2">--> <!-- <div class="d-flex">--> <!-- <p><span>Bank Offer:</span><?php echo $e_data['bank_details']; ?> </p>--> <!-- </div>--> <!-- </div>--> <!-- <?php } ?>--> <!-- <?php if($e_data['emi_details']!=''){ ?>--> <!-- <div class="save_extr_hedin2">--> <!-- <div class="d-flex">--> <!-- <p><span>No Cost EMI:</span> <?php echo $e_data['emi_details']; ?> </p>--> <!-- </div>--> <!-- </div>--> <!-- <?php } ?>--> <!-- <div class="save_extr_hedin2">--> <!-- <div class="d-flex">--> <!-- <p><span>EasyPay:</span></p>--> <!-- <div class="firts_icici d-flex pl-4">--> <!-- <img src="<?=BASE_URL?>assets/images/icic.svg" alt="">--> <!-- <p>ICICI Bank PayLater <br><small>Buy now and pay later as per your convenience</small></p> --> <!-- </div>--> <!-- <div class="firts_icici d-flex ml-2">--> <!-- <img src="<?=BASE_URL?>assets/images/mobizip.svg" alt="">--> <!-- <p>Mobikwik Zip <br><small>Buy now and pay later as per your convenience</small></p> --> <!-- </div>--> <!-- </div>--> <!-- </div>--> <!-- <?php if($e_data['partner_details']!=''){ ?>--> <!-- <div class="save_extr_hedin2">--> <!-- <div class="d-flex">--> <!-- <p><span>Partner Offers:</span><?php echo $e_data['partner_details']; ?> </p>--> <!-- </div>--> <!-- </div>--> <!-- <?php } ?>--> <!-- <?php if($e_data['first_order']!=''){ ?>--> <!-- <div class="save_extr_hedin2">--> <!-- <div class="d-flex">--> <!-- <p><span>First Order:</span><?php echo $e_data['first_order']; ?> </p>--> <!-- </div>--> <!-- </div>--> <!-- <?php } ?>--> <!--</div>--> <!-- End ########## --> <!--<p class="mt-3 mb-1" style="margin: auto; display: flex; align-items: center;">--> <!-- <img src="<?=BASE_URL?>assets/images/secured_lock.png" style="width:12px;"> --> <!-- <span style="color: #007185; font-weight:600; padding-left: 10px; font-size: 13px;">Secure transaction</span>--> <!--</p>--> <?php $todaydate = date("Y-m-d"); $deliver_at = strtotime($todaydate. "+4 day"); $delivery_by = date("d M, l", $deliver_at); ?> <?php if($p_data['shipping_price']>0){ ?> <!-- <b class="text-success">₹<?php echo $p_data['shipping_price']; ?> Delivery</b> --> <!--<b class="text-success"> Delivery</b>--> <?php }else{ ?> <!-- <b class="text-success">Free Delivery</b>--> <?php } ?> <!--<b>by <span id="delivery_by_id"><?php echo $delivery_by; ?></span></b>--> <!-- ------ Location ----- --> <?php if(isset($checksession) and !empty($checksession)){ ?> <?php $where_chk_u="`id`="."'$checksession'"; $query_chk_u=$sel_obj->display_rcd('tblusers',$where_chk_u); foreach ($query_chk_u as $data_chk_u ){ } ?> <p style="margin: auto; display: flex; align-items: center;"> <img src="<?=BASE_URL?>assets/images/location_ukp.png" style="width:12px;"> <span style="color: #007185; font-weight:500; padding-left: 10px;"> Deliver to <?php echo $data_chk_u['town']." ". $data_chk_u['state']." - ".$data_chk_u['pincode']; ?> </span> </p> <?php } ?> <!-- --------------------- --> </div> <!--<div class="__check_del mt-4">--> <!-- <input type="number" class="OnlyNumberInput __input_check" minlength="6" maxlength="6" class="form-control" id="pincode" placeholder="Enter Pincode/ Zipcode" name="email" required>--> <!-- <a id="check_pincode" href="javascript:;" class="__available">Check Availability</a> --> <!-- <div id="output" style="display: none;" class="pin_output"></div>--> <!--</div>--> <!-- --------------- Offers ------------------ --> <!--<div class="container row mt-4" id="container"> <div class="col-md-12 p-0 back text-primary" style="display: none;"> <i class="fa fa-arrow-left"></i><a onclick="javascript:window.location.reload();" class="font-weight-bold" role="button">Back</a></div> <?php $offers_data = json_decode($p_data['offers'], true); if(!empty($offers_data)) { foreach ($offers_data as $offer_data) { ?> <div class="col-md-4 p-0"> <div class="mr-2 mb-2 single_offer" id="<?php echo @$offer_data['offer_qty'];?>" offer_product_name="<?php echo @$offer_data['product_name'];?>" style="border: 2px solid #f3e7e0; cursor: pointer;"> <h6 class="p-1" style="background-color: #f3e7e0; font-weight:600;"><?php echo @$offer_data['offer_title'];?></h6> <div class="p-1"> <?php if($offer_data['offer_image']!=""){ ?> <img src="admin/img/offer_image/<?php echo @$offer_data['offer_image']; ?>" style="width: 50px;" alt=""> <?php } ?> <?php echo @$offer_data['offer_discription'];?> </div> </div> </div> <?php } } ?> </div>--> <script> $(".single_offer").click(function () { var offer_qty = $(this).attr("id"); var offer_product_name = $(this).attr("offer_product_name"); if (offer_product_name=="") { var newName = "<?php echo $p_data['p_name']; ?>"; }else{ var newName = offer_product_name; } var p_id = <?php echo $p_id;?>; var d_price = <?php echo $p_data['d_price'];?>; var p_tax = <?php if($p_data['gst'] > 0){echo $p_data['gst'];}else{echo '0';}?>; var price = <?php echo $p_data['price'];?>; // var strike_price = price*offer_qty; var st_price=parseInt(price)*parseInt(offer_qty); var strike_price="₹"+Math.round(st_price).toFixed(2); $.ajax({ type: "POST", url: "ajax_action.php", data: {offer_qty: offer_qty, p_id: p_id, d_price: d_price, p_tax: p_tax, price: price}, success: function(result) { // alert(result); $("._price_xyz").text(result.qty_amount); $("._price_gst").text(result.total_amount); $(".__off_major").text(result.you_save); $("#extra_discount").html(result.extra_discount); $(".strike_price").text(strike_price); $("#quantity").val(offer_qty); } }); $("#container .single_offer").removeClass("selected_offer"); $("#"+offer_qty).addClass("selected_offer"); $(".back").show(); }); </script> <?php $FLAG = FALSE; if($p_data['type'] == 1): $parrentID = $p_data['p_id']; $queryVarient = "SELECT * FROM product WHERE parrent='$parrentID'"; $productCategoryVar =$sel_obj->customeQryBuilder($queryVarient); else: $parrentID = $p_data['parrent']; $queryVarient = "SELECT * FROM product WHERE parrent='$parrentID'"; $productCategoryVar =$sel_obj->customeQryBuilder($queryVarient); endif; $allcategory = array(); foreach($productCategoryVar as $keyVar=>$valueVar){ $FLAG = TRUE; } ?> <?php if($FLAG == TRUE){ ?> <div class="verntsec"> <div class="varboxt"> <h6> Variants </h6> <ul class="verulo"> <?php foreach($productCategoryVar as $keyVar=>$valueVar){ if($valueVar['p_id'] ==$p_data['p_id']) continue; ?> <li> <a href="<?=BASE_URL?>product-details/<?=$valueVar['p_id'];?>/<?=generateSlug($valueVar['p_name']);?>"> <span class="tool" data-tip="<?=$valueVar['p_name'];?>" tabindex="2"> <img src="<?=BASE_URL?>admin/upload/<?php echo $valueVar['p_img'];?>" alt="var-img"> </span> </a> </li> <?php } if($p_data['type']==2): $p_condition_main="`status`=1 AND `p_id`=".$p_data['parrent']; $brand_query_main=$sel_obj->display_rcd("product",$p_condition_main); if(is_array($brand_query_main) AND !empty($brand_query_main)) { foreach($brand_query_main as $p_data_main) { } } ?> <li> <a href="<?=BASE_URL?>product-details/<?=$p_data_main['p_id'];?>/<?=generateSlug($p_data_main['p_name']);?>"> <span class="tool" data-tip="<?=$p_data_main['p_name'];?>" tabindex="2"> <img src="<?=BASE_URL?>admin/upload/<?php echo $p_data_main['p_img'];?>" alt="var-img"> </span> </a> </li> <?php endif; ?> </ul> </div> </div> <?php } ?> <div class="container row mt-4" id="container"> <div class="col-md-12 p-0 back text-primary" style="display: none;"><i class="fa fa-arrow-left"></i><a onclick="javascript:window.location.reload();" class="font-weight-bold" role="button">Back</a></div> <?php $offers_data = json_decode($p_data['offers'], true); if(!empty($offers_data)) { foreach ($offers_data as $offer_data) { ?> <div class="col-md-4 p-0"> <div class="mr-2 mb-2 single_offer" id="<?php echo @$offer_data['offer_qty'];?>" offer_product_name="<?php echo @$offer_data['product_name'];?>" style="border: 2px solid #f3e7e0; cursor: pointer;"> <h6 class="p-1" style="background-color: #f3e7e0; font-weight:600;"><?php echo @$offer_data['offer_title'];?></h6> <div class="p-1"> <?php if($offer_data['offer_image']!=""){ ?> <img src="<?=BASE_URL?>admin/img/offer_image/<?php echo @$offer_data['offer_image']; ?>" style="width: 50px;" alt=""> <?php } ?> <?php echo @$offer_data['offer_discription'];?> </div> </div> </div> <?php } } ?> </div> <script> $(".single_offer").click(function () { var offer_qty = $(this).attr("id"); var offer_product_name = $(this).attr("offer_product_name"); if (offer_product_name=="") { var newName = "<?php echo $p_data['p_name']; ?>"; }else{ var newName = offer_product_name; } var p_id = <?php echo $p_id;?>; var d_price = <?php echo $p_data['d_price'];?>; var p_tax = <?php if($p_data['gst'] > 0){echo $p_data['gst'];}else{echo '0';}?>; var price = <?php echo $p_data['price'] ?? '0';?>; var st_price=parseInt(price)*parseInt(offer_qty); var strike_price="₹"+Math.round(st_price).toFixed(2); $.ajax({ type: "POST", url: "<?=BASE_URL?>ajax_action.php", data: {offer_qty: offer_qty, p_id: p_id, d_price: d_price, p_tax: p_tax, price: price}, success: function(result) { // alert(result); $("._price_xyz").html("<s>"+ result.qty_amount+"</s>   "+result.total_amount); $("._price_gst").text(result.total_amount); $(".__off_major").text(result.you_save); $("#extra_discount").html(result.extra_discount); $(".strike_price").text(strike_price); $("#quantity").val(offer_qty); } }); // alert(offer_qty); $("#container .single_offer").removeClass("selected_offer"); $("#"+offer_qty).addClass("selected_offer"); $(".back").show(); }); </script> <!-- -------- Recommendation Note ---- --> <?php if($p_data['admin_recommendation']!=""){ ?> <div class="remesk" > <h6 class="font-weight-bold">Recommended by category : </h6> <div class=" "> <?php echo htmlspecialchars_decode(stripslashes($p_data['admin_recommendation'])); ?> </div> <?php if($p_data['admin_star']>0){ ?> <div class=""> <?php for($x=1;$x<=$p_data['admin_star'];$x++) { echo '<span class="font-17 fa fa-star star checked_rec"></span>'; } if (strpos($p_data['admin_star'],'.')) { echo '<span class="font-17 fa fa-star-half-o star checked_rec"></span>'; $x++; } while ($x<=5) { echo '<span class="font-17 fa fa-star-o star"></span>'; $x++; } ?> </div> <?php } ?> </div> <?php } ?> <!-- ----------------------------------------- --> <div class="quantiy"> <?php if($p_data['buyType'] ==1): ?> <label>Quantity</label> <div class="alqntbo"> <div class="plumin"> <!-- <input type="number" id="quantity" value="1" pattern="^[0-9]" title='Only Number' min="1" step="1"/> --> <input id='quantity' type='number' min='1' value="1" > <button class="incrbtn1" onclick="increment()">+</button> <button class="incrbtn2" onclick="decrement()">-</button> </div> <div class="intok"> <?php endif;?> <?php if(intval($p_data['quan_available']>10)) { ?> <span>In Stock </span> <?php }elseif (intval($p_data['quan_available']<=10) && intval($p_data['quan_available']>0)) { ?> <span>In Stock (Only <?php echo $p_data['quan_available']; ?> left)</span> <?php }else{ ?> <span>Out of Stock</span> <?php } ?> </div> </div> </div> <div class="payment__btn "> <!-- <a href="#" class="_buy_nowPayment">+ Add To Cart</a> --> <?php if($p_data['buyType'] ==1): ?> <div class="acrthrt"> <div class="pro-details-cart1 btn-hovers shop_btns"> <?php if($p_data['d_price']<1 || intval($p_data['quan_available']<1)){ ?> <a class="btn btnadct disabled"> + Add To Cart</a></a> <?php }else{ ?> <a class="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 } ?> </div> <!--<span class="wihbox">--> <!-- <i class="far fa-heart"></i>--> <!--</span>--> </div> <div class="pro-details-cart1 bublosn btn-hovers shop_btns"> <?php if($p_data['d_price']<1 || intval($p_data['quan_available']<1)){ ?> <a class="btn btn-buy disabled"> Buy Now </a> <?php }else{ ?> <a href="javascript:;" class="btn btn-buy add_cart_p_details" data-p_id="<?php echo $p_id;?>" data-r_price="<?php echo $p_data['price'];?>" data-d_price="<?php echo $p_data['d_price']?>" data-p_code="<?php echo $p_data['p_code'];?>" data-temp_id="<?php echo $temp_session_id;?>" data-p_name="<?php echo $p_data['p_name'];?>" data-img="<?php echo $p_data['p_img'];?>" data-gst="<?php echo $p_data['gst'];?>" data-shipping_price="<?php echo $p_data['shipping_price'];?>" data-packaging_price="<?php echo $p_data['packaging_price'];?>" data-buy="1"> Buy Now </a> <?php } ?> </div> <?php else:?> <div class="pro-details-cart btn-hover"> <?php if($p_data['d_price']<1 || intval($p_data['quan_available']<1)){ ?> <a class="btn btn-buy disabled"> Buy Now </a> <?php }else{ ?> <a href="<?=BASE_URL?>enquiry-now.php?product=<?=base64_encode($p_data['p_id'])?>" class="btn btn-buy" > Enqiry Now </a> <?php } ?> </div> <?php endif;?> </div> <br> <div class="shotdec" > <h5>Description</h5> <?php echo $p_data['short_desc'];?> </div> <br> <div class="ukp-desc"> <?php if($p_data['p_desc']!='') { ?> <b>About this item</b><br> <div class="table-responsive ukp_table mt-2"> <?php echo htmlspecialchars_decode(stripslashes($p_data['p_desc'])); ?> </div> <?php } ?> <div class="size_div"> <?php if($p_data['length']>0){ ?> <div class="d-flex flex-row bd-highlight mb-3"> <div class="bd-highlight"><b>Packing Size : </b></div> <div class="ml-3 bd-highlight"> <span><?php echo $p_data['length']. " x " .$p_data['breadth']. " x " .$p_data['height']. " " .$p_data['size_unit'];?></span> </div> </div> <?php } ?> </div> </div> <div class="ukp-desc"> <!--<h5>--> <!-- Product Details--> <!--</h5>--> <?php echo html_entity_decode($p_data['add_information']);?> </div> <div class="ukp-desc"> <h5> Delivery Timing </h5> <?php echo html_entity_decode($p_data['delivery']);?> </div> <div class="__best_services mt-3 text-center"> <ul class="list-unstyled d-flex _del_very"> <?php if($p_data['d_estimate_time']!=''){ ?> <li><img src="<?=BASE_URL?>assets/images/delivery.png"><br><?php echo $p_data['d_estimate_time'];?></li> <?php } ?> <li><img src="<?=BASE_URL?>assets/images/replacement.png"><br>9 Days Replacement Policy</li> <li><img src="<?=BASE_URL?>assets/images/cod.png"><br>Cod Available</li> <li><img src="<?=BASE_URL?>assets/images/emi_card.png"><br>EMI Available</li> </ul> </div> </div> </div> </div> </div> </section> <script> function increment() { document.getElementById('quantity').stepUp(); } function decrement() { document.getElementById('quantity').stepDown(); } </script> <section class="mb-5 pb-4 mt-5"> <div class="container-fluid"> <div class="row"> <div class="col-md-7 mb-4"> <!-- ============= Questions & Answers ===================== --> <div class="container"> <h5 class="font-weight-bold"><u>Frequently Ask Questions</u> <!-- <span class="ml-5"> <?php if($checksession){ ?> <button class="btn btn-info btn-xs" id="question_button">Ask a Question</button> <?php }else{ ?> <a class="btn btn-info btn-xs" href="login.php">Ask a Question</a> <?php } ?> </span> --> </h5> <div class="p-2"> <div class="mt-4 question" id="sms_ques"></div> <form method="post" class="form-inline" action="" id="question_box" style=""> <input type="text" class="form-control mb-2 mr-2 question" id="question" placeholder="Type your question here"> <?php if($checksession){ ?> <button type="button" name="post_question" id="post_question" class="btn btn-info mb-2" value="1">Post</button> <?php }else{ ?> <a class="btn btn-info mb-2" href="<?=BASE_URL?>login.php">Post</a> <?php } ?> </form> <div class="mb-2" id="new_ques"></div> <?php $question_condition="`question`!='' AND product_id='".$p_data['p_id']."'"; $question_query=$sel_obj->display_rcd("tbl_faq",$question_condition); if(is_array($question_query) AND !empty($question_query)) { $q_n = 1; foreach($question_query as $question_data) { ?> <div class="mb-3"> <p><b>Question <?php echo $q_n++; ?> : </b><span><?php echo $question_data['question']; ?></span> <?php if(isset($_GET['secret_code']) && base64_decode($_GET['secret_code'])=="Rohan"){ ?> <a href="<?php echo $_SERVER[REQUEST_URI]; ?>&&del_ques=<?php echo $question_data['id']; ?>" onclick="return confirm('Do you want to delete?')" class="btn text-danger btn-sm"><i class="fa fa-trash" aria-hidden="true"></i></a> <?php } ?> </p> <p><b>Answer : </b><span><?php echo $question_data['answer']; ?></span> <?php if(isset($_GET['secret_code']) && base64_decode($_GET['secret_code'])=="Rohan"){ ?> <button class="btn text-primary btn-sm" id="answer_button<?php echo $question_data['id']; ?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></button> <?php } ?> </p> <div id="sms_ans<?php echo $question_data['id']; ?>"></div> <?php if($_GET['reply_ques']==$question_data['id']){ $display = 'block';}else{ $display = 'none';} ?> <form method="post" class="form-inline" action="" id="answer_box<?php echo $question_data['id']; ?>" style="display: <?php echo $display; ?>;"> <!-- <input type="text" class="form-control mb-2 mr-2 question" id="answer" placeholder="Post your answer here"> --> <textarea class="form-control mb-2 mr-2 question" id="answer<?php echo $question_data['id']; ?>" placeholder="Post your answer here"><?php echo stripslashes($question_data['answer']); ?></textarea> <button type="button" name="post_answer" id="post_answer<?php echo $question_data['id']; ?>" class="btn btn-info mb-2" value="1">Post</button> </form> <script> $(document).ready(function(){ $("#answer_button<?php echo $question_data['id']; ?>").click(function(){ $("#answer_box<?php echo $question_data['id']; ?>").toggle(); }); }); </script> <!-- -------- Post Answer ---------- --> <script type="text/javascript"> $('#post_answer<?php echo $question_data['id']; ?>').click(function(){ var id = <?php echo $question_data['id']; ?>; var answer = $('#answer<?php echo $question_data['id']; ?>').val(); var post_answer = $('#post_answer<?php echo $question_data['id']; ?>').val(); //alert(id+answer); exit(); $.ajax({ type:'post', url:"<?=BASE_URL?>ajax_action.php", data:{answer:answer, id:id, post_answer:post_answer}, success: function(returndata){ $('#sms_ans<?php echo $question_data['id']; ?>').html(returndata); } }); /*---------- Hide Alert ----------*/ window.setTimeout(function() { $(".alert").fadeTo(1000, 0).slideUp(1000, function(){ $(this).remove(); /*------Refresh Page------------*/ location.reload(true); /*-------------------------------*/ }); }, 2000); }) </script> <!-- _----------------------- --> </div> <?php } } ?> </div> </div> <!-- -----Post Question --------------- --> <script type="text/javascript"> $('#post_question').click(function(){ var user_id = $('#user_id').val(); var product_id = $('#product_id').val(); var question = $('#question').val(); var post_question = $('#post_question').val(); var reply_url = "<?php echo $base_url; ?>product_details.php?p_id=<?php echo $p_id;?>&&cat_id=<?php echo $cat_id;?>"; //alert(reply_url); exit(); // alert(question); $.ajax({ type:'post', url:"<?=BASE_URL?>ajax_action.php", data:{question:question, product_id:product_id, user_id:user_id, post_question:post_question, reply_url:reply_url}, success: function(returndata){ $('#sms_ques').html(returndata); } }); /*---------- Hide Alert ----------*/ window.setTimeout(function() { $(".alert ").fadeTo(1000, 0).slideUp(1000, function(){ $(this).remove(); /*------Refresh Page------------*/ location.reload(true); /*-------------------------------*/ }); }, 2000); }) </script> <script> $(document).ready(function(){ $("#question_button").click(function(){ $("#question_box").toggle(); }); }); </script> <!-- ======================================================= --> </div> <div class="col-md-5"> <?php //======== Rating Sustem ================== // $rating_all_query = []; $p_id = $p_data['p_id']; $ratin_all_condintion=" status=1 AND `product_id`=".$p_id; $rating_all_query=$sel_obj->display_rcd("tbl_rating",$ratin_all_condintion); $rating_me_condition="`user_id`=$checksession AND `product_id`=".$p_id; $rating_me_query=$sel_obj->display_rcd("tbl_rating",$rating_me_condition); if(is_array($rating_me_query) AND !empty($rating_me_query)) { foreach($rating_me_query as $rating_me_data) { } } if ($rating_me_data!=0) { for ($i=1; $i <= $rating_me_data['rating']; $i++) { $rating_array[] = $i; } } // echo $rating_all_query ; die(); //print_r($rating_all_query); die(); //------- No of stars --------- $rating_numbers = 0; $average_rating = 0; $count_all_rating = 0; $rating_5 = []; $rating_4 = []; $rating_3 = []; $rating_2 = []; $rating_1 = []; if($rating_all_query!=0){ $count_all_rating = count($rating_all_query); foreach($rating_all_query as $rating_all){ $rating_numbers += $rating_all['rating']; if ($rating_all['rating']==1) { $rating_1[] = $rating_all['user_id']; } if ($rating_all['rating']==2) { $rating_2[] = $rating_all['user_id']; } if ($rating_all['rating']==3) { $rating_3[] = $rating_all['user_id']; } if ($rating_all['rating']==4) { $rating_4[] = $rating_all['user_id']; } if ($rating_all['rating']==5) { $rating_5[] = $rating_all['user_id']; } } $average_rating = $rating_numbers/count($rating_all_query); $star_5_percent = count($rating_5)*100 / count($rating_all_query); $star_4_percent = count($rating_4)*100 / count($rating_all_query); $star_3_percent = count($rating_3)*100 / count($rating_all_query); $star_2_percent = count($rating_2)*100 / count($rating_all_query); $star_1_percent = count($rating_1)*100 / count($rating_all_query); } // echo count($rating_all_query); die(); //======================================== ?> <!-- ================= List of Ratings =================== --> <div class="p-4 proratig" > <span class="h5">Overall Rating : </span> <!-- <span class="fa fa-star checked"></span> --> <?php for($x=1;$x<=$average_rating;$x++) { echo '<span class="font-17 fa fa-star star checked"></span>'; } if (strpos($average_rating,'.')) { echo '<span class="font-17 fa fa-star-half-o star checked"></span>'; $x++; } while ($x<=5) { echo '<span class="font-17 fa fa-star-o star"></span>'; $x++; } ?> <p><?php echo number_format($average_rating, 1, '.', ''); ?> average based on <?php echo $count_all_rating; ?> reviews.</p> <hr style="border:3px solid #f1f1f1"> <style> .bar-5 {width: <?php echo ($star_5_percent!=0)? $star_5_percent : 0; ?>%; height: 18px; background-color: #04AA6D;} .bar-4 {width: <?php echo ($star_4_percent!=0)? $star_4_percent : 0; ?>%; height: 18px; background-color: #2196F3;} .bar-3 {width: <?php echo ($star_3_percent!=0)? $star_3_percent : 0; ?>%; height: 18px; background-color: #00bcd4;} .bar-2 {width: <?php echo ($star_2_percent!=0)? $star_2_percent : 0; ?>%; height: 18px; background-color: #ff9800;} .bar-1 {width: <?php echo ($star_1_percent!=0)? $star_1_percent : 0; ?>%; height: 18px; background-color: #f44336;} </style> <div class="row"> <div class="side"> <div>5 star</div> </div> <div class="middle"> <div class="bar-container"> <div class="bar-5"></div> </div> </div> <div class="side right"> <div><?php echo count($rating_5); ?></div> </div> <div class="side"> <div>4 star</div> </div> <div class="middle"> <div class="bar-container"> <div class="bar-4"></div> </div> </div> <div class="side right"> <div><?php echo count($rating_4); ?></div> </div> <div class="side"> <div>3 star</div> </div> <div class="middle"> <div class="bar-container"> <div class="bar-3"></div> </div> </div> <div class="side right"> <div><?php echo count($rating_3); ?></div> </div> <div class="side"> <div>2 star</div> </div> <div class="middle"> <div class="bar-container"> <div class="bar-2"></div> </div> </div> <div class="side right"> <div><?php echo count($rating_2); ?></div> </div> <div class="side"> <div>1 star</div> </div> <div class="middle"> <div class="bar-container"> <div class="bar-1"></div> </div> </div> <div class="side right"> <div><?php echo count($rating_1); ?></div> </div> </div> </div> <!-- ============= User Rating System ==================== --> <div class="container mt-4"> <div class="well well-sm"> <div class="text-right"> <?php if($checksession){ ?> <?php if($rating_me_data==0){ ?> <button class="btn btn-info" id="rating_button">Write a Review</button> <?php }else{ ?> <button class="btn btn-info" id="rating_button">Update your Review</button> <?php } ?> <?php }else{ ?> <a class="btn btn-info" href="<?=BASE_URL?>login.php">Write a Review</a> <?php } ?> </div> <div class="mt-4" id="msm_rate"> <!-- <?php echo @$message; ?> --> </div> <div class="row" id="rating_box" style="display: none;"> <div class="col-md-12"> <form class="form-group" action="" method="post"> <div class="star_rating"> <p>Rate this product</p> <fieldset class="rating star ukpp"> <input type="radio" id="star5" name="rating" value="5" <?php echo ($rating_me_data['rating']==5)?' checked':''; ?>/><label class = "full <?php echo (in_array(5, $rating_array))?' checked_radio':''; ?>" for="star5"></label> <input type="radio" id="star4" name="rating" value="4" <?php echo ($rating_me_data['rating']==4)?' checked':''; ?> /><label class = "full <?php echo (in_array(4, $rating_array))?' checked_radio':''; ?>" for="star4"></label> <input type="radio" id="star3" name="rating" value="3" <?php echo ($rating_me_data['rating']==3)?' checked':''; ?> /><label class = "full <?php echo (in_array(3, $rating_array))?' checked_radio':''; ?>" for="star3"></label> <input type="radio" id="star2" name="rating" value="2" <?php echo ($rating_me_data['rating']==2)?' checked':''; ?> /><label class = "full <?php echo (in_array(2, $rating_array))?' checked_radio':''; ?>" for="star2"></label> <input type="radio" id="star1" name="rating" value="1" <?php echo ($rating_me_data['rating']==1)?' checked':''; ?> /><label class = "full <?php echo (in_array(1, $rating_array))?' checked_radio':''; ?>" for="star1"></label> </fieldset> </div> <script> $(function(){ $('.ukpp').click(function(){ $('label.checked_radio').removeClass('checked_radio'); }); }); </script> <div class="form-group"> <input type="hidden" id="user_id" value="<?php echo $checksession; ?>"> <input type="hidden" id="product_id" value="<?php echo $p_data['p_id']; ?>"> <textarea class="form-control" name="comment" id="comment" aria-label="With textarea" placeholder="Enter your Comment here....."><?php if(isset($rating_me_data['comment'])){ echo $rating_me_data['comment']; } ?></textarea> </div> <div class="text-right"> <div class="stars starrr" data-rating="0"></div> <button class="btn btn-success btn-sm" type="button" name="submit_rating" id="submit_rating" value="1">Submit</button> </div> </form> </div> </div> </div> </div> <script type="text/javascript"> $('#submit_rating').click(function(){ var rating_value = $('input[name="rating"]:checked').val(); var user_id = $('#user_id').val(); var product_id = $('#product_id').val(); var comment_value = $('#comment').val(); var submit_rating = $('#submit_rating').val(); //alert(submit_rating); $.ajax({ type:'post', url: "<?=BASE_URL?>action.php", data:{rating:rating_value, comment:comment_value, product_id:product_id, user_id:user_id, submit_rating:submit_rating}, success: function(returndata){ //alert(returndata); $('#msm_rate').html(returndata); } }); /*---------- Hide Alert ----------*/ window.setTimeout(function() { $(".alert").fadeTo(1000, 0).slideUp(1000, function(){ $(this).remove(); /*------Refresh Page------------*/ location.reload(true); /*-------------------------------*/ }); }, 2000); }) </script> <!-- ============== Rating List ================== --> <div class="container mt-3" id="some-list-1"> <?php foreach($rating_all_query as $rating ){ ?> <?php $get_user_condition="`id`=".$rating['user_id']; $get_user_query=$sel_obj->display_rcd('tblusers',$get_user_condition); if(is_array($get_user_query) || !empty($get_user_query)) { foreach ($get_user_query as $get_user_data ) { } } ?> <div class="media border p-3 mb-2"> <span style="width:40px; height: 40px; padding: 8px 14px;" class="rounded-circle btn-secondary mr-2"><?php echo substr(trim(ucfirst($get_user_data['FullName'])), 0, 1); ?> </span> <div class="media-body"> <h6> <?php echo $get_user_data['FullName']; ?> <i><small style="font-style:italic;">(<?php echo $rating['created_at'] ?>)</small></i></h6> <div> <?php for($x=1;$x<=$rating['rating'];$x++) { echo '<span class="fa fa-star star checked"></span>'; } if (strpos($rating['rating'],'.')) { echo '<span class="fa fa-star-half-o star checked"></span>'; $x++; } while ($x<=5) { echo '<span class="fa fa-star-o star"></span>'; $x++; } ?> </div> <p><?php echo $rating['comment'] ?></p> </div> </div> <?php } ?> </div> <script src="<?=BASE_URL?>assets/js/jquery.simpleLoadMore.js"></script> <script> $('#some-list-1').simpleLoadMore({ item: '.media', count: 1, itemsToLoad: 1, easing: 'slide' }); </script> <script> $(document).ready(function(){ $("#rating_button").click(function(){ $("#rating_box").toggle(); }); }); </script> <script type="text/javascript"> $("label").click(function(){ $(this).parent().find("label").css({"background-color": "#dbe1e3"}); $(this).css({"background-color": "#20bec7"}); $(this).nextAll().css({"background-color": "#20bec7"}); }); $(".star label").click(function(){ $(this).parent().find("label").css({"color": "#dbe1e3"}); $(this).css({"color": "#20bec7"}); $(this).nextAll().css({"color": "#20bec7"}); $(this).css({"background-color": "transparent"}); $(this).nextAll().css({"background-color": "transparent"}); }); </script> <!-- ======================================== --> </div> </div> </div> </section> <?php $relatedProdutdData = $p_data['alter_related_prd']; $combo_list = json_decode($p_data['combo_product_ids']); /*---------- All Combo ---------*/ array_unshift($combo_list , $p_data['p_id']); // print_r($combo_list); $combo_product_ids_json = json_encode($combo_list); if (!empty($combo_list)) { ?> <div class="container mt-5 cosecb mobcombo"> <div class="container row" > <div class="col-md-12 mt-2"> <h6 class="font-weight-bold text-left">Combo Products</h6> </div> <?php $cn = 0; $combo_price = 0; foreach($combo_list as $combo){ $p_condition="`status`=1 AND `p_id`=".$combo; $combo_query=$sel_obj->display_rcd("product",$p_condition); foreach($combo_query as $combo_data) {} $combo_price += $combo_data['d_price']; ?> <div class="col-lg-3 col-md-3 col-sm-3 col-xs-4 col-6 mb-2"> <?php if($cn>0){ ?> <span style="position: absolute; top: 40%; left: 0; font-size:32px;"> + </span> <?php } ?> <a href="<?=BASE_URL?>product_details.php?p_id=<?php echo $combo_data['p_id']; ?>&&cat_id=<?php echo $cat_id;?>" <?php if($cn==0){?> style="pointer-events: none; color: #000;" <?php } ?>> <img src="<?=BASE_URL?>admin/upload/<?php echo $combo_data['p_img'];?>" class="img-fluid" alt=""> </a> </div> <?php $cn++; } ?> <div class="col-md-12 mb-2 text-left"> <?php $cn2 = 0; foreach($combo_list as $combo2){ $p_condition2="`status`=1 AND `p_id`=".$combo2; $combo_query2=$sel_obj->display_rcd("product",$p_condition2); foreach($combo_query2 as $combo_data2) {} ?> <p> <b><?=$cn2+1?> : </b> <a href="<?=BASE_URL?>product_details.php?p_id=<?php echo $combo_data2['p_id']; ?>&&cat_id=<?php echo $cat_id;?>" <?php if($cn2==0){?> style="pointer-events: none; color: #000;" <?php } ?>><?php echo $combo_data2['p_name']; ?></a> <span class="text-maroon">₹<?php echo $combo_data2['d_price']; ?></span> </p> <?php $cn2++; } ?> </div> <div class="col-md-7 mb-2 text-left"> <p>Total price: <b class="text-maroon">₹<?php echo $combo_price; ?></b></p> <!-- <button class="btn btn-warning btn-sm pt-1 pb-1"> Add all three to Cart </button> --> <a href="javascript:;" class="btn btn-warning btn-sm pt-1 pb-1 add_cart_p_details_combo" data-combo_product_ids="<?php echo $combo_product_ids_json;?>" data-temp_id="<?php echo $temp_session_id;?>" data-buy="0" data-combo="1">+ Add all to Cart </a> </div> </div> </div> <?php } ?> <?php include_once("same_category.php"); ?> <hr> <section class="section" id="after_related_prd"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="reppse"> <?php echo html_entity_decode($relatedProdutdData);?> </div> </div> </div> </section> <!-- Recent product area end --> <!-- Footer Area start --> <?php include("footer.php");?> <?php } else { url("index.php"); } ?> <style> .shop_btns{ } .shop_btns a{ display:block; text-align:center; } </style>