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/blue-sky.co.id/public_html/application/modules/newarrival/views/2/ |
Upload File : |
<div class="spacer"></div> <!-- store master3 --> <!-- Product Browse --> <div class="product_browse" style="padding-left: 20px;"> <?php if($this->uri->segment(1) == 'product') : ?> <h2 style="color:black; text-align: center; font-size: 1.5rem;"><?= ucwords(lang('bought_together')); ?></h2> <?php else : ?> <h2 style="color:black; text-align: center; font-size: 1.5rem;"><?= ucwords(lang('new_arrival')); ?></h2> <br> <?php endif; ?> <?php if(count($new_arrivals) > 0) : ?> <ul class="clearfix"> <?php foreach ($new_arrivals as $item) : ?> <!-- Product Item --> <li id="li_product_id" data-id="<?= $item->id_products; ?>"> <div class="product_browse_img"> <?php //get product image $this->db->select('image')->from('product_images')->where('product_id', $item->id_products)->where('status', '1')->order_by('product_details_id', 'ASC')->order_by('priority', 'ASC'); $product_image = $this->db->get()->row(); ?> <?php if(count($product_image) == 0) : ?> <?php //get placeholder image $this->db->select('image_not_available')->from('configuration')->where('id_configuration', 1); $placeholder_image = $this->db->get()->row()->image_not_available; ?> <a href="<?= base_url() . 'product/' . strtolower($item->alias); ?>"><img src="<?= base_url() . 'uploads/' . $placeholder_image; ?>" /></a> <?php else : ?> <a href="<?= base_url() . 'product/' . strtolower($item->alias); ?>"><img src="<?= base_url() . 'uploads/product/small/' . $product_image->image; ?>" /></a> <?php endif; ?> </div> <div class="product_browse_name" style="text-align:center;"> <h3><a href="<?= base_url() . 'product/' . strtolower($item->alias); ?>"><?= ucwords($item->title); ?></a></h3><span><?= ucwords($brand_name); ?></span> <div class="dtl_price"> <ul> <?php $reseller_id = $this->db->select('reseller_id')->from('customers')->where('id_customers', $this->session->userdata('customer')['customer_id'])->get()->row()->reseller_id; $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; $reseller_price = $this->db->select('price')->from('resellers_price')->where('product_detail_id', $product_detail_id)->where('reseller_id', $reseller_id)->get()->row()->price; if($reseller_id == NULL || $reseller_price == 0) :?> <?php $lowest_price = get_lowest_price($item->id_products); ?> <?php if($lowest_price->discounted_price == 0) : ?> <li><span><?= ucwords(lang('from')); ?></span> <?= number_format($lowest_price->price, 0, ',', '.'); ?> IDR</li> <?php else : ?> <li><span><?= ucwords(lang('from')); ?></span> <?= number_format($lowest_price->discounted_price, 0, ',', '.'); ?> IDR</li> <li class="jrett"><?= number_format($lowest_price->price, 0, ',', '.'); ?> IDR</li> <?php endif; ?> <?php else : ?> <?php ?> <li><span><?= ucwords(lang('from')); ?></span> <?= number_format($reseller_price, 0, ',', '.'); ?> IDR</li> <?php endif; ?> </ul> </div> </div> </li><!-- End Product Item --> <?php endforeach; ?> </ul> <?php endif; ?> </div><!-- End Product Browse -->