shell bypass 403

GrazzMean Shell

: /home/gutlooks/www/application/views/home/ [ drwxr-xr-x ]
Uname: Linux server.thebazaar99.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64
Software: Apache
PHP version: 8.3.32 [ PHP INFO ] PHP os: Linux
Server Ip: 163.227.92.254
Your Ip: 216.73.217.24
User: gutlooks (1003) | Group: gutlooks (1005)
Safe Mode: OFF
Disable Function:
exec,passthru,shell_exec,system

name : product-detail.php
<?php $this->load->view('home/header');?>
 
 <?php
 $total_cnt=0;
// print_r($product_detail);
if($product_detail==true){
  foreach($product_detail as $row){
    $product_id = $row->id;
    $main_cat_id = $row->main_cat_id;
    $sub_cat = $row->sub_cat;
    $cat_id = $row->cat_id;
    $title = $row->title;
    $pack_type = $row->pack_type;
    $orign = $row->origin;
    $sku = $row->sku;
    $hsn_no = $row->hsn_no;
    $tax_per = $row->tax_per;
    $description = $row->description;
    $pro_short = $row->pro_short;
    $video_link = $row->video_link;
    $color_list = $row->color_list;
    // $stock = $row->stock;
//    $category = $row->cat_name;
    $total_cnt=$row->total_cnt;
    $total_s1=$row->total_s1;
    $total_s2=$row->total_s2; 
    $total_s3=$row->total_s3; 
    $total_s4=$row->total_s4; 
    $total_s5=$row->total_s5; 
  }
  
 $color_id = json_decode($color_list);
//  $price_res = $this->Curd->table_order_by('tb_product_price',array("product_id"=>$product_id),'reg_sale_price','desc','1');

  $gallery = $this->Curd->fetch_where_order("tb_gallery",array("*"),array("product_id"=>$product_id),"ASC");
}
//  
 $all_option='';
if (in_array("1", $color_id))
  {
//   $price_weight = $this->Curd->fetch_where_order_dynamic("tb_product_price",array("*"),array("product_id"=>$product_id),"ASC");
    $price_weight = $this->Curd->product_color_price_list($product_id,'1','','ASC'); 
//  print_r($price_weight);
    $rrk= count($price_weight);
  //  echo "KKR";
    $ik=0;
    foreach($price_weight as $p_row) {
        $ik++;$sle="";
  //      print_r($p_row);
        if($ik==$rrk) { $sle="selected";}
      $all_option.='<option '.$sle.' value="'.$p_row->weight.'&&'.$p_row->price.'&&'.$p_row->reg_discount.'&&'.$p_row->reg_sale_price.'&&'.$p_row->id.'&&'.$p_row->color_name.'">'.$p_row->weight.'</option>';
  $price_res = $p_row;

  } 
}
else{
    $price_res = $this->Curd->product_color_price_list($product_id,'','1','desc'); 
//     $price_res = $this->Curd->table_row_order_by('tb_product_price',array("product_id"=>$product_id),'id','desc','1'); 
//     print_r($price_res);
//     echo $this->db->last_query();
        $price_weight = $this->Curd->product_color_price_list($product_id,$price_res->color_id,'','asc'); 
//        echo $this->db->last_query();
//      $price_weight = $this->Curd->fetch_where_order_dynamic("tb_product_price",array("*"),array("product_id"=>$product_id,"color_id"=>$price_res->color_id),"ASC");
       $rrk= count($price_weight);
//  echo "KKR";
    $ik=0;
    foreach($price_weight as $p_row) {
        $ik++;$sle="";
  //      print_r($p_row);
        if($ik==$rrk) { $sle="selected";}
              $all_option.='<option '.$sle.' value="'.$p_row->weight.'&&'.$p_row->price.'&&'.$p_row->reg_discount.'&&'.$p_row->reg_sale_price.'&&'.$p_row->id.'&&'.$p_row->color_name.'">'.$p_row->weight.'</option>';
//          $price_res = $p_row;

          }
  }
 

                         $stock=0;
