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/featured/views/2/ |
Upload File : |
<!-- Product Browse --> <div class="product_browse" style="padding-left: 20px;"> <div class="spacer"></div> <h2 style="text-align: center;"><?= ucwords(lang('featured')); ?></h2> <?php if(count($featured) > 0) : ?> <ul class="clearfix"> <?php foreach ($featured as $item) : ?> <!-- Product Item --> <li id="li_product_id" data-id="<?= $item->id_products; ?>"> <div class="product_browse_img"> <?php $this->load->helper('product'); $thumbnail = get_product_thumbnail($item->id_products); ?> <img src="<?= $thumbnail['image1']; ?>" /> <a href="<?= base_url() . 'product/' . strtolower($item->alias); ?>"> <div class="product_browse_img_hover" style="background: unset; background-image: url('<?= $thumbnail["image2"]; ?>'); background-repeat: no-repeat; background-size: cover;"> </div> </a> </div> <div class="product_browse_name"><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; if($reseller_id == NULL) :?> <?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 $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; ?> <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 -->