Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

EvenHome

Newbie
  
  • Posts

    10
  • Joined

  • Last visited

Everything posted by EvenHome

  1. А что вырезать не подскажите? Вот файл. Так же во вложениях <?php echo $header; ?> <section id="product_top"> <div class="wrapper"> <div class="left"> <?php if ($thumb || $images) { ?> <script type="text/javascript" src="catalog/view/theme/even/js/simple-lightbox.min.js"></script> <link rel="stylesheet" type="text/css" href="catalog/view/theme/even/css/simplelightbox.css"> <link rel="stylesheet" type="text/css" href="catalog/view/theme/even/css/owl.carousel.css"> <script src="catalog/view/theme/even/js/owl.carousel.js"></script> <script src="catalog/view/theme/even/js/owl.carousel2.thumbs.js"></script> <script> $(function(){ var gallery = $('.gallery a').simpleLightbox(); }); </script> <div class="gallery"> <script type="text/javascript"> $(function() { $("#w<?php echo $product_id; ?>").click(function() { $(this).addClass("active"); }); }); </script> <button type="button" onclick="wishlist.add('<?php echo $product_id; ?>');" class="fav" id="w<?php echo $product_id; ?>"></button> <?php if ($images) { ?> <div id="owlpr" class="owl-carousel"> <?php if ($thumb) { ?><div class="item"><a href="<?php echo $thumb; ?>"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" title="<?php echo $heading_title; ?>"></a></div><?php } ?> <?php foreach ($images as $image) { ?> <div class="item"><a href="<?php echo $image['thumb']; ?>"><img src="<?php echo $image['thumb']; ?>" alt="<?php echo $heading_title; ?>" title="<?php echo $heading_title; ?>"></a></div> <?php } ?> </div> <?php } else { ?> <?php if ($thumb) { ?><div class="item"><a href="<?php echo $thumb; ?>"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" title="<?php echo $heading_title; ?>"></a></div><?php } ?> <?php } ?> <script> $(document).ready(function() { $('#owlpr').owlCarousel({ items: 1, loop: true, margin: 10, nav: true, autoplay: false, responsiveClass: true, animateOut: 'fadeOut', thumbs: true, thumbImage: true, thumbContainerClass: 'owl-thumbs', thumbItemClass: 'owl-thumb-item' }) }) </script> </div> <?php } ?> </div> <div class="right"> <div class="nmpr"> <div class="name"><h1><?php echo $heading_title; ?></h1></div> <?php if ($price) { ?> <div class="prtop"> <?php if (!$special) { ?> <div class="price"><?php echo $price; ?></div> <?php } else { ?> <div class="price"><?php echo $special; ?> <span class="old"><?php echo $price; ?></span></div> <?php } ?> </div> <?php } ?> <!--<?php if ($tax) { ?> <?php echo $text_tax; ?> <?php echo $tax; ?> <?php } ?> <?php if ($points) { ?> <?php echo $text_points; ?> <?php echo $points; ?> <?php } ?> <?php if ($discounts) { ?> <?php foreach ($discounts as $discount) { ?> <?php echo $discount['quantity']; ?><?php echo $text_discount; ?><?php echo $discount['price']; ?> <?php } ?> <?php } ?>--> </div> <div class="data"> <div class="code"><span>РљРѕРґ:</span> <?php echo $model; ?></div> <div class="stock"><?php if (($quantity) <=0) { ?><?php echo $stock_status; ?><?php } else { ?>Есть РІ наличии<?php } ?></div> <input type="hidden" name="product_id" value="<?php echo $product_id; ?>" /> </div> <?php if ($options) { ?> <?php foreach ($options as $option) { ?> <?php if ($option['type'] == 'select') { ?> <div class="type"> <div class="name"><?php echo $option['name']; ?></div> <select name="option[<?php echo $option['product_option_id']; ?>]" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control"> <?php foreach ($option['product_option_value'] as $option_value) { ?> <option value="<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?><?php if ($option_value['price']) { ?><?php } ?></option> <?php } ?> </select> </div> <?php } ?> <?php } ?> <?php } ?> <div class="qntbut"> <input type="number" value="<?php echo $minimum; ?>" min="<?php echo $minimum; ?>" name="quantity" id="input-quantity" /> <button type="button" id="button-cart" data-loading-text="<?php echo $text_loading; ?>" class="cart">Р’ РєРѕСЂР·РёРЅСѓ</button> <a id="onebut" class="onec"><span class="ord">Купить РІ 1 клик</span><span class="oneclose">Отмена</span></a> </div> <script type="text/javascript"> $(document).ready(function(){ $("#oneclick").hide(); $(".oneclose").hide(); $('#onebut').click(function(){ if ($("#onebut").hasClass("active")) { $("#onebut").removeClass("active"); $("#oneclick").slideUp(); $(".oneclose").hide(); $(".ord").show(); } else { $("#onebut").addClass("active"); $("#oneclick").slideDown(); $(".oneclose").show(); $(".ord").hide(); } }); }); </script> <?php if ($attribute_groups) { ?> <h2>Характеристики</h2> <ul> <?php foreach ($attribute_groups as $attribute_group) { ?> <?php foreach ($attribute_group['attribute'] as $attribute) { ?> <li><span><?php echo $attribute['name']; ?>:</span></li> <li><?php echo $attribute['text']; ?></li> <?php } ?> <?php } ?> </ul> <?php } ?> </div> </div> </section> <section id="product_des"> <div class="wrapper"> <div class="left" itemprop="description"> <h2>Описание</h2> <?php echo $description; ?> <div class="socapi"> <script src="https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script> <script src="https://yastatic.net/share2/share.js"></script> <div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,moimir,gplus" data-counter=""></div> </div> </div> <?php if ($products) { ?> <div class="right"> <h2>РЎ этим товаром часто покупают</h2> <div class="list"> <?php $i = 0; ?> <?php foreach ($products as $product) { ?> <div class="item"> <div class="pic"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>"></a></div> <div class="inner"> <div class="topi"> <div class="name"><?php echo $product['name']; ?></div> <?php if ($product['price']) { ?> <?php if (!$product['special']) { ?> <div class="price"><?php echo $product['price']; ?></div> <?php } else { ?> <div class="price"><?php echo $product['special']; ?> <span class="old"><?php echo $product['price']; ?></span></div> <?php } ?> <?php } ?> </div> </div> </div> <?php $i++; ?> <?php } ?> </div> </div> <?php } ?> </div> </section> <?php echo $content_bottom; ?> <script type="text/javascript"><!-- $('select[name=\'recurring_id\'], input[name="quantity"]').change(function(){ $.ajax({ url: 'index.php?route=product/product/getRecurringDescription', type: 'post', data: $('input[name=\'product_id\'], input[name=\'quantity\'], select[name=\'recurring_id\']'), dataType: 'json', beforeSend: function() { $('#recurring-description').html(''); }, success: function(json) { $('.alert, .text-danger').remove(); if (json['success']) { $('#recurring-description').html(json['success']); } } }); }); //--></script> <script type="text/javascript"><!-- $('#button-cart').on('click', function() { $.ajax({ url: 'index.php?route=checkout/cart/add', type: 'post', data: $('#product_top input[type=\'text\'], #product_top input[type=\'hidden\'], #product_top input[type=\'radio\']:checked, #product_top input[type=\'checkbox\']:checked, #product_top select, #product_top textarea'), dataType: 'json', beforeSend: function() { $('#button-cart').button('loading'); }, complete: function() { $('#button-cart').button('reset'); }, success: function(json) { $('.alert, .text-danger').remove(); $('.form-group').removeClass('has-error'); if (json['error']) { if (json['error']['option']) { for (i in json['error']['option']) { var element = $('#input-option' + i.replace('_', '-')); if (element.parent().hasClass('input-group')) { element.parent().after('<div class="text-danger">' + json['error']['option'] + '</div>'); } else { element.after('<div class="text-danger">' + json['error']['option'] + '</div>'); } } } if (json['error']['recurring']) { $('select[name=\'recurring_id\']').after('<div class="text-danger">' + json['error']['recurring'] + '</div>'); } // Highlight any found errors $('.text-danger').parent().addClass('has-error'); } if (json['success']) { $('.hafter').after('<div class="alert alertfull"><div class="wrapper">' + json['success'] + '<div class="buttons"><button type="button" class="close" data-dismiss="alert">Продолжить РїРѕРєСѓРїРєРё</button> <a href="checkout" class="checkout">Оформить заказ</a></div></div>'); $('#cart > button').html(json['total']); $('#cart > ul').load('index.php?route=common/cart/info ul li'); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }); //--></script> <?php echo $footer; ?> product.tpl
  2. Привет всем! Появились дубли фото в карточке товара в магазине во всех товарах, хотя через админку в том же товаре этих дублей нет. Т.е. на самом сайте 3 фотки товара (2 одинаковые), то в карточке товара через админку 2 фотки.Ещё когда в модификаторе очищаю кэш, всё становится нормально, когда нажимаю кнопку обновить модификатор, то опять появляются дубли фоток. Скрины прикладываю. Так же ссылку на товар https://evenhome.ru/dekorativnye-izdeliya/aksessuary/budilnik-hutton
  3. https://opencartforum.com/files/file/811-avtomaticheskaya-obrabotka-prays-listov/ вот попробуй
  4. https://opencartforum.com/files/file/811-avtomaticheskaya-obrabotka-prays-listov/ вот посмотри! крутой модуль! Советую
  5. Всем привет! Подскажите, поставщик прислал вот такую ссылку https://mhliving.ru/bitrix/catalog_export/yandex_dealers_om.php , мне как то надо запилить это на мой сайт: опенкарт русская сборка Version 2.1.0.1 (rs.2) , как это сделать? Я так понял эта ссылка на синхронизацию двух БД.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.