if($price_res->qty){
  $stock = $price_res->qty;
}
  ?>
 <section class="product-page">
        <div class="container-lg">
          <div class="row g-3 g-xl-4 view-product">
            <div class="col-md-7">
         <div class="slider-box sticky off-50 position-sticky">
                <div class="row g-2">
                  <div class="col-2">
                    <div class="thumbnail-box">
                      <div class="swiper thumbnail-img-box thumbnailSlider2">
                        <div class="swiper-wrapper">
                          
                            <?php
                               if($gallery==true){
                                foreach($gallery as $g_row){?>
                               <div class="swiper-slide">
                            <img src="<?=base_url('uploads/gallery/'.$g_row->name)?>" alt="img" />
                          </div>
                                 
                              <?php   
                                }
                              }?> 
                               <?php
                          if($video_link){
                          ?>
                        <div class="swiper-slide">
                <img src="http://img.youtube.com/vi/<?=$video_link;?>/default.jpg" alt="img" />
                        </div>
                          <?php } ?>

                        </div>
                           
                      </div>
                        
                    </div>
                  </div>

                  <div class="col-10 ratio_square">
                    <div class="swiper mainslider2">
                      <div class="swiper-wrapper">
                         
                              <?php
                               if($gallery==true){
                                foreach($gallery as $g_row){?>
                                <div class="swiper-slide">
                                 <img class="bg-img" src="<?=base_url('uploads/gallery/'.$g_row->name)?>" alt="img" />
                               </div>
                               
                                 
                              <?php   
                                }
                              }?> 
                         <?php
                          if($video_link){
                          ?>
                        <div class="swiper-slide">
                            <iframe style="width: 100%; height: 100%;" title="" alt=""  frameborder="0" allow="autoplay; encrypted-media" allowfullscreen="" src="https://www.youtube.com/embed/<?=$video_link;?>"></iframe>
                        </div>
                          <?php } ?>
                           <div class="swiper-button-prev"></div>
            <div class="swiper-button-next"></div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
<!--===============-->
 
<!--===============-->
            <div class="col-md-5">
<!--                <div class="row">
                    <div class="col-md-12">
                       
                    </div>
                </div>-->
                <div class="row">
                    <div class="col-md-12">
                        <div class="product-detail-box">
                <div class="product-option">
                  <h2><?=$title;?></h2>
                  <?php
                  $total_pert=0;
                $rat='<li><i data-feather="star"></i></li><li><i data-feather="star"></i></li><li><i data-feather="star"></i></li><li><i data-feather="star"></i></li><li><i data-feather="star"></i></li>';   
                if($total_cnt>0){
    $tatal_rat = $tatal_rat1 = $tatal_rat2 =$tatal_rat3 =$tatal_rat4 =$tatal_rat5=0;
    if($total_s1>0){ $tatal_rat1 = $total_s1 * 1; }
    if($total_s2>0){ $tatal_rat2 = $total_s2 * 2; }
    if($total_s3>0){ $tatal_rat3 = $total_s3 * 3; }
    if($total_s4>0){ $tatal_rat4 = $total_s4 * 4; }
    if($total_s5>0){ $tatal_rat5 = $total_s5 * 5; }
     $tatal_rat = $tatal_rat1+$tatal_rat2+$tatal_rat3+$tatal_rat4+$tatal_rat5;
//    echo "<br>";
     $total_pert = round($tatal_rat/$total_cnt,2);
    $rat='';
    for($ii=1;$ii<6;$ii++){
        if($ii<=$total_pert){
              $rat .= '<li><i class="fill" data-feather="star"></i></li>'; 
        }else{
              $rat .='<li><i data-feather="star"></i></li>'; 
        }
    }
}  
             
                  ?>
                  <div class="option rating-option">
                    <ul class="rating p-0">
                        <?=$rat;?>
                    </ul>
                    <span><?=$total_cnt;?> Rating</span>
                  </div>
              
                                <?php
                             
                                $prices='';
                              
                                    if($price_res) {
//                                        print_r($price_res);
                                    
        $sd3='<a href="javascript:void(0)" class="btn btn-solid btn-sm mb-line   cart_btn btt_'.$row->id.'"  id="'.$row->id.'">Add To Cart <i class="arrow"></i> </a>';
                if($price_res->reg_sale_price==$price_res->price){
        $prices='<span>&#8377;'.$price_res->reg_sale_price.'</span>';
    }else{
       $prices='<span>&#8377;'.$price_res->reg_sale_price.'</span> <del>&#8377;'.$price_res->price.'</del>'; 
    }
                                } ?>
                  <div class="option price"><?=$prices;?></div>

                 
 <div class="option">
                    <p class="content-color"><?=$pro_short;?></p>
                  </div>
                  <div class="option-side">
                    
                    <div class="option">
                      <div class="title-box4">
                        <h4 class="heading">Quantity: <span class="bg-theme-blue"></span></h4>
                      </div>
                      <div class="plus-minus">
                        <i class="sub" data-feather="minus"></i>
                        <input type="number" id="prod_qty<?=$price_res->id?>" value="1" min="1" max="10" />
                        <i class="add" data-feather="plus"></i>
                      </div>
                    </div>
                     <?php
                     $color_name="None";
