www
/
wwwroot
/
magazinmiorita.be
/
templates_c
➕ New
📤 Upload
✎ Editing:
cccbdae58845f7deb2389a6e34a070a90d666f38_0.file.cart.tpl.php
← Back
<?php /* Smarty version 4.3.2, created on 2023-11-28 15:23:22 from '/home/miorita/public_html/templates/default/cart.tpl' */ /* @var Smarty_Internal_Template $_smarty_tpl */ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( 'version' => '4.3.2', 'unifunc' => 'content_656605ea41b588_27745190', 'has_nocache_code' => false, 'file_dependency' => array ( 'cccbdae58845f7deb2389a6e34a070a90d666f38' => array ( 0 => '/home/miorita/public_html/templates/default/cart.tpl', 1 => 1485022468, 2 => 'file', ), ), 'includes' => array ( 'file:header.tpl' => 1, 'file:footer.tpl' => 1, ), ),false)) { function content_656605ea41b588_27745190 (Smarty_Internal_Template $_smarty_tpl) { $_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/home/miorita/public_html/lib/smarty/plugins/modifier.data.php','function'=>'smarty_modifier_data',),)); $_smarty_tpl->_subTemplateRender("file:header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false); ?> <div class="breadcrumbs no-margin"> <div class="container"> <div class="row"> <div class="col-xs-12"> <nav> <ol class="breadcrumb"> <li><a href="index.php">Pagina de start</a></li> <li><a href="products.php">Magazin</a></li> <li class="active">Coș</li> </ol> </nav> </div> </div> </div> </div> <div class="woocommerce push-down-30"> <div class="container"> <div class="row" id="viewcart"> <div class="col-xs-12 push-down-30"> <h3>Coș de cumpărături</h3> <hr> <?php if ($_smarty_tpl->tpl_vars['message']->value) {?> <div class="col-xs-12"> <h3 style="color:red">Eroare!</h3> <hr> <p style="color:red" class="woocommerce-info">Eroare! <?php echo $_smarty_tpl->tpl_vars['message']->value;?> </p> </div> <?php }?> <table class="shop-table shop-cart"> <thead> <tr class="cart_table_title"> <th class="product-remove"></th> <th class="product-thumbnail"></th> <th class="product-name">Produs</th> <th class="product-price" style="width: 10%;">Preţ</th> <th class="product-quantity" style="width: 10%;">Cantitate</th> <th class="product-quantity" style="width: 10%;">Taxe (<?php echo $_smarty_tpl->tpl_vars['tx_percent']->value;?> %)</th> <th class="product-subtotal" style="width: 15%;">Total</th> </tr> </thead> <tbody> <?php $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['cart']->value, 'item'); $_smarty_tpl->tpl_vars['item']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) { $_smarty_tpl->tpl_vars['item']->do_else = false; ?> <tr class="cart_table_item"> <td class="product-remove"><span class="glyphicon glyphicon-remove" onclick="view_cart(<?php echo $_smarty_tpl->tpl_vars['item']->value['key'];?> )" style="cursor:pointer"></span></td> <?php if (smarty_modifier_data('products','id',$_smarty_tpl->tpl_vars['item']->value['item_id'],'thumb') == '') {?> <td class="product-thumbnail"><img width="70" height="70" src="<?php echo $_smarty_tpl->tpl_vars['templateurl']->value;?> images/no_image.jpg"></td> <?php } else { ?> <td class="product-thumbnail"><img width="70" height="70" src="<?php echo smarty_modifier_data('products','id',$_smarty_tpl->tpl_vars['item']->value['item_id'],'thumb');?> "></td> <?php }?> <td class="product-name"><a href="#"><?php echo smarty_modifier_data('products','id',$_smarty_tpl->tpl_vars['item']->value['item_id'],'name');?> </a></td> <td class="product-price"><?php echo $_smarty_tpl->tpl_vars['item']->value['price_format'];?> </td> <td class="product-quantity"> <div class="quantity js--quantity"> <?php echo $_smarty_tpl->tpl_vars['item']->value['qt'];?> <!-- <input type="button" value="-" class="quantity__button js--minus-one js--clickable"> <input type="text" name="quantity" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['qt'];?> " class="quantity__input"> <input type="button" value="+" class="quantity__button js--plus-one js--clickable" onclick="update_cart('<?php echo $_smarty_tpl->tpl_vars['item']->value['key'];?> ','<?php echo $_smarty_tpl->tpl_vars['item']->value['item_id'];?> |<?php echo $_smarty_tpl->tpl_vars['item']->value['weight'];?> |<?php echo $_smarty_tpl->tpl_vars['item']->value['type'];?> |<?php echo $_smarty_tpl->tpl_vars['item']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['item']->value['qt']+1;?> |<?php echo $_smarty_tpl->tpl_vars['item']->value['price_qt'];?> ')"> --> </div> </td> <td class="product-price"><?php echo $_smarty_tpl->tpl_vars['item']->value['tax'];?> </td> <td class="product-subtotal"><?php echo $_smarty_tpl->tpl_vars['item']->value['amount'];?> </td> </tr> <?php } $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> <tr class="cart_table_action"> <td></td> <td colspan="6" class="actions"> <!-- <div class="col-xs-4"> <div class="coupon"> <input name="coupon_code" class="input-text"> <a href="checkout.html" class="btn btn-warning">Apply coupon</a> </div> </div> --> <div class="col-xs-2"></div> <div class="col-xs-10"> <a href="checkout.php" class="btn btn-primary pull-right">Plătește</a> </div> </td> </tr> </tbody> </table> </div> <div class="col-xs-12 col-sm-6"> </div> <div class="col-xs-12 col-sm-6"> <!-- Your order - table --> <h3 class="pull-right"><span class="light">Total</span> în Coș</h3> <table class="shop_table push-down-30"> <tfoot> <tr class="cart-subtotal"> <th>Subtotal</th> <td><span class="amount"><?php echo $_smarty_tpl->tpl_vars['cart_total']->value;?> </span></td> </tr> <tr class="shipping"> <th>Livrare</th> <td>Livrare Gratuită</td> </tr> <tr class="total"> <th><strong>Taxe (<?php echo $_smarty_tpl->tpl_vars['cart_tax']->value;?> %)</strong></th> <td> <strong><span class="amount"><?php echo $_smarty_tpl->tpl_vars['only_tax']->value;?> </span></strong> </td> </tr> <tr class="total"> <th><strong>Total</strong></th> <td> <strong><span class="amount"><?php echo $_smarty_tpl->tpl_vars['total_tax']->value;?> </span></strong> </td> </tr> </tfoot> </table> </div> </div> <hr class="divider"> </div> </div> <?php echo '<script'; ?> > function view_cart(key){ $.get("includes/data/cart.php?remove="+key, function(data, status){ $("#cart_info").load('includes/data/cart_info.php?info'); $('.header-cart__subtotal-price').load('includes/data/cart_info.php?subtotal'); $("#cart_items").load('includes/data/cart_info.php?cart'); $("#viewcart").load('includes/data/cart_info.php?viewcart'); }); } function update_cart(key,values){ $.get('includes/data/cart.php?key='+key+'&update='+values, function(data, status){ $("#cart_info").load('includes/data/cart_info.php?info'); $('.header-cart__subtotal-price').load('includes/data/cart_info.php?subtotal'); $("#cart_items").load('includes/data/cart_info.php?cart'); $("#viewcart").load('includes/data/cart_info.php?viewcart'); alert(data); }); } <?php echo '</script'; ?> > <?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel