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/mesinpolesshinemate.com/application/modules/bestseller_column/views/ |
Upload File : |
<?php if(count($best_sellers) >0 ) : ?> <h5>BEST SELLER</h5> <ul> <?php foreach($best_sellers as $best) : ?> <li> <a href="<?= base_url() . 'product/' . $best->alias; ?>"><img style="margin-right:10px;" src="<?= base_url() . 'uploads/product/thumbnail/' . $best->image1; ?>" alt=""></a> <div class="pposts-info"> <h6><a href="<?= base_url() . 'product/' . $best->alias; ?>"><?= strtoupper($best->title); ?></a></h6> <?php // $category_discount_percentage = category_discount($best->id_products); $product_price_array = get_product_price($best->id_products); $product_price = $product_price_array['product_price']; $reseller_id = $product_price_array['reseller_id']; $count_reseller = $product_price_array['count_reseller']; ?> <div class="product-pd"> <!-- <?php if(isset($this->session->userdata('customer')['customer_id'])) : ?> <?php if($reseller_id != NULL && $count_reseller > 0) : ?> Rp <?= number_format($product_price->price); ?> <?php else : ?> <?php if($category_discount_percentage != NULL) : ?> <p style="font-size:14px; color:grey;">Rp <?= number_format($product_price->price - ($product_price->price * $category_discount_percentage/100)); ?><br><span style="color:grey; font-size:13px;"><strike>Rp <?= number_format($product_price->price); ?></strike> <?= number_format($category_discount_percentage); ?>%</span></p> <?php else : ?> <?php if($product_price->discounted_price != 0) : ?> <p style="font-size:14px; color:grey;">Rp <?= $product_price->price; ?><br><span style="color:grey; font-size:13px;"><strike>Rp <?= $product_price->discounted_price; ?></strike> <?= number_format((($product_price->price - $product_price->discounted_price) / $product_price->price) * 100); ?>%</span></p> <?php else : ?> <p style="font-size:12px; color:grey;">Rp <?= $product_price->price; ?></p> <?php endif; ?> <?php endif; ?> <?php endif; ?> <?php else : ?> <?php if($category_discount_percentage != NULL) : ?> <p style="font-size:14px; color:grey;">Rp <?= number_format($product_price->price - ($product_price->price * $category_discount_percentage/100)); ?><br><span style="color:grey; font-size:13px;"><strike>Rp <?= number_format($product_price->price); ?></strike> <?= number_format($category_discount_percentage); ?>%</span></p> <?php else : ?> <?php if($product_price->discounted_price != 0) : ?> <p style="font-size:14px; color:grey;">Rp <?= $product_price->price; ?><br><span style="color:grey; font-size:13px;"><strike>Rp <?= $product_price->discounted_price; ?></strike> <?= number_format((($product_price->price - $product_price->discounted_price) / $product_price->price) * 100); ?>%</span></p> <?php else : ?> <p style="font-size:12px; color:grey;">Rp <?= $product_price->price; ?></p> <?php endif; ?> <?php endif; ?> <?php endif; ?> --> </div> </div> </li> <?php endforeach; ?> </ul> <?php endif; ?>