//                          print_r($color_id);
if (in_array("1", $color_id))
  {
      $color_name="None";
//  echo "Match found";
  }
else
  {
        $this->db->where_in('id',$color_id);
        $query1=$this->db->get('tb_colors');
        if($query1->num_rows()>0){
            ?>    <div class="right-pro-size mt-3">
                      <p>Color</p>
                      <select name="color" class="custom-select mb-3 colors"> 
                <?php
            foreach($query1->result() as $ro3w){
                  $sle2=""; if($price_res->color_id==$ro3w->id){
                        $color_name=$ro3w->name;
                      $sle2 ="selected";}
             
                echo'<option '.$sle2.' value="'.$ro3w->id.'">'.$ro3w->name.'</option>';
              }
            ?>
                </select>
            </div>
                                    <?php
                            }
                               
//  echo "Match not found";
  }
                     ?> 
                    <div class="right-pro-size mt-3">
                      <p>Size</p>
                      <select name="cars" class="custom-select mb-3 weight weight_data"> 
                          <?=$all_option;?>
                       </select>
                   </div>
                  </div>
<?php 
                       if($price_res) {
//                                        print_r($price_res);
                                    ?>
<input type="hidden" idd="<?=$price_res->id?>" id="data<?=$row->id?>" p_color_name="<?=$color_name;?>" p_color_id="<?=$price_res->color_id?>" id1="<?=$price_res->weight?>" id2="<?=$price_res->price?>" id3="<?=$price_res->reg_sale_price?>" id4="<?=$row->sku?>" id5="<?=$row->title?>" id6="<?=base_url('uploads/gallery/'.$gallery[0]->name)?>" id7="<?=$row->hsn_no?>" id8="<?=$row->tax_per?>">
 

        <?php } ?>
 

                  <div class="btn-group">
                      <?=$sd3;?>
                    <!--<a href="javascript:void(0)" class="btn-solid btn-sm addtocart-btn">Add To Cart </a>-->
                    <a href="javascript:void(0)" id="<?=$product_id;?>" class="btn-outline btn-sm wishlist-btn wishlist_btn">Add To Wishlist</a>
                  </div>
                  
                </div>
              </div>
                    </div>
                </div>
              
            </div>
          </div>

          <!-- Tabs Start -->
          <div class="description-box">
            <div class="row gy-4">
              <div class="col-12">
                <!-- Tabs Filter Start -->
                <ul class="nav nav-pills nav-tabs2 row-tab" id="pills-tab" role="tablist">
                  <li class="nav-item" role="presentation">
                    <button class="nav-link active" id="description-tab" data-bs-toggle="pill" data-bs-target="#description" type="button" role="tab" aria-controls="description" aria-selected="true">
                      Description
                    </button>
                  </li>
                  <?php
                  if($row->size_chart){
                    ?>
                    <li class="nav-item" role="presentation">
                    <button class="nav-link" id="specification-tab" data-bs-toggle="pill" data-bs-target="#specification" type="button" role="tab" aria-controls="specification" aria-selected="false">
                      Size Chart
                    </button>
                  </li>     
                    <?php 
                  }
                  ?>
                  <li class="nav-item" role="presentation">
                    <button class="nav-link" id="review-tab" data-bs-toggle="pill" data-bs-target="#review" type="button" role="tab" aria-controls="review" aria-selected="false">
                      Review
                    </button>
                  </li>
                </ul>
                <!-- Tabs Filter End -->
              </div>

              <div class="col-12">
                <!-- Tab Content Start -->
                <div class="tab-content" id="pills-tabContent">
                  <!-- Description Tab Content Start -->
                  <div class="tab-pane fade show active" id="description" role="tabpanel" aria-labelledby="description-tab">
                      <div class="details-product">
                          <?=$description;?>
                      </div>
                  </div>
                  <?php
                  if($row->size_chart){
                    ?>
                     <div class="tab-pane fade" id="specification" role="tabpanel" aria-labelledby="specification-tab">
                         <div class="specification-wrap">
                             <img src="<?=base_url('size_chart/'.$row->size_chart)?>" class="img-responsive" />
                         </div>      
                        </div>      
                    <?php
                  }
                  ?>
                  <!-- Description Tab Content End -->
                  <div class="tab-pane fade" id="review" role="tabpanel" aria-labelledby="review-tab">
                    <div class="review-section">
                      <div class="row gy-4 gy-md-5 g-4 g-xxl-5">
                        <div class="col-md-8 col-xxl-7 order-2 order-md-1">
                          <div class="review-left">
                            <div class="title-box4">
                              <h4 class="heading">Customers Review<span class="bg-theme-blue"></span></h4>
                            </div>
                            <div class="question-wrap">
                                <?php
$this->db->where('is_active','Y');
$this->db->where('product_id',$product_id);
$query2=$this->db->get('rating_review');
//echo $this->db->last_query();
        if($query2->num_rows()>0){
             foreach($query2->result() as $row4){
                                
                                ?>
                              <div class="comment-box">
                                <div class="img-box">
                                  <img src="<?=base_url('images/kandp.jpeg')?>" alt="<?=$row4->name;?>" />
                                </div>
                                <div class="avatar-content">
                                  <div class="name-box">
                                    <div class="user-info">
                                      <h5><i data-feather="user"></i><?=$row4->name;?></h5>
                                      <span> <i data-feather="clock"></i> <?=date('M d, Y',strtotime($row4->entry_date));?></span>
                                    </div>
                                    <div class="action-box ms-auto">
                                      <ul class="rating p-0 mb d-none d-xl-flex">
                                          <?php
        $rat1='<li><i data-feather="star"></i></li><li><i data-feather="star"></i></li><li><i data-feather="star"></i></li><li><i data-feather="star"></i></li><li><i data-feather="star"></i></li>';   
    $rat1="";
    for($iij=1;$iij<6;$iij++){
        if($iij<=$row4->rating){
              $rat1 .= '<li><i class="fill" data-feather="star"></i></li>'; 
        }else{
              $rat1 .='<li><i data-feather="star"></i></li>'; 
        }
    }
    echo $rat1;
                                          
                                          ?>
                                   
                                      </ul>
                                      <!--<a href="#replaySection" class="replay-btn"><i data-feather="corner-up-left"></i> Replay</a>-->
                                    </div>
                                  </div>
                                  <p><?=$row4->review;?></p>
                                </div>
                              </div>
             <?php }
        }
    ?>
                            </div>
                          </div>
                          <!-- Reply From Section Start -->
                          <?php  if(isset($_SESSION['user_id'])){ ?>
                          <div class="replay-form round-wrap-content top-space" id="replaySection">
                            <div class="title-box4">
                              <h4 class="heading">Leave a Comment<span class="bg-theme-blue"></span></h4>
                            </div>

                              <form action="<?=base_url('home/insert_product_review')?>" method="post" class="custom-form form-pill">
                              <div class="row g-3 g-sm-4">
                                <div class="col-sm-6">
                                    <?php
//                                    print_r($_SESSION);
                                     $user_id=$_SESSION['user_id'];
        $user_data = $this->db->query("select * from tb_user where id=$user_id")->row();
          $f_name = $user_data->first_name." ".$user_data->last_name;
        $emails = $user_data->email; 
                                    ?>
                                  <div class="input-box">
                                    <label for="name">Full Name</label>
                                    <input name="name" value="<?=$f_name;?>" id="name" type="text" class="form-control" />
                                  </div>
                                </div>

                                <div class="col-sm-6">
                                  <div class="input-box">
                                    <label for="email">Star Rating</label>
                                    <select name="rating"  class="form-control" >
                                    <option value="5"> 5 Star</option>
                                    <option value="4"> 4 Star</option>
                                    <option value="3"> 3 Star</option>
                                    <option value="2"> 2 Star</option>
                                    <option value="1"> 1 Star</option>
                                    </select>
                                  </div>
                                </div>

                                <div class="col-12">
                                  <div class="input-box">
                                    <label for="comment">Comments</label>
                                    <textarea class="form-control" name="review" id="comment" cols="30" rows="5"></textarea>
                                  </div>
                                </div>

                                <div class="col-12 text-end">
                                    <input type="hidden" name="product_id" value="<?=$product_id;?>" />
                                    <input type="hidden" name="product" value="<?=$title;?>" />
                                    <input type="hidden" name="email_id" value="<?=$emails;?>" /> 
                                  <button type="submit" name="submt" class="post-button btn btn-solid btn-sm mb-line">Post Comment <i class="arrow"></i></button>
                                </div>
                              </div>
                            </form>
                          </div>
                          <?php } ?>
                          <!-- Reply From Section End -->
                        </div>

                        <div class="col-md-4 col-xxl-5 order-1 order-md-2">
                            <?php
                              if($total_cnt>0){
                            ?>
                          <div class="review-right sticky">
                            <div class="customer-rating">
                              <div class="title-box4">
                                <h4 class="heading">Customers Review<span class="bg-theme-blue"></span></h4>
                              </div>

                              <div class="global-rating">
                                <div>
                                  <h5><?=$total_pert;?></h5>
                                </div>

                                <div>
                                  <h6>Average Ratings</h6>
                                  <ul class="rating p-0 mb">
                                      <?=$rat;?>
                                    <li>
                                      <span>(<?=$total_cnt;?>)</span>
                                    </li>
                                  </ul>
                                </div>
                              </div>

                              <ul class="rating-progess">
                                <li>
                                  <h5>5 Star</h5>
                                  <div class="progress">
                                    <div class="progress-bar" role="progressbar" style="width: <?=round($total_s5*100/$total_cnt)?>%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                                  </div>
                                  <h5><?=round($total_s5*100/$total_cnt)?>%</h5>
                                </li>
                                <li>
                                  <h5>4 Star</h5>
                                  <div class="progress">
                                    <div class="progress-bar" role="progressbar" style="width: <?=round($total_s4*100/$total_cnt)?>%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                                  </div>
                                  <h5><?=round($total_s4*100/$total_cnt)?>%</h5>
                                </li>
                                <li>
                                  <h5>3 Star</h5>
                                  <div class="progress">
                                    <div class="progress-bar" role="progressbar" style="width: <?=round($total_s3*100/$total_cnt)?>%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                                  </div>
                                  <h5><?=round($total_s3*100/$total_cnt)?>%</h5>
                                </li>
                                <li>
                                  <h5>2 Star</h5>
                                  <div class="progress">
                                    <div class="progress-bar" role="progressbar" style="width: <?=round($total_s2*100/$total_cnt)?>%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                                  </div>
                                  <h5><?=round($total_s2*100/$total_cnt)?>%</h5>
                                </li>
                                <li>
                                  <h5>1 Star</h5>
                                  <div class="progress">
                                    <div class="progress-bar" role="progressbar" style="width: <?=round($total_s1*100/$total_cnt)?>%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                                  </div>
                                  <h5><?=round($total_s1*100/$total_cnt)?>%</h5>
                                </li>
                              </ul>
                            </div>
                          </div>
                              <?php } ?>
                        </div>
                      </div>
                    </div>
                  </div>
                  <!-- Description Tab Content End -->
 
                </div>
                <!-- Tab Content End -->
              </div>
            </div>
          </div>
          <!-- Tabs End -->
        </div>
      </section>
      <!-- Product Section End -->

      <!-- New Arrived Section Start -->
      <section class="pt-0 ratio_asos">
        <div class="container-lg swiper-box">
          <div class="title-box4">
            <h4 class="heading font-2xl">Similar Products <span class="bg-theme-blue"></span></h4>
          </div>

          <div class="swiper product-slider">
            <div class="swiper-wrapper">
           
  <?php
   $this->db->select('p.*,tc.name AS main_cat_name');
                     $this->db->from('tb_product p');
   if($main_cat_id>0){ $this->db->where('p.main_cat_id',$main_cat_id);}
   if($cat_id>0){ $this->db->where('p.cat_id',$cat_id);}
   if($sub_cat>0){ $this->db->where('p.sub_cat',$sub_cat);}
   $this->db->join('tb_main_category tc', 'tc.id = p.main_cat_id', 'left');
