www
/
wwwroot
/
magazinmiorita.be
/
templates_c
➕ New
📤 Upload
✎ Editing:
f8c15dfc6777848e63a649568070b16cc600bed9_0.file.products.tpl.php
← Back
<?php /* Smarty version 4.3.2, created on 2026-03-25 16:44:21 from '/www/wwwroot/magazinmiorita.be/templates/default/products.tpl' */ /* @var Smarty_Internal_Template $_smarty_tpl */ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( 'version' => '4.3.2', 'unifunc' => 'content_69c3a0657900a4_88411695', 'has_nocache_code' => false, 'file_dependency' => array ( 'f8c15dfc6777848e63a649568070b16cc600bed9' => array ( 0 => '/www/wwwroot/magazinmiorita.be/templates/default/products.tpl', 1 => 1524951694, 2 => 'file', ), ), 'includes' => array ( 'file:header.tpl' => 1, 'file:footer.tpl' => 1, ), ),false)) { function content_69c3a0657900a4_88411695 (Smarty_Internal_Template $_smarty_tpl) { $_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/www/wwwroot/magazinmiorita.be/lib/smarty/plugins/modifier.replace.php','function'=>'smarty_modifier_replace',),1=>array('file'=>'/www/wwwroot/magazinmiorita.be/lib/smarty/plugins/modifier.data.php','function'=>'smarty_modifier_data',),2=>array('file'=>'/www/wwwroot/magazinmiorita.be/lib/smarty/plugins/modifier.price_format.php','function'=>'smarty_modifier_price_format',),)); $_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['clienttpl']->value;?> css/rating.css"> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['templateurl']->value;?> css/font-awesome.min.css"/> <?php echo '<script'; ?> src="<?php echo $_smarty_tpl->tpl_vars['clienttpl']->value;?> js/rating.js"><?php echo '</script'; ?> > <div class="container"> <?php if ($_smarty_tpl->tpl_vars['message']->value) {?> <div class="woocommerce" style="margin:15px"> <div class="col-xs-12"> <p class="woocommerce-info"><?php echo $_smarty_tpl->tpl_vars['message']->value;?> </p> </div> </div> <?php }?> <!-- Big banner <div class="row"> <div class="col-xs-12"> <div class="push-down-30"> <div class="banners--big"> Fa-te comod si comanda ce iti pofteste inima! <strong>livrare este gratuita</strong> in Bruxelles daca comanda depaseste 45€ <!-- <div style="color:yellow;text-align:center"><strong style="color:red">Anunt Important!</strong> Livrarile la domiciliu sunt suspendate pe durata vacantei de vara.<br /> Va putem servi din nou cu comenzi la domiciliu din data de 20 August.</div> </div> </div> </div> </div> --> <!-- Big banner --> <div class="row"> <div class="col-xs-12"> <div class="push-down-30"> <div class="banners--big"> Nu ezitati sa ne contactati daca doriti sa aducem si alte produse pe care nu le gasiti momentan in magazinul nostru! </div> </div> </div> </div> <div class="row"> <div class="col-xs-12 col-sm-3"> <aside class="sidebar sidebar--shop"> <h3 class="sidebar__title"><span class="light">Magazin</span> Miorita</h3> <div class="shop-filter"> <hr class="divider"> <h5 class="sidebar__subtitle">Categorii Produse</h5> <ul class="nav nav--filter"> <?php $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['categories']->value, 'cat'); $_smarty_tpl->tpl_vars['cat']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['cat']->value) { $_smarty_tpl->tpl_vars['cat']->do_else = false; ?> <li><a href="<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> categorii-produse-<?php echo $_smarty_tpl->tpl_vars['cat']->value['id'];?> /<?php echo mb_strtolower((string) smarty_modifier_replace($_smarty_tpl->tpl_vars['cat']->value['name'],' ','-'), 'UTF-8');?> /"><?php echo $_smarty_tpl->tpl_vars['cat']->value['name'];?> </a></li> <?php } $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> </ul> <hr class="divider"> <br /><br /> </div> </aside> </div> <div class="col-xs-12 col-sm-9"> <div class="grid"> <!-- <ul class="pagination shop__amount-filter"> <li> <?php if ($_GET['sku'] == 'disponible') {?> <a class="shop__amount-filter__link hidden-xs" href="<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value; if ($_GET['c']) {?>categorii-produse-<?php echo $_GET['c'];?> /<?php echo mb_strtolower((string) smarty_modifier_replace(smarty_modifier_data('categories','id',$_GET['c'],'name'),' ','-'), 'UTF-8');?> |replace:' ':'-'|lower}/<?php } else { ?>produse-romanesti<?php }?>?<?php if ($_GET['search']) {?>search=<?php echo $_GET['search'];?> &<?php }?>sku=all<?php if ($_GET['page']) {?>&page=<?php echo $_GET['page']; }?>"><span class="glyphicon glyphicon-barcode"></span> <span style="color:orange;font-size:12px">ARATA TOATE PRODUSELE</span></a> <?php } else { ?> <a class="shop__amount-filter__link hidden-xs" href="<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value; if ($_GET['c']) {?>categorii-produse-<?php echo $_GET['c'];?> /<?php echo mb_strtolower((string) smarty_modifier_replace(smarty_modifier_data('categories','id',$_GET['c'],'name'),' ','-'), 'UTF-8');?> /<?php } else { ?>produse-romanesti<?php }?>?<?php if ($_GET['search']) {?>search=<?php echo $_GET['search'];?> &<?php }?>sku=disponible<?php if ($_GET['page']) {?>&page=<?php echo $_GET['page']; }?>"><span class="glyphicon glyphicon-barcode"></span> <span style="color:orange;font-size:12px">ARATA DOAR STOCUL DISPONIBIL</span></a> <?php }?> </li> </ul> --> <div class="shop__sort-filter" style="width:100%"> <form action="<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> produse-romanesti" method="get" style="width:100%"> <input type="text" name="search" value="" placeholder="Cautare in "<?php if (smarty_modifier_data('categories','id',$_GET['c'],'name')) { echo smarty_modifier_data('categories','id',$_GET['c'],'name'); } else { ?>toate produsele<?php }?>"" style="width:80%;float:left;padding:5px;border:1px solid #ccc;border-radius:3px"/> <button type="submit" style="width:20%;padding:4px"><span class="glyphicon glyphicon-search"></span> Cauta</button> </form> </div> <br /> <hr class="shop__divider"> <div class="row js--isotope-container"> <?php if ($_smarty_tpl->tpl_vars['products']->value) {?> <?php $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['products']->value, 'prod'); $_smarty_tpl->tpl_vars['prod']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['prod']->value) { $_smarty_tpl->tpl_vars['prod']->do_else = false; ?> <div class="col-xs-6 col-sm-3 js--isotope-target js--cat-<?php echo $_smarty_tpl->tpl_vars['prod']->value['cat_id'];?> " data-price="<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> " data-rating="5" style="height: 250px;"> <div class="products__single products_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> "> <figure class="products__image list_img"> <a href="<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> detalii-produs/<?php echo mb_strtolower((string) smarty_modifier_replace(smarty_modifier_data('products','id',$_smarty_tpl->tpl_vars['prod']->value['id'],'name'),' ','-'), 'UTF-8');?> /<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> "> <?php if ($_smarty_tpl->tpl_vars['prod']->value['thumb'] == '') {?> <img alt="#" class="product__image img_stretch" width="263" height="334" src="<?php echo $_smarty_tpl->tpl_vars['templateurl']->value;?> images/no_image.jpg"> <?php } else { ?> <img alt="#" class="product__image img_stretch" width="263" height="334" src="<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value; echo $_smarty_tpl->tpl_vars['prod']->value['thumb'];?> "> <?php }?> </a> </figure> <!-- <div class="product-overlay"> <a class="product-overlay__more" href="<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> detalii-produs/<?php echo mb_strtolower((string) smarty_modifier_replace(smarty_modifier_data('products','id',$_smarty_tpl->tpl_vars['prod']->value['id'],'name'),' ','-'), 'UTF-8');?> /<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> "> <span class="glyphicon glyphicon-search"></span> </a> <a href="#product_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> " role="button" data-toggle="modal" class="product-overlay__cart"> +<span class="glyphicon glyphicon-shopping-cart"></span> </a> <div class="product-overlay__stock"> <span class="<?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] == '0' || $_smarty_tpl->tpl_vars['prod']->value['sku'] == '-1') {?>out-of-stock<?php } else { ?>in-stock<?php }?>">•</span> <span class="in-stock--text"><?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] == '0' || $_smarty_tpl->tpl_vars['prod']->value['sku'] == '-1') {?>Stoc Epuizat<?php } else { ?>Disponibil in stoc<?php }?></span> </div> </div> --> <div class="row"> <div class="col-xs-9"> <h5 class="products__title product-name"> <a class="products__link scroll-text js--isotope-title" href="<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> detalii-produs/<?php echo mb_strtolower((string) smarty_modifier_replace(smarty_modifier_data('products','id',$_smarty_tpl->tpl_vars['prod']->value['id'],'name'),' ','-'), 'UTF-8');?> /<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> "><?php echo $_smarty_tpl->tpl_vars['prod']->value['name'];?> </a> </h5> <div class="rating" data-id="<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> " data-avg="<?php echo $_smarty_tpl->tpl_vars['prod']->value['avg'];?> " data-count="<?php echo $_smarty_tpl->tpl_vars['prod']->value['count'];?> " style="font-size:15px;"></div> </div> <div class="col-xs-3"> <div class="products__price"> <?php echo $_smarty_tpl->tpl_vars['prod']->value['price_eu'];?> </div> </div> </div> <div class="products__category"> <?php echo smarty_modifier_data('categories','id',$_smarty_tpl->tpl_vars['prod']->value['cat_id'],'name');?> /<?php echo smarty_modifier_data('subcategory','id',$_smarty_tpl->tpl_vars['prod']->value['scat_id'],'name');?> </div> </div> </div> <!-- Modal login--> <div class="modal fade" id="product_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> " tabindex="-1" role="dialog" aria-labelledby="loginModalLabel" aria-hidden="true"> <div class="modal-dialog" style="width:60%"> <div class="modal-content "> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> x </button> </div> <div class="modal-body"> <div class="col-xs-12 col-sm-3"> <div class="product-preview"> <div class="push-down-20"> <?php if ($_smarty_tpl->tpl_vars['prod']->value['thumb'] == '') {?> <img class="js--product-preview" alt="Single product image" src="<?php echo $_smarty_tpl->tpl_vars['templateurl']->value;?> images/no_image.jpg" width="360" height="458"> <?php } else { ?> <img class="js--product-preview" alt="Single product image" src="<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value; echo $_smarty_tpl->tpl_vars['prod']->value['thumb'];?> " width="360" height="458"> <?php }?> </div> </div> </div> <div class="col-xs-12 col-sm-9"> <div class="products__content"> <div class="push-down-30"></div> <span class="products__category"><?php echo smarty_modifier_data('categories','id',$_smarty_tpl->tpl_vars['prod']->value['cat_id'],'name');?> » <?php echo smarty_modifier_data('subcategory','id',$_smarty_tpl->tpl_vars['prod']->value['scat_id'],'name');?> </span> <h1 class="single-product__title"><?php echo $_smarty_tpl->tpl_vars['prod']->value['name'];?> </h1> <span class="single-product__price"><?php echo smarty_modifier_price_format($_smarty_tpl->tpl_vars['prod']->value['price']);?> </span> <div class="single-product__rating rating" data-id="<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> " data-avg="<?php echo $_smarty_tpl->tpl_vars['prod']->value['avg'];?> " data-count="<?php echo $_smarty_tpl->tpl_vars['prod']->value['count'];?> " style="font-size:15px;"></div> <div class="in-stock--single-product"> <span class="<?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] == '0' || $_smarty_tpl->tpl_vars['prod']->value['sku'] == '-1') {?>out-of-stock<?php } else { ?>in-stock<?php }?>">•</span> <span class="in-stock--text"><?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] == '0' || $_smarty_tpl->tpl_vars['prod']->value['sku'] == '-1') {?>Stoc epuizat<?php } else { ?>Disponibil in stoc<?php }?></span> </div> <hr class="bold__divider"> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] == '0' || $_smarty_tpl->tpl_vars['prod']->value['sku'] == '-1') {?> Ne pare rau, acest produs nu este dsiponibil in stoc pentru moment. Dacă dorești ca acest produs să fie disponibil cât mai curând în magazinul nostru, te rugăm să apeși pe butonul "Comandă Produsul". <br /><br /> <div style="display:none;margin:5px 0 5px 0" id="order_rez<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> "></div> <a class="btn btn-info--transition" href="#" data-dismiss="modal" aria-hidden="true"> << <span class="single-product__btn-text">Înapoi la magazin</span> </a> <a class="btn btn-warning--transition" href="#" onclick="order(<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> );"> <i class="glyphicon glyphicon-flag"></i> <span class="single-product__btn-text">Raporteaza stocul lipsa</span> </a> <?php } else { ?> <div id="cart_rez<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> "></div> <p class="single-product__text"> <?php if ($_smarty_tpl->tpl_vars['prod']->value['translate'] == '1') {?> <?php echo html_entity_decode(mb_convert_encoding($_smarty_tpl->tpl_vars['prod']->value['ingredients_ro'], 'UTF-8', 'UTF-8'), ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8');?> <br /> <?php echo html_entity_decode(mb_convert_encoding($_smarty_tpl->tpl_vars['prod']->value['ingredients_fr'], 'UTF-8', 'UTF-8'), ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8');?> <br /> <?php echo html_entity_decode(mb_convert_encoding($_smarty_tpl->tpl_vars['prod']->value['ingredients_nl'], 'UTF-8', 'UTF-8'), ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8');?> <?php }?> </p> <hr class="bold__divider"> <?php if ($_smarty_tpl->tpl_vars['prod']->value['measure'] == 'Kg' || $_smarty_tpl->tpl_vars['prod']->value['measure'] == 'KG' || $_smarty_tpl->tpl_vars['prod']->value['measure'] == 'kg') {?> <!-- Single button --> <i class="glyphicon glyphicon-scale"></i> <select style="float: left;" name="weight" class="btn btn-shop weight<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> " onchange="getData('<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/get_price.php?data='+this.value+'&measure=KG&qt='+$('.quantity__input').val(),'price_rez')"> <option value="0">Cantitatea</option> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '0.100') {?><option value="100|GR|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">100GR</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '0.200') {?><option value="200|GR|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">200GR</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '0.300') {?><option value="300|GR|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">300GR</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '0.400') {?><option value="400|GR|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">400GR</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '0.500') {?><option value="500|GR|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">500GR</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '0.600') {?><option value="600|GR|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">600GR</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '0.700') {?><option value="700|GR|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">700GR</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '0.800') {?><option value="800|GR|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">800GR</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '0.900') {?><option value="900|GR|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">900GR</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '1') {?><option value="1|KG|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">1KG</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '2') {?><option value="2|KG|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">2KG</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '3') {?><option value="3|KG|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">3KG</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '4') {?><option value="4|KG|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">4KG</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '5') {?><option value="5|KG|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">5KG</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '6') {?><option value="6|KG|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">6KG</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '7') {?><option value="7|KG|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">7KG</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '8') {?><option value="8|KG|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">8KG</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '9') {?><option value="9|KG|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">9KG</option><?php }?> <?php if ($_smarty_tpl->tpl_vars['prod']->value['sku'] >= '10') {?><option value="10|KG|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> ">10KG</option><?php }?> </select> <div style="float: left;width: 20px;margin: 3px 10px 30px 10px;font-size: 21px;">x</div> <?php } else { ?> <input type="hidden" name="weight" class="weight<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> " value="1|PC|<?php echo $_smarty_tpl->tpl_vars['prod']->value['price'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> |<?php echo $_smarty_tpl->tpl_vars['prod']->value['code'];?> "/> <?php }?> <!-- Quantity buttons --> <div style="float: left;margin:0px -5px 0 -8px" class="quantity js--quantity"> <input type="button" value="-" class="quantity__button js--minus-one js--clickable" onclick="getData('<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/get_price.php?data='+$('.weight<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> ').val()+'&qt='+$('.quantity__input_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> ').val()+'&var=min&measure=<?php echo $_smarty_tpl->tpl_vars['prod']->value['measure'];?> ','price_rez_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> ')"> <input type="text" name="quantity" value="0" class="quantity__input quantity__input_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> " onChange="getData('<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/get_price.php?data='+$('.weight<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> ').val()+'&qt='+$('.quantity__input_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> ').val()+'&var=min&measure=<?php echo $_smarty_tpl->tpl_vars['prod']->value['measure'];?> ','price_rez_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> ')"> <input type="button" value="+" class="quantity__button js--plus-one js--clickable" onclick="getData('<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/get_price.php?data='+$('.weight<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> ').val()+'&qt='+$('.quantity__input_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> ').val()+'&var=plus&measure=<?php echo $_smarty_tpl->tpl_vars['prod']->value['measure'];?> ','price_rez_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> ')"> </div> <!-- Add to cart button --> <a style="margin-left:20px" class="btn btn-primary--transition" href="#" onclick="add_tocart(<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> ,this)"> <span class="glyphicon glyphicon-plus"></span><span class="glyphicon glyphicon-shopping-cart"></span> <span class="single-product__btn-text">Adaugă în coș</span> </a> <div class="row"> <div class="col-xs-12"> <div id="price_rez_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> "> </div> </div> </div> <?php }?> <!-- Social banners --> <meta property="og:image" content="<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value; echo $_smarty_tpl->tpl_vars['prod']->value['thumb'];?> " /> <div class="row"> <div class="col-xs-12 col-sm-6 col-md-4"> <div class="banners--small banners--small--social"> <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> detalii-produs/<?php echo mb_strtolower((string) smarty_modifier_replace($_smarty_tpl->tpl_vars['prod']->value['name'],' ','-'), 'UTF-8');?> /<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> " class="social"><span class="zocial-facebook"></span> Share on<br> <span class="banners--small--text">Facebook</span> </a> </div> </div> <div class="col-xs-12 col-sm-6 col-md-4"> <div class="banners--small banners--small--social"> <a href="https://twitter.com/home?status=<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> detalii-produs/<?php echo mb_strtolower((string) smarty_modifier_replace($_smarty_tpl->tpl_vars['prod']->value['name'],' ','-'), 'UTF-8');?> /<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> " class="social"><span class="zocial-twitter"></span> Tweet it<br> <span class="banners--small--text">Twitter</span> </a> </div> </div> <div class="col-xs-12 col-sm-6 col-md-4"> <div class="banners--small banners--small--social"> <a href="https://pinterest.com/pin/create/button/?url=<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> detalii-produs/<?php echo mb_strtolower((string) smarty_modifier_replace($_smarty_tpl->tpl_vars['prod']->value['name'],' ','-'), 'UTF-8');?> /<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> &media=<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value; echo $_smarty_tpl->tpl_vars['prod']->value['thumb'];?> &description=" class="social"><span class="zocial-pinterest"></span> Pin on<br> <span class="banners--small--text">Pinterest</span> </a> </div> </div> </div> </div> </div> <div class="clearfix"></div> </div> </div> </div> </div> <?php echo '<script'; ?> > $(document).ready(function(){ getData('<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/get_price.php?data='+$('.weight<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> ').val()+'&qt='+$('.quantity__input_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> ').val(),'price_rez_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> '); }); <?php echo '</script'; ?> > <?php } $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> <?php } else { ?> <div style="text-align:center">Nu au fost gasite rezultate pentru cuvantul cheie cautat. Va rugam sa incercati din nou cu un alt cuvant.</div> <?php }?> <div class="clearfix hidden-xs"></div> </div> <hr class="shop__divider"> <div class="shop__pagination"> <ul class="pagination"> <?php echo $_smarty_tpl->tpl_vars['pagination']->value;?> </ul> </div> </div> </div> </div> </div> <?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="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js" integrity="sha256-eGE6blurk5sHj+rmkfsGYeKyZx3M4bG+ZlFyA7Kns7E=" crossorigin="anonymous"><?php echo '</script'; ?> > <?php echo '<script'; ?> > function add_tocart(id){ var weight = $('.weight'+id).val(); var qt = $('.quantity__input_'+id).val(); if(weight == '0'){ $('.weight'+id).css('border-color', 'red'); }else{ $('.weight'+id).css('border-color', '#ccc'); } $.get('<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/cart.php?data='+weight+'&qt='+qt, function(data, status){ $("#cart_info").load('<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/cart_info.php?info'); $("#cart_rez"+id).html(data); $('.header-cart__subtotal-price').load('<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/cart_info.php?subtotal'); $("#cart_items").load('<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/cart_info.php?cart'); }); if(weight == '0'){ }else if(qt == '0'){ }else{ $('#product_'+id).modal('hide'); var cart = $('#cart_info'); var imgtodrag = $("#product_"+id); if (imgtodrag) { var imgclone = imgtodrag.clone() .offset({ top: imgtodrag.offset().top, left: imgtodrag.offset().left }) .css({ 'opacity': '0.5', 'position': 'absolute', 'height': imgtodrag.height(), 'width': imgtodrag.width(), 'z-index': '999900' }) .appendTo($('body')) .animate({ 'top': cart.offset().top + 0, 'left': cart.offset().left + 125, 'width': 75, 'height': 75 }, 1000, 'easeInOutExpo'); setTimeout(function () { cart.effect("shake", { times: 2 }, 200); }, 1500); imgclone.animate({ 'width': 0, 'height': 0 }, function () { $(this).detach() }); } $("#price_rez_<?php echo $_smarty_tpl->tpl_vars['prod']->value['id'];?> ").html(''); $('.quantity__input_'+id).val('0'); } } function order(id){ $.get('<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/order.php?order=true&id='+id, function(data, status){ $("#order_rez"+id).show().html(data); }); } $(document).ready(function(){ $(".rating").each(function(){ var el = this; var pid = $(this).attr('data-id'); var avg = $(this).attr('data-avg'); // current rating, or initial rating var currentRating = 0; // max rating, i.e. number of stars you want var maxRating= 5; // callback to run after setting the rating var callback = function(rating) { }; // rating instance var myRating = rating(el, currentRating, maxRating, false, callback); myRating.setRating(avg); }); $(".products__single").on('mouseover',function(){ $('.product-name', $(this)).stop(); var boxWidth = $('.product-name', $(this)).width(); var textWidth = $('.product-name .scroll-text', $(this)).width(); if (textWidth > boxWidth) { var animSpeed = textWidth * 10; $('.product-name', $(this)).animate({ scrollLeft: (textWidth - boxWidth) }, animSpeed, function () { $(this).animate({ scrollLeft: 0 }, animSpeed, function () { //$(this).trigger('mouseenter'); }); }); } }).mouseleave(function () { var animSpeed = $(this).scrollLeft() * 10; $(this).stop().animate({ scrollLeft: 0 }, animSpeed); }); }); <?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