www
/
wwwroot
/
magazinmiorita.be
/
templates_c
➕ New
📤 Upload
✎ Editing:
fb43db446606ff729872387bfc5401b837b71851_0.file.checkout.tpl.php
← Back
<?php /* Smarty version 4.3.2, created on 2026-04-06 02:56:41 from '/www/wwwroot/magazinmiorita.be/templates/default/checkout.tpl' */ /* @var Smarty_Internal_Template $_smarty_tpl */ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( 'version' => '4.3.2', 'unifunc' => 'content_69d2b069d3eb79_00820767', 'has_nocache_code' => false, 'file_dependency' => array ( 'fb43db446606ff729872387bfc5401b837b71851' => array ( 0 => '/www/wwwroot/magazinmiorita.be/templates/default/checkout.tpl', 1 => 1505425674, 2 => 'file', ), ), 'includes' => array ( 'file:header.tpl' => 1, 'file:footer.tpl' => 1, ), ),false)) { function content_69d2b069d3eb79_00820767 (Smarty_Internal_Template $_smarty_tpl) { $_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/www/wwwroot/magazinmiorita.be/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); ?> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['endurl']->value;?> js/plugins/select2/css/select2.css"> <div class="breadcrumbs no-margin"> <div class="container"> <div class="row"> <div class="col-xs-12"> <nav> <ol class="breadcrumb"> <li><a href="<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> ">Pagina de start</a></li> <li><a href="<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> produse-romanesti">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"> <form action="gateway.php" method="post"> <?php if ($_smarty_tpl->tpl_vars['incart']->value == '0') {?> <hr /> <div class="col-xs-12"> <h3>Coș de cumpărături</h3> <hr> <p class="woocommerce-info">Nu ai adăugat produse în coș! <a href="products.php">Mergi la produse</a></p> </div> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['loggedin']->value == 0) {?> <div class="col-xs-12"> <h3>Coș de cumpărături</h3> <hr> <p class="woocommerce-info">Ai deja un cont? <a href="#loginModal" data-toggle="modal">Click aici pentru autentificare</a></p> </div> <?php }?> <?php if ($_smarty_tpl->tpl_vars['message']->value) {?> <div class="col-xs-12"> <p class="woocommerce-info"><?php echo $_smarty_tpl->tpl_vars['message']->value;?> </p> </div> <?php }?> <div class="col-xs-12 col-sm-6"> <h3><span class="light">Adresă</span> de domiciliu</h3> <div class="row"> <?php if ($_smarty_tpl->tpl_vars['loggedin']->value == 0) {?> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Oraş <abbr class="required"> * </abbr> </label> <select name="city" class="input-text" id="js-example-basic-single" required> <option value="">Selectează orasul...</option> <?php $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['cities']->value, 'city'); $_smarty_tpl->tpl_vars['city']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['city']->value) { $_smarty_tpl->tpl_vars['city']->do_else = false; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['city']->value['id'];?> "><?php echo html_entity_decode(mb_convert_encoding($_smarty_tpl->tpl_vars['city']->value['name'], 'UTF-8', 'UTF-8'), ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8');?> </option> <?php } $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> </select> </p> </div> <div class="col-xs-12 col-sm-4 push-down-10"> <p> <label> Nume <abbr class="required"> * </abbr> </label> <input class="input-text" name="fname" required> </p> </div> <div class="col-xs-12 col-sm-4 push-down-10"> <p> <label> Prenume <abbr class="required"> * </abbr> </label> <input class="input-text" name="lname" required> </p> </div> <div class="col-xs-12 col-sm-4 push-down-10"> <p> <label> Forum Nickname <abbr class="required"> * </abbr> </label> <input class="input-text" name="nickname" placeholder="ex: jony_78"> </p> </div> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Nume companie (optional) </label> <input class="input-text" name="company"> </p> </div> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Adresă <abbr class="required"> * </abbr> </label> <input class="input-text" placeholder="Numele si numarul strazi dvs." name="address" required> </p> </div> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Cod Poștal <abbr class="required"> * </abbr> </label> <input class="input-text push-down-10" placeholder="Postcode / Zip" name="zip" required> </p> </div> <div class="col-xs-12 col-sm-6 push-down-10"> <p> <label> Adresă de email <abbr class="required"> * </abbr> </label> <input class="input-text" name="email" required> </p> </div> <div class="col-xs-12 col-sm-6 push-down-10"> <p> <label> Nr.Telefon <abbr class="required"> * </abbr> </label> <input class="input-text" name="phone" required> </p> </div> <div class="col-xs-12 col-sm-6 push-down-10"> <p> <label> Parolă <abbr class="required"> * </abbr> </label> <input type="password" class="input-text" name="password" required> </p> </div> <div class="col-xs-12 col-sm-6 push-down-10"> <p> <label> Repeta Parola <abbr class="required"> * </abbr> </label> <input type="password" class="input-text" name="password2" required> </p> </div> <?php } else { ?> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Regiunea: </label> <input type="hidden" name="region" value="<?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'region');?> "> <?php ob_start(); echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'region'); $_prefixVariable1 = ob_get_clean(); echo smarty_modifier_data('region','id',$_prefixVariable1,'name');?> </p> </div> <div class="col-xs-12 col-sm-6 push-down-10"> <p> <label> Nume: </label> <input type="hidden" name="fname" value="<?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'fname');?> "> <input type="hidden" name="lname" value="<?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'lname');?> "> <?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'fname');?> <?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'lname');?> </p> </div> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Nume Companie </label> <input type="hidden" name="company" value="<?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'company');?> "> <?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'company');?> </p> </div> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Adresa: </label> <input type="hidden" name="address" value="<?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'address');?> "> <?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'address');?> </p> </div> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Cod Poștal: </label> <input type="hidden" name="zip" value="<?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'zip');?> "> <?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'zip');?> </p> </div> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Oraş: </label> <input type="hidden" name="city" value="<?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'city');?> "> <?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'city');?> </p> </div> <div class="col-xs-12 col-sm-6 push-down-10"> <p> <label> Adresa de email: </label> <input type="hidden" name="email" value="<?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'email');?> "> <?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'email');?> </p> </div> <div class="col-xs-12 col-sm-6 push-down-10"> <p> <label> Nr.Telefon: </label> <input type="hidden" name="phone" value="<?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'phone');?> "> <?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'phone');?> </p> </div> <?php }?> </div> </div> <div class="col-xs-12 col-sm-6"> <?php if ($_smarty_tpl->tpl_vars['loggedin']->value == 0) {?> <p class="form-row"> <input class="input-checkbox" type="checkbox" id="shipp_to" name="ship_data" value="1" onchange="valueChanged()"> Livrează la adresă de domiciliu? </p> <?php }?> <h3><span class="light">Adresa</span> de livrare</h3> <div id="shipping"> <?php if ($_smarty_tpl->tpl_vars['loggedin']->value == 0) {?> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Adresa <abbr class="required"> * </abbr> </label> <input class="input-text" placeholder="Numele si numarul strazi dvs." name="ship_address" required> </p> </div> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Cod Poștal <abbr class="required"> * </abbr> </label> <input class="input-text push-down-10" placeholder="Postcode / Zip" name="ship_zip" required> </p> </div> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Oraş <abbr class="required"> * </abbr> </label> <input class="input-text push-down-10" placeholder="Town / City" name="ship_city" required> </p> </div> <?php } else { ?> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Adresa: </label> <input type="hidden" name="ship_address" value="<?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'ship_address');?> "> <?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'ship_address');?> </p> </div> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Cod Poștal: </label> <input type="hidden" name="ship_zip" value="<?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'ship_zip');?> "> <?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'ship_zip');?> </p> </div> <div class="col-xs-12 col-sm-12 push-down-10"> <p> <label> Oraş: </label> <input type="hidden" name="ship_city" value="<?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'ship_city');?> "> <?php echo smarty_modifier_data('customers','id',$_COOKIE['user_id'],'ship_city');?> </p> </div> <?php }?> </div> <div class="col-xs-12 col-sm-12 push-down-10"> <label> Alte instrucţiuni </label> <textarea class="input-text" rows="3" name="notes"></textarea> </div> </div> <div class="col-xs-12"> <!-- Your order - table --> <h3><span class="light">Comanda</span> dvs.</h3> <table class="shop_table push-down-30"> <thead> <tr> <th class="product-name">Produs</th> <th class="product-total">Preţ</th> </tr> </thead> <tfoot> <tr class="cart-subtotal"> <th>Subtotal</th> <td><span class="amount"><?php echo $_smarty_tpl->tpl_vars['chsubtotal']->value;?> </span></td> </tr> <tr class="shipping"> <th>Livrare</th> <td id="del_cost"></td> </tr> <tr class="shipping"> <th>Taxe</th> <td><?php echo $_smarty_tpl->tpl_vars['tax']->value;?> </td> </tr> <tr class="total"> <th><strong>Total</strong></th> <td> <strong><span class="amount" id="total_amount" data-amount="<?php echo $_smarty_tpl->tpl_vars['cltotal']->value;?> "><?php echo $_smarty_tpl->tpl_vars['chtotal']->value;?> </span></strong> </td> </tr> </tfoot> <tbody> <?php $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['cartch']->value, 'ch'); $_smarty_tpl->tpl_vars['ch']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['ch']->value) { $_smarty_tpl->tpl_vars['ch']->do_else = false; ?> <tr class="checkout_table_item"> <td class="product-name"><?php echo smarty_modifier_data('products','id',$_smarty_tpl->tpl_vars['ch']->value['item_id'],'name');?> <strong class="product-quantity">x <?php echo $_smarty_tpl->tpl_vars['ch']->value['qt'];?> </strong><br> <strong>Greutate:</strong> <?php echo $_smarty_tpl->tpl_vars['ch']->value['weight']; echo $_smarty_tpl->tpl_vars['ch']->value['type'];?> </td> <td class="product-total"><span class="amount"><?php echo $_smarty_tpl->tpl_vars['ch']->value['amount'];?> </span></td> </tr> <?php } $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> </tbody> </table> <p id="text_rez"></p> <p style="color:red">ATENȚIE! Comenzile false sau anulate sunt sancționate prin blocarea contului dvs. pe site-ul nostru. În funcție de grad, pot fi anunțate autoritățile competente.</p> <p style="color:red">Va rugam sa verificati cu atentie adresa de livrare si nr. dumneavoastra de telefon.</p> <!-- Payment methods --> <div class="payment"> <ul class="payment_methods"> <li> <input type="radio" id="payment_method_cash" class="input-radio" name="payment_method" value="cash" checked="checked"> <label class="test">Cash (Plateste la livrare)</label> <div class="payment_box"> <p>Daca alegeti aceasta optiune, plata se va efectua la livrare.</p> </div> </li> <!-- <li> <input type="radio" id="payment_method_paypal" class="input-radio" name="payment_method" value="paypal"> <label>PayPal (Credit Card)</label> <div class="payment_box"> <p>Plătește cu Paypal; Poți să plătești cu card-ul de credit chiar dacă nu ai un cont Paypal.</p> </div> </li> --> </ul> <input type="hidden" name="total" id="chtotal" value=""/> <input type="hidden" name="shipp_total" id="shipp_total" value=""/> <button type="submit" name="checkout" class="btn btn-warning pull-right">Place order</button> </div> </div> <?php }?> </form> </div> <hr class="divider"> </div> </div> <?php echo '<script'; ?> type="text/javascript"> function valueChanged() { if($('#shipp_to').is(":checked")){ $("input[name=ship_address]").val($("input[name=address]").val()); $("input[name=ship_zip]").val($("input[name=zip]").val()); $("input[name=ship_city]").val($("select[name=city] option:selected").text()); $.get("<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/calc_dist.php?distance=true&city="+$("input[name=ship_city]").val()+"&address="+$("input[name=ship_address]").val()+"&zip="+$("input[name=ship_zip]").val()+"&amount=<?php echo $_smarty_tpl->tpl_vars['cltotal']->value;?> ", function(data){ var json = $.parseJSON(data); $("#del_cost").html('EUR '+json.cost); $("#text_rez").html(json.text); }); }else{ $("#shipping").slideDown(); } } <?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); echo '<script'; ?> src="<?php echo $_smarty_tpl->tpl_vars['endurl']->value;?> js/plugins/select2/js/select2.full.min.js" type="text/javascript"><?php echo '</script'; ?> > <?php echo '<script'; ?> > $(document).ready(function() { <?php if ($_smarty_tpl->tpl_vars['loggedin']->value == 1) {?> $.get("<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/calc_dist.php?distance=true&city="+$("input[name=ship_city]").val()+"&address="+$("input[name=ship_address]").val()+"&zip="+$("input[name=ship_zip]").val()+"&amount=<?php echo $_smarty_tpl->tpl_vars['cltotal']->value;?> ", function(data){ var json = $.parseJSON(data); console.log(json.cost); $("#del_cost").html('EUR '+json.cost); $("#text_rez").html(json.text); $("#total_amount").html('EUR '+json.total); $("#chtotal").val(json.total); $("#shipp_total").val(json.cost); }); <?php }?> $("#js-example-basic-single").select2(); $('#js-example-basic-single').on('change', function() { if($('#shipp_to').is(":checked")){ $("input[name=ship_city]").val($("select[name=city] option:selected").text()); } }); $('input[name=address]').on('keyup', function() { if($('#shipp_to').is(":checked")){ $("input[name=ship_address]").val($("input[name=address]").val()); } }); $('input[name=zip]').on('keyup', function() { if($('#shipp_to').is(":checked")){ $("input[name=ship_zip]").val($("input[name=zip]").val()); } }); $('input[name=ship_address]').on('focusout', function() { $.get("<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/calc_dist.php?distance=true&city="+$("input[name=ship_city]").val()+"&address="+$("input[name=ship_address]").val()+"&zip="+$("input[name=ship_zip]").val()+"&amount=<?php echo $_smarty_tpl->tpl_vars['cltotal']->value;?> ", function(data){ var json = $.parseJSON(data); $("#del_cost").html('EUR '+json.cost); $("#text_rez").html(json.text); $("#total_amount").html('EUR '+json.total); $("#chtotal").val(json.total); $("#shipp_total").val(json.cost); }); }); $('input[name=ship_zip]').on('focusout', function() { $.get("<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/calc_dist.php?distance=true&city="+$("input[name=ship_city]").val()+"&address="+$("input[name=ship_address]").val()+"&zip="+$("input[name=ship_zip]").val()+"&amount=<?php echo $_smarty_tpl->tpl_vars['cltotal']->value;?> ", function(data){ var json = $.parseJSON(data); $("#del_cost").html('EUR '+json.cost); $("#text_rez").html(json.text); $("#total_amount").html('EUR '+json.total); $("#chtotal").val(json.total); $("#shipp_total").val(json.cost); }); }); $('input[name=ship_city]').on('focusout', function() { $.get("<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/calc_dist.php?distance=true&city="+$("input[name=ship_city]").val()+"&address="+$("input[name=ship_address]").val()+"&zip="+$("input[name=ship_zip]").val()+"&amount=<?php echo $_smarty_tpl->tpl_vars['cltotal']->value;?> ", function(data){ var json = $.parseJSON(data); $("#del_cost").html('EUR '+json.cost); $("#text_rez").html(json.text); $("#total_amount").html('EUR '+json.total); $("#chtotal").val(json.total); $("#shipp_total").val(json.cost); }); }); }); <?php echo '</script'; ?> ><?php } }
💾 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