$query3=$this->db->get();
//echo $this->db->last_query();
        if($query3->num_rows()>0){
             foreach($query3->result() as $f_row){
//  $rel_product =$this->Curd->inner_featured_Product("t1.main_cat_id=$main_cat_id"); 
//   foreach($rel_product as $f_row){
       if($f_row->id==$row->id){
           
       }else{
     
    $gallery = $this->Curd->fetch_where_order("tb_gallery",array("*"),array("product_id"=>$f_row->id),"ASC");
    ?>
    <div class="swiper-slide">
        <div class="product-card">
          <div class="img-box">
            <!-- Thumbnail -->
            <ul class="thumbnail-img">
                                 <?php
                  for($jjs=0;$jjs<count($gallery);$jjs++){
                     $sd="active"; if($jjs>0){$sd="";}
                    ?>
                <li class="<?=$sd?> thumb">
                      <img src="<?=base_url('uploads/gallery/'.$gallery[$jjs]->name)?>" alt="<?=ucwords($f_row->title)?>" /></li>
                    <?php
                  }
                  ?>
          </ul>

            <a href="<?=base_url('home/product_detail/'.base64_encode($f_row->id))?>" class="primary-img">
                <img class="img-fluid bg-img" src="<?=base_url('uploads/gallery/'.$gallery[0]->name)?>" alt="<?=ucwords($f_row->title)?>" /> </a>
            <!-- Rating -->
<!--            <div class="rating">
              <span>4.5 <li><i data-feather="star"></i></li> </span>
              <span>185</span>
            </div>-->

            <!-- Option -->
            <ul class="option-wrap">
              <li>
                <a href="javascript:void(0)"  id="<?=$f_row->id;?>"  class="wishlist-btn wishlist_btn">
                  <i data-feather="heart"></i>
                </a>
              </li>
            <?php  
            $prices='';
            $price_res = $this->Curd->table_order_by('tb_product_price',array("product_id"=>$f_row->id),'reg_sale_price','desc','1');
                if($price_res) {
                ?>
            <input type="hidden" idd="<?=$price_res[0]->id?>" id="data<?=$f_row->id?>" id1="<?=$price_res[0]->weight?>" id2="<?=$price_res[0]->price?>" id3="<?=$price_res[0]->reg_sale_price?>" id4="<?=$f_row->sku?>" id5="<?=$f_row->title?>" id6="<?=base_url('uploads/gallery/'.$gallery[0]->name)?>" id7="<?=$f_row->hsn_no?>" id8="<?=$f_row->tax_per?>">
               <li>
         <a href="javascript:void(0)" class=" cart_btn btt_<?=$f_row->id?>"  id="<?=$f_row->id?>"> <i data-feather="shopping-bag"></i> </a>
               
              </li>
              
                <?php
                 $prices='<span>&#8377;'.$price_res[0]->reg_sale_price.'</span> <del>&#8377;'.$price_res[0]->price.'</del>';
            } ?>
               
             
            </ul>
          </div>

          <!-- Content Box -->
          <div class="content-box">
            <a href="<?=base_url('home/product_detail/'.base64_encode($f_row->id))?>">
              <p><?=ucwords($f_row->title)?></p>
              <h5><?=ucwords($f_row->main_cat_name)?></h5>
              <?=$prices?>
            </a>
          </div>
        </div>
    </div>			 
<?php 
}
        }
             }
  ?>
             
            </div>
          </div>
             <div class="swiper-button">
                <button class="swiper-next">
                  <i data-feather="arrow-left"></i>
                </button>
                <button class="swiper-prev"><i data-feather="arrow-right"></i></button>
              </div>
        </div>
      </section>
      
       
      
      <?php $this->load->view('home/footer');?>
<script type="text/javascript">
    $(".cart_btn").click(function(){
        var product_id = $(this).attr("id");
        // alert('test'+product_id);
//        ==================
        var weight_price = $(".weight").val();  
        var datas = weight_price.split("&&");
        
        var product_weight = datas[0];
        var product_price = datas[1];
        var discount_per = datas[2];  
        var product_sale_price = datas[3];
        var product_weight_id = datas[4];
        var product_color = datas[5];
//        ==================
//        var product_weight = $("#data"+product_id).attr("id1");
        var product_weighd = $("#data"+product_id).attr("idd");
//        var product_price = $("#data"+product_id).attr("id2");
//        var product_sale_price = $("#data"+product_id).attr("id3");
        
        var product_sku = $("#data"+product_id).attr("id4");
        var product_title = $("#data"+product_id).attr("id5");
        var img = $("#data"+product_id).attr("id6");
        var hsn_no = $("#data"+product_id).attr("id7");
        var tax_per = $("#data"+product_id).attr("id8");
        
        
        var delivery_charges = 50;
        var quantity = $("#prod_qty"+product_weighd).val();
//        alert(product_weight_id+"Test"+quantity);
        if(quantity){
           
        }else{
            quantity=1; 
        }
        
            $.ajax({
              url : "<?php echo base_url('home/add_to_cart');?>",
                method : "POST",
                dataType :"json",
                data : {product_id: product_id,product_color:product_color,product_weight_id:product_weight_id,tax_per:tax_per,hsn_no:hsn_no, product_title: product_title, product_img:img, product_price: product_price, product_sale_price:product_sale_price, product_qty: quantity, product_weight:product_weight, product_sku:product_sku, delivery_charges:delivery_charges},
                beforeSend:function(){
                   $('.btt_'+product_id).hide(); 
                },
                success:function(res){
                     $('.btt_'+product_id).show();
                  if(res.status==1){
                    $(".total_count").html(res.total_cart);
//                    alert(res.msg);
//                    window.location.reload();
                     window.location.href='<?=base_url("home/cart")?>';
                  }else if(res.status==2){
//                    alert(res.msg);
//                    window.location.reload();
                     window.location.href='<?=base_url("home/cart")?>';
                  }
                }
            });

      
      })
      $(".weight").change(function(){
        var sel = $(this).val();
        if(sel==""){
          alert("Select Weight");
          return false;

        }else{
          var datas = sel.split("&&");
          var weight = datas[0];
          var price = datas[1];
          var discount_per = datas[2];  
          var sale_price = datas[3];
          $(".product_weight").text(weight);
          var sma='<span>&#8377; '+sale_price+'</span> ';
          if(price!==sale_price){
              var sma='<span>&#8377; '+sale_price+'</span> <del>&#8377;'+price+'</del>';
          } 
           $(".price").html(sma);
//           alert("Test"+sma);
//          $(".product_price").html('<i class="fa fa-inr"></i>'+price);
//          $(".product_discount").html(discount_per+'% Off');
//          $(".product_sale_price").html('<i class="fa fa-inr"></i>'+sale_price);
        }
      });
      $(".colors").change(function(){
        var sel = $(this).val();
        var product_id = "<?=$product_id;?>";
        if(sel==""){
          alert("Select color");
          return false;

        }else{
             $.ajax({
              url : "<?php echo base_url('home/colors_list');?>",
                method : "POST",
                data : {product_id: product_id,color_code:sel}, 
                success:function(res){
                    //alert("Test"+res);
                     $('.weight_data').html(res);
                        var sel = $('.weight').val();
                        if(sel==""){
                          alert("Select Weight");
                          return false;
                        }else{
                          var datas = sel.split("&&");
                          var weight = datas[0];
                          var price = datas[1];
                          var discount_per = datas[2];  
                          var sale_price = datas[3];
                          $(".product_weight").text(weight);
                          var sma='<span>&#8377; '+sale_price+'</span> ';
                          if(price!==sale_price){
                              var sma='<span>&#8377; '+sale_price+'</span> <del>&#8377;'+price+'</del>';
                          } 
                           $(".price").html(sma);
                        }
                }
            });
        }
      });

   

      $(".wishlist_btn").click(function(){
          var product_id = $(this).attr("id");
//          alert("Test"+product_id);
//        var product_id = <?=$product_id?>;
        if(product_id!=""){
          //$('.loader-cart').show();
          $.ajax({
            url : "<?= base_url('home/wishlist_process');?>",
                method : "POST",
                data:{"product_id":product_id},
                success:function(res){
                  //$('.loader-cart').hide();
                  if(res==1){
                    alert("Item Added to Wishlist");
                    window.location.href='<?=base_url('home/wishlist')?>';
                  }else if(res==2){
                    alert("Item Already Added to Wishlist");
                    return false;
                  }else if(res==0){
                    alert("Login Now");
                    window.location.href='<?=base_url('home/login')?>';
                  }
                }
          })
        }
      })
      </script>
      <script>
 
    $(".check-btn").click(function(){
	var pincode = $("#pincode").val();
	var pin_length = pincode.length;
	if(pin_length!=6){
		//$("#pincode_msg").html('<b style="color:red">Enter Six Digit Pincode</b>');
		alert("Enter Six Digit Pincod");
		return false;
	}else if(pin_length==6){
		$.ajax({
			method:"POST",
			data:{"pincode":pincode},
			dataType:"JSON",
			url:"<?=base_url('home/delivery_pincode_ajax')?>",
			success:function(res){
				if(res.result==1){
					$("#pincode_msg").html('<b style="color:green">'+res.msg+'</b>');
					$("#del_charge").val(res.delivery_charge);
					$("#delivery_msg").text(res.delivery_duration);
				}else if(res.result==0){
					$("#pincode_msg").html('<b style="color:green">'+res.msg+'</b>');
					$("#delivery_msg").text(res.delivery_duration);
				}
			}
		})
	}
})

 
//=====================

</script>
   </body>
</html>

© 2026 GrazzMean