DronENG
-
Публикации
34 -
Зарегистрирован
-
Посещение
-
Days Won
1
Сообщения, опубликованные пользователем DronENG
-
-
- Это популярное сообщение.
- Это популярное сообщение.
-
-
Установил opencart pro 2.3 Ошибки в локализации и опции.
Как подправить?
Скрытый текстСкрытый текст -
Решено.
Ошибка HTTP ERROR 500 возникала из за дублирования записей в базе данных.
Были дубликаты в таблице oc_product и других, связанных с ней таблицах.
-
Скажите пожалуйста.
Можно ли как то закомментировать код в файлах в самом opencart?
Чтобы работал модуль.
-
Выдаёт ошибку при копирование товара.
Установлен opencart Version 2.2.0.0 (rs.2) И установлен модуль ( Менеджеры быстрого редактирования данных для OpenCart )
Вопрос такой может быть конфликт между файлами opencart ?
Скрытый текстadmin/view/template/catalog/product_list.tpl
<button type="button" data-toggle="tooltip" title="<?php echo $button_copy; ?>" class="btn btn-default" onclick="$('#form-product').attr('action', '<?php echo $copy; ?>').submit()"><i class="fa fa-copy"></i></button>
admin/view/template/catalog/recurring_list.tpl
<button type="submit" form="form-recurring" formaction="<?php echo $copy; ?>" data-toggle="tooltip" title="<?php echo $button_copy; ?>" class="btn btn-default"><i class="fa fa-copy"></i></button>
И самого модуля
Скрытый текстadmin/view/template/editors/category/category_list.tpl
<a onclick="$('#form-category').attr('action', '<?php echo $copy; ?>'); $('#form-category').submit();" data-toggle="tooltip" title="<?php echo $button_copy; ?>" class="btn btn-warning"><i class="fa fa-copy"></i></a>
admin/view/template/editors/product/product_list.tpl
<button type="button" data-toggle="tooltip" title="<?php echo $button_copy; ?>" class="btn btn-warning" onclick="$('#form-product').attr('action', '<?php echo $copy; ?>').submit()"><i class="fa fa-copy"></i></button>
-
Модуль Attribute Ext. 2.2
-
Спасибо вам.
Я нашёл на стороннем форуме модуль вывод атрибутов ( Позволяет настроить вывод атрибутов товаров на страницах категории, производителей, поиска и др., добавить к атрибуту изображение, всплывающую подсказку )
-
Открыл файл html/catalog/view/theme/newstore/template/product/product.tpl
Если я правильно понимаю то за Атрибуты отвечает <?php if ($attribute_groups) { ?>
Или нет ?
Скрытый текст<?php echo $header; ?> <div itemscope itemtype="http://schema.org/Product" class="container"> <ul class="breadcrumb" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <?php foreach ($breadcrumbs as $i=> $breadcrumb) { ?> <?php if($i+1<count($breadcrumbs)){ ?> <li><a itemprop="url" href="<?php echo $breadcrumb['href']; ?>"><span itemprop="title"><?php echo $breadcrumb['text']; ?></span></a></li> <?php } else { ?> <li><?php echo $breadcrumb['text']; ?></li> <?php } ?> <?php } ?> </ul> <h1 itemprop="name"><?php echo $heading_title; ?></h1> <div class="row"><?php echo $column_left; ?> <?php if ($column_left && $column_right) { ?> <?php $class = 'col-sm-4 col-md-6'; ?> <?php } elseif ($column_left || $column_right) { ?> <?php $class = 'col-sm-8 col-md-9'; ?> <?php } else { ?> <?php $class = 'col-sm-12'; ?> <?php } ?> <div id="content" class="<?php echo $class; ?>"> <?php echo $content_top; ?> <div class="row"> <?php if ($column_left && $column_right) { ?> <?php $class = 'col-sm-12 col-md-12'; ?> <?php } elseif ($column_left || $column_right) { ?> <?php $class = 'col-sm-12 col-md-6'; ?> <?php } else { ?> <?php $class = 'col-sm-12 col-md-6'; ?> <?php } ?> <div class="<?php echo $class; ?>"> <div class="panel panel-default panel-body"> <?php if ($manufacturer) { ?> <div class="info-inline"><i class="fa fa-check fa-fw"></i><b><?php echo $text_manufacturer; ?></b> <a href="<?php echo $manufacturers; ?>"><span itemprop="brand"><?php echo $manufacturer; ?></span></a></div> <?php } ?> <div class="info-inline"><i class="fa fa-check fa-fw"></i><b><?php echo $text_model; ?></b> <span itemprop="model"><?php echo $model; ?></span></div> <?php if ($review_status) { ?> <div class="rating info-inline"> <?php if ($rating) { ?> <span itemscope itemprop="aggregateRating" itemtype="http://schema.org/AggregateRating"> <meta itemprop="reviewCount" content="<?php echo $reviewCount; ?>"> <meta itemprop="ratingValue" content="<?php echo $ratingValue; ?>"> <meta itemprop="bestRating" content="5"><meta itemprop="worstRating" content="1"> </span> <?php } ?> <?php for ($i = 1; $i <= 5; $i++) { ?> <?php if ($rating < $i) { ?> <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span> <?php } else { ?> <span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span> <?php } ?> <?php } ?> <a href="" onclick="$('a[href=\'#tab-review\']').trigger('click');$('html, body').animate({ scrollTop: $('a[href=\'#tab-review\']').offset().top - 5}, 250); return false;"><?php echo $reviews; ?></a> </div> <?php } ?> </div> <?php if ($thumb || $images) { ?> <ul class="thumbnails"> <?php if ($thumb) { ?> <li> <div class="stickers-ns"> <?php if ($special) { ?> <div class="sticker-ns procent-skidka"><i class="fa fa-tag"></i> <?php echo round ($skidka);?> %</div> <?php } ?> <?php if (($on_off_sticker_special == '1') && $special) { ?> <div class="sticker-ns special"> <i class="fa <?php echo $config_change_icon_sticker_special;?> fa-fw"></i> <span><?php echo $text_sticker_special[$lang_id]['config_change_text_sticker_special']; ?></span> </div> <?php } ?> <?php if(($on_off_sticker_topbestseller == '1') && ($top_bestsellers >= $config_limit_order_product_topbestseller)) { ?> <div class="sticker-ns bestseller"> <i class="fa <?php echo $config_change_icon_sticker_topbestseller;?> fa-fw"></i> <span><?php echo $text_sticker_topbestseller[$lang_id]['config_change_text_sticker_topbestseller']; ?></span> </div> <?php } ?> <?php if(($on_off_sticker_popular == '1') && ($viewed>=$config_min_quantity_popular)) { ?> <div class="sticker-ns popular"> <i class="fa <?php echo $config_change_icon_sticker_popular;?> fa-fw"></i> <span><?php echo $text_sticker_popular[$lang_id]['config_change_text_sticker_popular']; ?></span> </div> <?php } ?> <?php if(($on_off_sticker_newproduct == '1') && (isset($date_available)&&(round((strtotime(date("Y-m-d"))-strtotime($date_available))/86400))<=$config_limit_day_newproduct)) { ?> <div class="sticker-ns newproduct"> <i class="fa <?php echo $config_change_icon_sticker_newproduct;?>"></i> <?php echo $text_sticker_newproduct[$lang_id]['config_change_text_sticker_newproduct']; ?> </div> <?php } ?> </div> <?php if($config_status_zoom_image !='0') { ?> <script src="catalog/view/theme/newstore/js/jquery.magnify.js" type="text/javascript"></script> <link media="screen" href="catalog/view/theme/newstore/stylesheet/magnify.css" type="text/css" rel="stylesheet"> <script type="text/javascript"> $('.thumbnails a.zoom-magnify img').magnify({ speed: 200, src: $('.thumbnails a.zoom-magnify').attr('href') }); $(function(){ $(".thumbnails").each(function (indx, el){ var image = $(".img", el), next = $(el).parent(); var oldsrc; var oldmagnify_src; $(".thumbnail", next).hover(function (){ var newsrc = $(this).attr("rel"); var magnify_src = $(this).attr("magnify-src"); image.attr({src: newsrc}); image.attr('data-magnify-src', magnify_src); $('.thumbnails a.zoom-magnify img').magnify({ speed: 200, src: magnify_src }); }); $(".thumbnails").hover(function (){oldsrc = image.attr('src');oldmagnify_src = image.attr('src');}, function(){ image.attr({src: oldsrc}); }) }); }); </script> <?php } else { ?> <script type="text/javascript"> $(function(){ $(".thumbnails").each(function (indx, el){ var image = $(".img", el), next = $(el).parent(); var oldsrc; $(".thumbnail", next).hover(function (){ var newsrc = $(this).attr("rel"); image.attr({src: newsrc}); }); $(".thumbnails").hover(function (){oldsrc = image.attr('src');}, function(){ image.attr({src: oldsrc}); }) }); }); </script> <?php } ?> <a class="thumbnail zoom-magnify" href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>"> <img class="img" data-magnify-src="<?php echo $popup; ?>" src="<?php echo $thumb; ?>" src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a> </li> <?php } ?> <?php if ($images) { ?> <?php foreach ($images as $image) { ?> <li class="image-additional"><a class="thumbnail" magnify-src="<?php echo $image['popup']; ?>" rel="<?php echo $image['thumb_hover'];?>" href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>"> <img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a></li> <?php } ?> <?php } ?> </ul> <?php } ?> </div> <?php if ($column_left && $column_right) { ?> <?php if($config_status_delivery_options !='0') { ?> <?php $class = 'col-sm-12 col-md-6'; ?> <?php $class_status_delivery = 'col-sm-12 col-md-6'; ?> <?php $class_countdown = 'col-sm-12 col-md-12'; ?> <?php } else { ?> <?php $class = 'col-sm-12 col-md-12'; ?> <?php $class_countdown = 'col-sm-12 col-md-12'; ?> <?php } ?> <?php } elseif ($column_left || $column_right) { ?> <?php if($config_status_delivery_options !='0') { ?> <?php $class = 'col-sm-12 col-md-6'; ?> <?php $class_status_delivery = 'col-sm-12 col-md-12'; ?> <?php $class_countdown = 'col-sm-12 col-md-6'; ?> <?php } else { ?> <?php $class = 'col-sm-12 col-md-6'; ?> <?php $class_countdown = 'col-sm-12 col-md-6'; ?> <?php } ?> <?php } else { ?> <?php if($config_status_delivery_options !='0') { ?> <?php $class = 'col-sm-6 col-md-3'; ?> <?php $class_status_delivery = 'col-sm-6 col-md-3'; ?> <?php $class_countdown = 'col-sm-12 col-md-6'; ?> <?php } else { ?> <?php $class = 'col-sm-12 col-md-6'; ?> <?php $class_countdown = 'col-sm-12 col-md-6'; ?> <?php } ?> <?php } ?> <?php if($ns_on_off_countdown_product !='0') { ?> <?php if($special) { ?> <div class="<?php echo $class_countdown;?>"> <div class="special-countdown"> <div class="panel panel-special"> <div class="panel-heading"> <h3 class="panel-title"><?php echo $special_countdown_final;?></h3> </div> <div class="panel-body"> <?php if ($date_end !="") { ?> <div id="countdown-product-<?php echo $product_id;?>"></div> <?php } ?> </div> <?php if($stock_quantity != 'not_display') { ?> <div class="panel-footer"> <div class="quantity-count-sale"><?php echo $text_special_hurry_quantity;?> <?php echo $stock_quantity; ?> <?php echo $special_countdown_pcs;?></div> </div> <?php } ?> </div> </div> </div> <script type="text/javascript"> $(function(){ var note = $('#note'), ts = new Date('<?php echo $str_timer_1;?>', '<?php echo $str_timer_2;?>', '<?php echo $str_timer_3?>'), newYear = true; if((new Date()) > ts){ ts = (new Date()).getTime() + 10*24*60*60*1000; newYear = false; } $('#countdown-product-<?php echo $product_id;?>').countdown({ timestamp : ts, callback : function(days, hours, minutes, seconds){ var message = ""; message += days; message += hours; message += minutes; message += seconds; note.html(message); } }); }); </script> <?php } ?> <?php } ?> <div class="<?php echo $class; ?>"> <div id="product"> <div class="panel panel-default panel-body"> <?php if (isset($found_cheaper_product_data['status']) && $found_cheaper_product_data['status']) { ?> <a class="btn-cheaper" href="javascript: void(0);" onclick="get_found_cheaper_product(<?php echo $product_id; ?>); return false"><?php echo $text_find_cheap; ?></a> <?php } ?> <?php if ($price) { ?> <span itemscope itemprop="offers" itemtype="http://schema.org/Offer"> <meta itemprop="price" content="<?php echo rtrim(preg_replace("/[^0-9\.]/", "", ($special ? $special : $price)), '.'); ?>"> <meta itemprop="priceCurrency" content="<?php echo $currency_microdata; ?>"> <link itemprop="availability" href="http://schema.org/<?php echo (($availability) ? 'InStock' : 'OutOfStock') ?>" /> </span> <div class="price"> <?php if (!$special) { ?> <?php echo $price; ?> <?php } else { ?> <span class="price-old"><?php echo $price; ?></span> <span class="price-new"><?php echo $special; ?></span> <?php } ?> <?php if ($tax) { ?> <span class="price-tax"><?php echo $text_tax; ?> <?php echo $tax; ?></span> <?php } ?> </div> <?php } ?> <?php if ($points) { ?> <div class="points"><?php echo $text_points; ?> <?php echo $points; ?></div> <?php } ?> <hr> <ul class="list-unstyled availability"> <?php if ($reward) { ?> <li><i class="fa fa-check fa-fw"></i><?php echo $text_reward; ?> <?php echo $reward; ?></li> <?php } ?> <li><i class="fa fa-check fa-fw"></i><span class="text-stock"><?php echo $text_stock; ?></span> <?php if($stock_quantity_count > 0) { ?> <span class="stock_status_success"><?php echo $stock_status;?></span> <?php if($stock_quantity != 'not_display') { ?><span class="stock-quantity_success"><?php echo $stock_quantity; ?></span><?php } ?> <?php } else { ?> <span class="qty-not-in-stock"><?php echo $stock_status;?></span> <?php if($stock_quantity != 'not_display') { ?><span class="qty-not-in-stock-count"><?php echo $stock_quantity; ?></span><?php } ?> <?php } ?> </li> </ul> <ul class="list-unstyled"> <?php if ($discounts) { ?> <hr> <?php foreach ($discounts as $discount) { ?> <li><?php echo $discount['quantity']; ?><?php echo $text_discount; ?><?php echo $discount['price']; ?></li> <?php } ?> <?php } ?> </ul> <?php if ($options) { ?> <hr> <div class="options"> <?php foreach ($options as $option) { ?> <?php if ($option['type'] == 'select') { ?> <div class="form-group"> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"> <?php if ($option['required']) { ?> <i class="fa fa-exclamation-triangle required" data-toggle="tooltip" data-placement="left" title="<?php echo $required_text_option; ?>"></i> <?php } ?> <?php echo $option['name']; ?> </label> <select name="option[<?php echo $option['product_option_id']; ?>]" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control"> <option value=""><?php echo $text_select; ?></option> <?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 echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>) <?php } ?> </option> <?php } ?> </select> </div> <?php } ?> <?php if ($option['type'] == 'radio') { ?> <div class="form-group"> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"> <?php if ($option['required']) { ?> <i class="fa fa-exclamation-triangle required" data-toggle="tooltip" data-placement="left" title="<?php echo $required_text_option; ?>"></i> <?php } ?> <?php echo $option['name']; ?> </label> <div id="input-option<?php echo $option['product_option_id']; ?>"> <?php foreach ($option['product_option_value'] as $option_value) { ?> <div class="radio-checbox-options"> <input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="<?php echo $option['product_option_id']; ?>_<?php echo $option_value['product_option_value_id']; ?>" /> <label for="<?php echo $option['product_option_id']; ?>_<?php echo $option_value['product_option_value_id']; ?>"> <span class="option-name"><?php echo $option_value['name']; ?></span> <?php if ($option_value['price']) { ?> <span class="option-price"><?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?></span> <?php } ?> </label> </div> <?php } ?> </div> </div> <?php } ?> <?php if ($option['type'] == 'checkbox') { ?> <div class="form-group"> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"> <?php if ($option['required']) { ?> <i class="fa fa-exclamation-triangle required" data-toggle="tooltip" data-placement="left" title="<?php echo $required_text_option; ?>"></i> <?php } ?> <?php echo $option['name']; ?> </label> <div id="input-option<?php echo $option['product_option_id']; ?>"> <?php foreach ($option['product_option_value'] as $option_value) { ?> <div class="radio-checbox-options"> <input type="checkbox" name="option[<?php echo $option['product_option_id']; ?>][]" value="<?php echo $option_value['product_option_value_id']; ?>" id="<?php echo $option['product_option_id']; ?>_<?php echo $option_value['product_option_value_id']; ?>" /> <label for="<?php echo $option['product_option_id']; ?>_<?php echo $option_value['product_option_value_id']; ?>"> <span class="option-name"><?php echo $option_value['name']; ?></span> <?php if ($option_value['price']) { ?> <span class="option-price"><?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?></span> <?php } ?> </label> </div> <?php } ?> </div> </div> <?php } ?> <?php if ($option['type'] == 'image') { ?> <?php if ($option['status_color_type'] =='1') { ?> <div class="form-group"> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"> <?php if ($option['required']) { ?> <i class="fa fa-exclamation-triangle required" data-toggle="tooltip" data-placement="left" title="<?php echo $required_text_option; ?>"></i> <?php } ?> <?php echo $option['name']; ?> </label> <div id="input-option<?php echo $option['product_option_id']; ?>"> <?php foreach ($option['product_option_value'] as $option_value) { ?> <div class="image-radio"> <label> <input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" /> <span class="color-option" data-toggle="tooltip" title="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" style="background-color:<?php echo $option_value['color']?>"></span> </label> </div> <?php } ?> </div> </div> <?php } else { ?> <div class="form-group"> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"> <?php if ($option['required']) { ?> <i class="fa fa-exclamation-triangle required" data-toggle="tooltip" data-placement="left" title="<?php echo $required_text_option; ?>"></i> <?php } ?> <?php echo $option['name']; ?> </label> <div id="input-option<?php echo $option['product_option_id']; ?>"> <?php foreach ($option['product_option_value'] as $option_value) { ?> <div class="image-radio"> <label> <input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" /> <img src="<?php echo $option_value['image']; ?>" alt="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" class="img-thumbnail" data-toggle="tooltip" title="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" /> </label> </div> <?php } ?> </div> </div> <?php } ?> <?php } ?> <?php if ($option['type'] == 'text') { ?> <div class="form-group"> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"> <?php if ($option['required']) { ?> <i class="fa fa-exclamation-triangle required" data-toggle="tooltip" data-placement="left" title="<?php echo $required_text_option; ?>"></i> <?php } ?> <?php echo $option['name']; ?> </label> <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['value']; ?>" placeholder="<?php echo $option['name']; ?>" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control" /> </div> <?php } ?> <?php if ($option['type'] == 'textarea') { ?> <div class="form-group"> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"> <?php if ($option['required']) { ?> <i class="fa fa-exclamation-triangle required" data-toggle="tooltip" data-placement="left" title="<?php echo $required_text_option; ?>"></i> <?php } ?> <?php echo $option['name']; ?> </label> <textarea name="option[<?php echo $option['product_option_id']; ?>]" rows="5" placeholder="<?php echo $option['name']; ?>" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control"><?php echo $option['value']; ?></textarea> </div> <?php } ?> <?php if ($option['type'] == 'file') { ?> <div class="form-group"> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"> <?php if ($option['required']) { ?> <i class="fa fa-exclamation-triangle required" data-toggle="tooltip" data-placement="left" title="<?php echo $required_text_option; ?>"></i> <?php } ?> <?php echo $option['name']; ?> </label> <button type="button" id="button-upload<?php echo $option['product_option_id']; ?>" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-default btn-block"><i class="fa fa-upload"></i> <?php echo $button_upload; ?></button> <input type="hidden" name="option[<?php echo $option['product_option_id']; ?>]" value="" id="input-option<?php echo $option['product_option_id']; ?>" /> </div> <?php } ?> <?php if ($option['type'] == 'date') { ?> <div class="form-group"> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"> <?php if ($option['required']) { ?> <i class="fa fa-exclamation-triangle required" data-toggle="tooltip" data-placement="left" title="<?php echo $required_text_option; ?>"></i> <?php } ?> <?php echo $option['name']; ?> </label> <div class="input-group date"> <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['value']; ?>" data-date-format="YYYY-MM-DD" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control" /> <span class="input-group-btn"> <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button> </span></div> </div> <?php } ?> <?php if ($option['type'] == 'datetime') { ?> <div class="form-group"> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"> <?php if ($option['required']) { ?> <i class="fa fa-exclamation-triangle required" data-toggle="tooltip" data-placement="left" title="<?php echo $required_text_option; ?>"></i> <?php } ?> <?php echo $option['name']; ?> </label> <div class="input-group datetime"> <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['value']; ?>" data-date-format="YYYY-MM-DD HH:mm" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control" /> <span class="input-group-btn"> <button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button> </span></div> </div> <?php } ?> <?php if ($option['type'] == 'time') { ?> <div class="form-group"> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"> <?php if ($option['required']) { ?> <i class="fa fa-exclamation-triangle required" data-toggle="tooltip" data-placement="left" title="<?php echo $required_text_option; ?>"></i> <?php } ?> <?php echo $option['name']; ?> </label> <div class="input-group time"> <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['value']; ?>" data-date-format="HH:mm" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control" /> <span class="input-group-btn"> <button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button> </span></div> </div> <?php } ?> <?php } ?> </div> <?php } ?> <?php if ($recurrings) { ?> <hr> <h3><?php echo $text_payment_recurring ?></h3> <div class="form-group required"> <select name="recurring_id" class="form-control"> <option value=""><?php echo $text_select; ?></option> <?php foreach ($recurrings as $recurring) { ?> <option value="<?php echo $recurring['recurring_id'] ?>"><?php echo $recurring['name'] ?></option> <?php } ?> </select> <div class="help-block" id="recurring-description"></div> </div> <?php } ?> <?php if ($minimum > 1) { ?> <div class="alert alert-info"><i class="fa fa-info-circle"></i> <?php echo $text_minimum; ?></div> <?php } ?> <hr> <div class="actions-additional"> <div class="qty space-padding-r5 pull-left"> <div class="quantity-adder clearfix"> <div> <div class="quantity-number pull-left"> <input class="quantity-product" type="text" name="quantity" size="5" value="<?php echo $minimum; ?>" id="input-quantity" /> </div> <div class="quantity-wrapper pull-left"> <span onclick="btnplus_card_prod();" class="add-up add-action fa fa-plus"></span> <span onclick="btnminus_card_prod(<?php echo $minimum; ?>);" class="add-down add-action fa fa-minus"></span> </div> </div> <input type="hidden" name="product_id" value="<?php echo $product_id; ?>" /> </div> </div> <script type="text/javascript"> function btnminus_card_prod(a){ document.getElementById("input-quantity").value>a?document.getElementById("input-quantity").value--:document.getElementById("input-quantity").value=a } function btnplus_card_prod(){ document.getElementById("input-quantity").value++ }; </script> <div class="btn-group"> <?php if($show_nsproduct_btn_wishlist =='1') { ?> <button type="button" data-toggle="tooltip" class="btn btn-wishlist" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i class="fa fa-heart fa-fw"></i></button> <?php } ?> <?php if($show_nsproduct_btn_compare =='1') { ?> <button type="button" data-toggle="tooltip" class="btn btn-compare" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product_id; ?>');"><i class="fa fa-exchange fa-fw"></i></button> <?php } ?> </div> </div> <div class="actions text-center"> <?php if($config_status_delivery_options !='0') { ?> <?php $class_btn = 'w100'; ?> <?php } else { ?> <?php $class_btn = 'w48'; ?> <?php } ?> <div class="cart pull-left <?php echo $class_btn;?>"> <?php if (($product_quantity <= 0) and $disable_cart_button){ ?> <button type="button" id="button-cart" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-general" disabled><?php if($change_text_cart_button_out_of_stock ==1 && $product_quantity <= 0) { ?><span><?php echo $disable_cart_button_text; ?></span><?php } else { ?><i class="fa fa-shopping-basket"></i> <span><?php echo $button_cart; ?></span><?php } ?></button> <?php } else { ?> <button type="button" id="button-cart" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-general"><?php if($change_text_cart_button_out_of_stock ==1 && $product_quantity <= 0) { ?><span><?php echo $disable_cart_button_text; ?></span><?php } else { ?><i class="fa fa-shopping-basket"></i> <span><?php echo $button_cart; ?></span><?php } ?></button> <?php } ?> </div> <?php if($ns_on_off_module_quick_order =='1') { ?> <?php if($show_nsproduct_btn_fastorder =='1') { ?> <button class="<?php echo $class_btn;?> btn btn-fastorder <?php if (($product_quantity <= 0) and $disable_fastorder_button){ ?>hidden-quick-order<?php } ?>" type="button" onclick="fastorder_open(<?php echo $product_id?>);" data-toggle="tooltip" title="<?php echo $config_text_open_form_send_order[$lang_id]['config_text_open_form_send_order']; ?>" <?php if (($product_quantity <= 0) and $disable_fastorder_button){ ?>disabled<?php } ?>> <?php if($icon_open_form_send_order !=''){ ?> <i style="color:#<?php echo $color_button_open_form_send_order ;?>;" class="<?php echo $icon_open_form_send_order;?> fa-fw"></i> <?php } else { ?> <i style="color:#<?php echo $color_button_open_form_send_order ;?>;" class="fa fa-shopping-bag fa-fw"></i> <?php } ?> <span><?php echo $config_text_open_form_send_order[$lang_id]['config_text_open_form_send_order']; ?></span> </button> <?php } ?> <?php } ?> </div> <?php if(($ns_on_off_product_sharing_facebock == '1') || ($ns_on_off_product_sharing_twitter =='1') || ($ns_on_off_product_sharing_googleplus =='1') || ($ns_on_off_product_sharing_mailru =='1') || ($ns_on_off_product_sharing_vk =='1') || ($ns_on_off_product_sharing_ok =='1') ) { ?> <script src="catalog/view/theme/newstore/js/social-likes/social-likes.min.js" type="text/javascript"></script> <link href="catalog/view/theme/newstore/js/social-likes/social-likes_birman.css" rel="stylesheet" media="screen" /> <hr> <div class="social-likes"> <?php if($ns_on_off_product_sharing_facebock !='0'){?><div class="facebook" title="Share link on Facebook"><?php echo $text_facebook;?></div><?php } ?> <?php if($ns_on_off_product_sharing_twitter !='0'){?><div class="twitter" title="Share link on Twitter"><?php echo $text_twitter;?></div><?php } ?> <?php if($ns_on_off_product_sharing_googleplus !='0'){?><div class="plusone" title="Share link on Google+"><?php echo $text_googleplus;?></div><?php } ?> <?php if($ns_on_off_product_sharing_mailru !='0'){?><div class="mailru" title="Поделиться ссылкой в Моём мире"><?php echo $text_mailru;?></div><?php } ?> <?php if($ns_on_off_product_sharing_vk !='0'){?><div class="vkontakte" title="Поделиться ссылкой во Вконтакте"><?php echo $text_vk;?></div><?php } ?> <?php if($ns_on_off_product_sharing_ok !='0'){?><div class="odnoklassniki" title="Поделиться ссылкой в Одноклассниках"><?php echo $text_ok;?></div><?php } ?> </div> <?php } ?> </div> </div> </div> <?php if($config_status_delivery_options !='0') { ?> <div class="<?php echo $class_status_delivery;?>"> <div class="panel panel-default panel-body"> <div class="custom-block-products"> <div class="title-custom-block-product"><?php echo $config_delivery_options_title[$lang_id]['config_delivery_options_title'];?></div> <?php foreach ($banner_delivery_block as $delivery_block) { ?> <div class="custom-block-product" <?php if(($delivery_block['popup']=='1') && ($delivery_block['link'][$lang_id] !='')){ ?> onclick="banner_link_open('<?php echo $delivery_block['link'][$lang_id]; ?>')" <?php } elseif(($delivery_block['popup']=='0') && ($delivery_block['link'][$lang_id] !='')) { ?>onclick="location='<?php echo $delivery_block['link'][$lang_id]; ?>'" <?php } ?>> <div class="image"> <img src="<?php echo $delivery_block['image']; ?>" alt="<?php echo $delivery_block['title'][$lang_id]; ?>"/> </div> <div class="text"> <h4><?php echo $delivery_block['title'][$lang_id]; ?></h4> <p><?php echo $delivery_block['description'][$lang_id]; ?></p> </div> </div> <?php } ?> </div> </div> </div> <?php } ?> <div class="tabs-product col-sm-12"> <ul class="nav nav-tabs my-tabs"> <li class="active"><a href="#tab-description" data-toggle="tab"><i class="fa fa-file-text-o fa-fw"></i><?php echo $tab_description; ?></a></li> <?php if ($attribute_groups) { ?> <li><a href="#tab-specification" data-toggle="tab"><i class="fa fa-list-alt fa-fw"></i><?php echo $tab_attribute; ?></a></li> <?php } ?> <?php if ($review_status) { ?> <li><a href="#tab-review" data-toggle="tab"><i class="fa fa-comments-o fa-fw"></i><?php echo $tab_review; ?></a></li> <?php } ?> <?php if ($product_additional_tabs) { ?> <?php $additional_tab_i=0; foreach ($product_additional_tabs as $product_additional_tab) { ?> <li><a href="#product_additional_tabs<?php echo $additional_tab_i; ?>" data-toggle="tab"><?php echo $product_additional_tab['title']; ?></a></li> <?php $additional_tab_i++; } ?> <?php } ?> </ul> <div class="tab-content"> <div class="tab-pane active" id="tab-description" itemprop="description"><?php echo $description; ?></div> <?php if ($attribute_groups) { ?> <div class="tab-pane" id="tab-specification"> <table class="table table-bordered" itemprop="propertiesList" itemscope itemtype="http://schema.org/ItemList"> <?php foreach ($attribute_groups as $attribute_group) { ?> <thead> <tr> <td colspan="2"><strong><?php echo $attribute_group['name']; ?></strong></td> </tr> </thead> <tbody> <?php foreach ($attribute_group['attribute'] as $attribute) { ?> <tr itemprop="itemListElement" itemscope itemtype="http://schema.org/NameValueStructure"> <td itemprop="name"><?php echo $attribute['name']; ?></td> <td itemprop="value"><?php echo $attribute['text']; ?></td> </tr> <?php } ?> </tbody> <?php } ?> </table> </div> <?php } ?> <?php if ($product_additional_tabs) { ?> <?php $additional_tab_i=0; foreach ($product_additional_tabs as $product_additional_tab) { ?> <div class="tab-pane" id="product_additional_tabs<?php echo $additional_tab_i; ?>"><?php echo $product_additional_tab['text']; ?></div> <?php $additional_tab_i++; } ?> <?php } ?> <?php if ($review_status) { ?> <div class="tab-pane" id="tab-review"> <form class="form-horizontal" id="form-review"> <div id="review"></div> <h2><?php echo $text_write; ?></h2> <?php if ($review_guest) { ?> <div class="form-group required"> <div class="col-sm-12"> <label class="control-label" for="input-name"><?php echo $entry_name; ?></label> <input type="text" name="name" value="" id="input-name" class="form-control" /> </div> </div> <div class="form-group required"> <div class="col-sm-12"> <label class="control-label" for="input-review"><?php echo $entry_review; ?></label> <textarea name="text" rows="5" id="input-review" class="form-control"></textarea> <div class="help-block"><?php echo $text_note; ?></div> </div> </div> <div <?php if($show_review_plus =='0') { ?>style="display:none;"<?php } ?>class="form-group <?php if($show_review_plus_requared) { ?>required<?php } ?>"> <div class="col-sm-12"> <label class="control-label" for="input-review"><?php echo $entry_plus; ?></label> <textarea name="plus" rows="5" id="input-review" class="form-control"></textarea> </div> </div> <div <?php if($show_review_minus =='0') { ?>style="display:none;"<?php } ?>class="form-group <?php if($show_review_minus_requared) { ?>required<?php } ?>"> <div class="col-sm-12"> <label class="control-label" for="input-review"><?php echo $entry_minus; ?></label> <textarea name="minus" rows="5" id="input-review" class="form-control"></textarea> </div> </div> <div class="form-group required"> <div class="col-sm-12"> <label class="control-label"><?php echo $entry_rating; ?></label> <?php echo $entry_bad; ?> <input type="radio" name="rating" value="1" /> <input type="radio" name="rating" value="2" /> <input type="radio" name="rating" value="3" /> <input type="radio" name="rating" value="4" /> <input type="radio" name="rating" value="5" /> <?php echo $entry_good; ?></div> </div> <?php echo $captcha; ?> <div class="buttons clearfix"> <div class="pull-right"> <button type="button" id="button-review" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-primary"><?php echo $btn_add_new_review; ?></button> </div> </div> <?php } else { ?> <?php echo $text_login; ?> <?php } ?> </form> </div> <?php } ?> </div> </div> </div> <?php $gen_carousel_featured = rand(10000, 50000);?> <?php if ($products) { ?> <div class="row"> <div class="col-sm-12"> <div class="container-module" style="margin-top:15px;"> <div class="title-module"><span><?php echo $text_related; ?></span></div> <div class="product-slider"> <div style="display: block; opacity: 1;" class="container-modules featured carousel_numb_featured<?php echo $gen_carousel_featured;?> owl-carousel"> <?php foreach ($products as $product) { ?> <div class="item"> <div itemprop="isRelatedTo" itemscope itemtype="http://schema.org/Product" class="product-thumb transition"> <div class="image"> <div class="stickers-ns"> <?php if ($product['special']) { ?> <div class="sticker-ns procent-skidka"><i class="fa fa-tag"></i> <?php echo round ($product['skidka']);?> %</div> <?php } ?> <?php if (($on_off_sticker_special == '1') && $product['special']) { ?> <div class="sticker-ns special"> <i class="fa <?php echo $config_change_icon_sticker_special;?> fa-fw"></i> <span><?php echo $text_sticker_special[$lang_id]['config_change_text_sticker_special']; ?></span> </div> <?php } ?> <?php if(($on_off_sticker_topbestseller == '1') && ($product['top_bestsellers'] >= $config_limit_order_product_topbestseller)) { ?> <div class="sticker-ns bestseller"> <i class="fa <?php echo $config_change_icon_sticker_topbestseller;?> fa-fw"></i> <span><?php echo $text_sticker_topbestseller[$lang_id]['config_change_text_sticker_topbestseller']; ?></span> </div> <?php } ?> <?php if(($on_off_sticker_popular == '1') && ($product['viewed']>=$config_min_quantity_popular)) { ?> <div class="sticker-ns popular"> <i class="fa <?php echo $config_change_icon_sticker_popular;?> fa-fw"></i> <span><?php echo $text_sticker_popular[$lang_id]['config_change_text_sticker_popular']; ?></span> </div> <?php } ?> <?php if(($on_off_sticker_newproduct == '1') && (isset($product['date_available'])&&(round((strtotime(date("Y-m-d"))-strtotime($product['date_available']))/86400))<=$config_limit_day_newproduct)) { ?> <div class="sticker-ns newproduct"> <i class="fa <?php echo $config_change_icon_sticker_newproduct;?>"></i> <?php echo $text_sticker_newproduct[$lang_id]['config_change_text_sticker_newproduct']; ?> </div> <?php } ?> </div> <a itemprop="url" href="<?php echo $product['href']; ?>"><img <?php if ($product['product_quantity'] <= 0 && $show_stock_status) { ?>data-status="<?php echo $product['stock_status']; ?>"<?php } ?> itemprop="image" <?php if($product['additional_image_hover']) { ?>data-additional-hover="<?php echo $product['additional_image_hover'];?>"<?php } ?> src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" /></a> <?php if($show_special_timer_module =='1' && $product['special']){ ?> <div class="action-timer"> <div id="countdown-featured-product-<?php echo $product['product_id'];?>"></div> </div> <script type="text/javascript"> $(function(){ var note = $('#note'), ts = new Date('<?php echo $product['str_timer_1'];?>', '<?php echo $product['str_timer_2'];?>', '<?php echo $product['str_timer_3']?>'), newYear = true; if((new Date()) > ts){ ts = (new Date()).getTime() + 10*24*60*60*1000; newYear = false; } $('#countdown-featured-product-<?php echo $product['product_id'];?>').countdown({ timestamp : ts, callback : function(days, hours, minutes, seconds){ var message = ""; message += days; message += hours; message += minutes; message += seconds; note.html(message); } }); }); </script> <?php } ?> </div> <div class="caption"> <?php if($ns_on_off_module_quick_order =='1') { ?> <div class="actions-quick-order"> <div class="quick-order"> <button class="btn btn-fastorder <?php if (($product['product_quantity'] <= 0) and $disable_fastorder_button){ ?>hidden-quick-order<?php } ?>" type="button" data-toggle="tooltip" onclick="fastorder_open(<?php echo $product['product_id']?>);" title="<?php echo $config_text_open_form_send_order[$lang_id]['config_text_open_form_send_order']; ?>" <?php if (($product['product_quantity'] <= 0) and $disable_fastorder_button){ ?>disabled<?php } ?>> <?php if($icon_open_form_send_order !=''){ ?> <i style="color:#<?php echo $color_button_open_form_send_order ;?>;" class="<?php echo $icon_open_form_send_order;?> fa-fw"></i> <?php } else { ?> <i style="color:#<?php echo $color_button_open_form_send_order ;?>;" class="fa fa-shopping-bag fa-fw"></i> <?php } ?> <?php echo $config_text_open_form_send_order[$lang_id]['config_text_open_form_send_order']; ?> </button> </div> </div> <?php } ?> <div class="product-name"><a href="<?php echo $product['href']; ?>"><span itemprop="name"><?php echo $product['name']; ?></span></a></div> <div itemprop="description" class="product-description"><?php echo $product['description']; ?></div> <div class="rating"> <?php if ($product['rating']) { ?> <span itemscope itemprop="aggregateRating" itemtype="http://schema.org/AggregateRating"> <meta itemprop="reviewCount" content="<?php echo $product['reviewCount'] ?>"> <meta itemprop="ratingValue" content="<?php echo $product['ratingValue'] ?>"> <meta itemprop="bestRating" content="5"><meta itemprop="worstRating" content="1"> </span> <?php } ?> <span class="rating-box"> <?php for ($i = 1; $i <= 5; $i++) { ?> <?php if ($product['rating'] < $i) { ?> <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span> <?php } else { ?> <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span> <?php } ?> <?php } ?> </span> </div> <?php if ($product['price']) { ?> <div class="price" itemscope itemprop="offers" itemtype="http://schema.org/Offer"> <meta itemprop="price" content="<?php echo rtrim(preg_replace("/[^0-9\.]/", "", ($product['special'] ? $product['special'] : $product['price'])), '.'); ?>"> <meta itemprop="priceCurrency" content="<?php echo $product['currency']; ?>"> <link itemprop="availability" href="http://schema.org/<?php echo ($product['availability'] ? 'InStock' : 'OutOfStock') ?>" /> <?php if (!$product['special']) { ?> <?php echo $product['price']; ?> <?php } else { ?> <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span> <?php } ?> <?php if ($product['tax']) { ?> <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span> <?php } ?> </div> <?php } ?> <div class="actions"> <div class="wishlist"><button class="btn btn-wishlist" type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button></div> <?php if (($product['product_quantity'] <= 0) and $disable_cart_button){ ?> <div class="cart"><button class="btn btn-general" type="button" disabled><?php if($change_text_cart_button_out_of_stock ==1) { ?><span><?php echo $disable_cart_button_text; ?></span><?php } else { ?><i class="fa fa-shopping-basket"></i> <span><?php echo $button_cart; ?></span><?php } ?></button></div> <?php } else { ?> <div class="cart"><button class="btn btn-general" type="button" onclick="cart.add('<?php echo $product['product_id']; ?>');"><?php if($change_text_cart_button_out_of_stock ==1 && $product['product_quantity'] <= 0) { ?><span><?php echo $disable_cart_button_text; ?></span><?php } else { ?><i class="fa fa-shopping-basket"></i> <span><?php echo $button_cart; ?></span><?php } ?></button></div> <?php } ?> <div class="compare"><button class="btn btn-compare" type="button" data-toggle="tooltip" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-exchange"></i></button></div> </div> </div> </div> </div> <?php } ?> </div> </div> </div> </div> </div> <?php } ?> <script type="text/javascript"><!-- if (!$(".carousel_numb_featured<?php echo $gen_carousel_featured;?>").parents("#column-left, #column-right").length) { $('.carousel_numb_featured<?php echo $gen_carousel_featured;?>').owlCarousel({ responsiveBaseWidth: ".featured.carousel_numb_featured<?php echo $gen_carousel_featured;?>", itemsCustom: [[120, 1], [190, 1],[250, 1],[400, 1], [500, 2], [630, 2], [750, 3], [900, 4], [1000, 4]], navigation: true, navigationText: ['<div class="btn btn-carousel-module next-prod"><i class="fa fa-angle-left arrow"></i></div>', '<div class="btn btn-carousel-module prev-prod"><i class="fa fa-angle-right arrow"></i></div>'], pagination: false }); } </script> <?php if ($tags) { ?> <p><?php echo $text_tags; ?> <?php for ($i = 0; $i < count($tags); $i++) { ?> <?php if ($i < (count($tags) - 1)) { ?> <a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>, <?php } else { ?> <a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a> <?php } ?> <?php } ?> </p> <?php } ?> <?php if($qucikviewmodule) { ?> <div id="quickview-my"><?php echo $qucikviewmodule;?></div> <?php } ?> <?php echo $content_bottom; ?></div> <?php echo $column_right; ?></div> </div> <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 input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\']:checked, #product select, #product 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']) { $('.options').removeClass('hidden-options'); 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'][i] + '</div>'); } else { element.after('<div class="text-danger">' + json['error']['option'][i] + '</div>'); } setTimeout(function () { $('.option-danger, .alert, .text-danger').remove(); }, 4000); $('#top').before('<div class="alert option-danger"><i class="fa fa-exclamation-circle"></i> ' + json['error']['option'][i] + '<button type="button" class="close" data-dismiss="alert">×</button></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']) { if(json['popup_design']=='1'){ fastorder_open_cart(); } else { html = '<div id="modal-addcart" class="modal">'; html += ' <div class="modal-dialog" style="overflow:hidden">'; html += ' <div class="modal-content">'; if(json['show_newstorecheckout']=='1'){ html += ' <div class="modal-body"><div class="text-center">' + json['success'] + '<br><img style="margin:10px 0px;" src="'+ json['image_cart'] +'" /><br></div><div><a href=' + link_newstorecheckout + ' class="btn-checkout">'+ button_checkout +'</a><button data-dismiss="modal" class="btn-shopping">'+ button_shopping +'</button></div></div>'; } else { html += ' <div class="modal-body"><div class="text-center">' + json['success'] + '<br><img style="margin:10px 0px;" src="'+ json['image_cart'] +'" /><br></div><div><a href=' + link_checkout + ' class="btn-checkout">'+ button_checkout +'</a><button data-dismiss="modal" class="btn-shopping">'+ button_shopping +'</button></div></div>'; } html += ' </div>'; html += ' </div>'; html += '</div>'; $('body').append(html); $('#modal-addcart').modal('show'); } setTimeout(function () { $('.cart-total').html(json['total']); }, 100); $('#cart > ul').load('index.php?route=common/cart/info ul li'); } $('#modal-addcart').on('hide.bs.modal', function (e) { $('#modal-addcart').remove(); }); } }); }); //--></script> <script type="text/javascript"><!-- $('.date').datetimepicker({ pickTime: false }); $('.datetime').datetimepicker({ pickDate: true, pickTime: true }); $('.time').datetimepicker({ pickDate: false }); $('button[id^=\'button-upload\']').on('click', function() { var node = this; $('#form-upload').remove(); $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input type="file" name="file" /></form>'); $('#form-upload input[name=\'file\']').trigger('click'); if (typeof timer != 'undefined') { clearInterval(timer); } timer = setInterval(function() { if ($('#form-upload input[name=\'file\']').val() != '') { clearInterval(timer); $.ajax({ url: 'index.php?route=tool/upload', type: 'post', dataType: 'json', data: new FormData($('#form-upload')[0]), cache: false, contentType: false, processData: false, beforeSend: function() { $(node).button('loading'); }, complete: function() { $(node).button('reset'); }, success: function(json) { $('.text-danger').remove(); if (json['error']) { $(node).parent().find('input').after('<div class="text-danger">' + json['error'] + '</div>'); } if (json['success']) { alert(json['success']); $(node).parent().find('input').attr('value', json['code']); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); } }, 500); }); //--></script> <script type="text/javascript"><!-- $('#review').delegate('.pagination a', 'click', function(e) { e.preventDefault(); $('#review').fadeOut('slow'); $('#review').load(this.href); $('#review').fadeIn('slow'); }); $('#review').load('index.php?route=product/product/review&product_id=<?php echo $product_id; ?>'); $('#button-review').on('click', function() { $.ajax({ url: 'index.php?route=product/product/write&product_id=<?php echo $product_id; ?>', type: 'post', dataType: 'json', data: $("#form-review").serialize(), beforeSend: function() { $('#button-review').button('loading'); }, complete: function() { $('#button-review').button('reset'); }, success: function(json) { $('.alert-success, .alert-danger').remove(); if (json['error']) { $('#review').after('<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> ' + json['error'] + '</div>'); } if (json['success']) { $('#review').after('<div class="alert alert-success"><i class="fa fa-check-circle"></i> ' + json['success'] + '</div>'); $('input[name=\'name\']').val(''); $('textarea[name=\'text\']').val(''); $('input[name=\'rating\']:checked').prop('checked', false); } } }); }); $(document).ready(function() { $('.thumbnails').magnificPopup({ type:'image', delegate: 'a', gallery: { enabled:true } }); }); //--></script> <script type="text/javascript"> var url = document.location.toString(); if (url.match('#tab-review')) { $('a[href=\'#tab-review\']').trigger('click'); } </script> <?php echo $footer; ?>
-
Выводил сюда Коды JAN EAN MPN.
А как атрибуты туда вывести?
-
-
Удалено.
-
Спасибо. Но это маленько не то.
У меня купленная тема Comohos
Скрытый текстВ ней я могу реализовать такое меню как в MegaMenu Pro
Может ещё есть какие не будь модули категории?
-
Подскажите можно ли в opencart ver: 2.2.0.0 реализовать категорию как на этом сайте?
Скрытый текстНажимаю в меню Диваны и кресла
потом появляется категория
-
- Это популярное сообщение.
- Это популярное сообщение.
В файле product.php (/catalog/controller/product/)
Скрытый текстНайти:
$data['reward'] = $product_info['reward'];
После вставить:
$data['jan'] = $product_info['jan'];
В файле product.tpl (/catalog/view/theme/default/template/product/)
Скрытый текстНайти:
echo $price;
Заменить на:
if($jan){echo $jan . ' ' . $price;} else {echo $price;}
В двух местах.
-
В 02.07.2016 at 17:04, Fedka сказал:
а чего при выводе просто не сделать цена ОТ...а остальные цены опциями корректировать?
Имею в виду:
в файле product.tpl добавить ОТ перед выводом цены и соответственно на странице категорий и т.д.
Ну мне не нужно чтобы ОТ было перед каждой ценой.
Может есть какой не будь модуль чтобы в админке к цене можно было текст добавить?
Я ваял сайт на конструкторе ( web builder ) на корпусную мебель указывал, цена , а на мягкая мебель цена ОТ.
Вот и на opencarte 2.2.0.0 мне нужно тоже самое.
-
-
Переименовал, зашёл в админку ошибок нет.
Могу скинуть от FTP: логин пароль ну и от админки.
для лучшего понятия.
Если вам не трудно сможете посмотреть?
-
возможно, в указанном контроллере вкумод не находит строки
28 minutes ago, DronENG said:$this->data['direction'] = $this->language->get('direction');
и
28 minutes ago, DronENG said:$this->data['stores'] = array();
В header.php Есть эти строки.
Spoiler<?php class ControllerCommonHeader extends Controller { protected function index() { $this->data['title'] = $this->document->getTitle(); if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) { $this->data['base'] = HTTPS_SERVER; } else { $this->data['base'] = HTTP_SERVER; } $this->data['description'] = $this->document->getDescription(); $this->data['keywords'] = $this->document->getKeywords(); $this->data['links'] = $this->document->getLinks(); $this->data['styles'] = $this->document->getStyles(); $this->data['scripts'] = $this->document->getScripts(); $this->data['lang'] = $this->language->get('code'); $this->data['direction'] = $this->language->get('direction'); $this->language->load('common/header'); $this->data['heading_title'] = $this->language->get('heading_title'); $this->data['text_affiliate'] = $this->language->get('text_affiliate'); $this->data['text_attribute'] = $this->language->get('text_attribute'); $this->data['text_attribute_group'] = $this->language->get('text_attribute_group'); $this->data['text_backup'] = $this->language->get('text_backup'); $this->data['text_banner'] = $this->language->get('text_banner'); $this->data['text_catalog'] = $this->language->get('text_catalog'); $this->data['text_category'] = $this->language->get('text_category'); $this->data['text_confirm'] = $this->language->get('text_confirm'); $this->data['text_country'] = $this->language->get('text_country'); $this->data['text_coupon'] = $this->language->get('text_coupon'); $this->data['text_currency'] = $this->language->get('text_currency'); $this->data['text_customer'] = $this->language->get('text_customer'); $this->data['text_customer_group'] = $this->language->get('text_customer_group'); $this->data['text_customer_field'] = $this->language->get('text_customer_field'); $this->data['text_customer_ban_ip'] = $this->language->get('text_customer_ban_ip'); $this->data['text_custom_field'] = $this->language->get('text_custom_field'); $this->data['text_sale'] = $this->language->get('text_sale'); $this->data['text_design'] = $this->language->get('text_design'); $this->data['text_documentation'] = $this->language->get('text_documentation'); $this->data['text_download'] = $this->language->get('text_download'); $this->data['text_error_log'] = $this->language->get('text_error_log'); $this->data['text_extension'] = $this->language->get('text_extension'); $this->data['text_feed'] = $this->language->get('text_feed'); $this->data['text_filter'] = $this->language->get('text_filter'); $this->data['text_front'] = $this->language->get('text_front'); $this->data['text_geo_zone'] = $this->language->get('text_geo_zone'); $this->data['text_dashboard'] = $this->language->get('text_dashboard'); $this->data['text_help'] = $this->language->get('text_help'); $this->data['text_information'] = $this->language->get('text_information'); $this->data['text_language'] = $this->language->get('text_language'); $this->data['text_layout'] = $this->language->get('text_layout'); $this->data['text_localisation'] = $this->language->get('text_localisation'); $this->data['text_logout'] = $this->language->get('text_logout'); $this->data['text_contact'] = $this->language->get('text_contact'); $this->data['text_manager'] = $this->language->get('text_manager'); $this->data['text_manufacturer'] = $this->language->get('text_manufacturer'); $this->data['text_module'] = $this->language->get('text_module'); $this->data['text_option'] = $this->language->get('text_option'); $this->data['text_order'] = $this->language->get('text_order'); $this->data['text_order_status'] = $this->language->get('text_order_status'); $this->data['text_opencart'] = $this->language->get('text_opencart'); $this->data['text_payment'] = $this->language->get('text_payment'); $this->data['text_product'] = $this->language->get('text_product'); $this->data['text_profile'] = $this->language->get('text_profile'); $this->data['text_reports'] = $this->language->get('text_reports'); $this->data['text_report_sale_order'] = $this->language->get('text_report_sale_order'); $this->data['text_report_sale_tax'] = $this->language->get('text_report_sale_tax'); $this->data['text_report_sale_shipping'] = $this->language->get('text_report_sale_shipping'); $this->data['text_report_sale_return'] = $this->language->get('text_report_sale_return'); $this->data['text_report_sale_coupon'] = $this->language->get('text_report_sale_coupon'); $this->data['text_report_product_viewed'] = $this->language->get('text_report_product_viewed'); $this->data['text_report_product_purchased'] = $this->language->get('text_report_product_purchased'); $this->data['text_report_customer_online'] = $this->language->get('text_report_customer_online'); $this->data['text_report_customer_order'] = $this->language->get('text_report_customer_order'); $this->data['text_report_customer_reward'] = $this->language->get('text_report_customer_reward'); $this->data['text_report_customer_credit'] = $this->language->get('text_report_customer_credit'); $this->data['text_report_affiliate_commission'] = $this->language->get('text_report_affiliate_commission'); $this->data['text_report_sale_return'] = $this->language->get('text_report_sale_return'); $this->data['text_report_product_viewed'] = $this->language->get('text_report_product_viewed'); $this->data['text_report_customer_order'] = $this->language->get('text_report_customer_order'); $this->data['text_review'] = $this->language->get('text_review'); $this->data['text_return'] = $this->language->get('text_return'); $this->data['text_return_action'] = $this->language->get('text_return_action'); $this->data['text_return_reason'] = $this->language->get('text_return_reason'); $this->data['text_return_status'] = $this->language->get('text_return_status'); $this->data['text_support'] = $this->language->get('text_support'); $this->data['text_shipping'] = $this->language->get('text_shipping'); $this->data['text_setting'] = $this->language->get('text_setting'); $this->data['text_stock_status'] = $this->language->get('text_stock_status'); $this->data['text_system'] = $this->language->get('text_system'); $this->data['text_tax'] = $this->language->get('text_tax'); $this->data['text_tax_class'] = $this->language->get('text_tax_class'); $this->data['text_tax_rate'] = $this->language->get('text_tax_rate'); $this->data['text_total'] = $this->language->get('text_total'); $this->data['text_user'] = $this->language->get('text_user'); $this->data['text_user_group'] = $this->language->get('text_user_group'); $this->data['text_users'] = $this->language->get('text_users'); $this->data['text_voucher'] = $this->language->get('text_voucher'); $this->data['text_voucher_theme'] = $this->language->get('text_voucher_theme'); $this->data['text_weight_class'] = $this->language->get('text_weight_class'); $this->data['text_length_class'] = $this->language->get('text_length_class'); $this->data['text_zone'] = $this->language->get('text_zone'); $this->data['text_openbay_extension'] = $this->language->get('text_openbay_extension'); $this->data['text_openbay_dashboard'] = $this->language->get('text_openbay_dashboard'); $this->data['text_openbay_orders'] = $this->language->get('text_openbay_orders'); $this->data['text_openbay_items'] = $this->language->get('text_openbay_items'); $this->data['text_openbay_ebay'] = $this->language->get('text_openbay_ebay'); $this->data['text_openbay_amazon'] = $this->language->get('text_openbay_amazon'); $this->data['text_openbay_amazonus'] = $this->language->get('text_openbay_amazonus'); $this->data['text_openbay_settings'] = $this->language->get('text_openbay_settings'); $this->data['text_openbay_links'] = $this->language->get('text_openbay_links'); $this->data['text_openbay_report_price'] = $this->language->get('text_openbay_report_price'); $this->data['text_openbay_order_import'] = $this->language->get('text_openbay_order_import'); $this->data['text_paypal_express'] = $this->language->get('text_paypal_manage'); $this->data['text_paypal_express_search'] = $this->language->get('text_paypal_search'); $this->data['text_recurring_profile'] = $this->language->get('text_recurring_profile'); if (!$this->user->isLogged() || !isset($this->request->get['token']) || !isset($this->session->data['token']) || ($this->request->get['token'] != $this->session->data['token'])) { $this->data['logged'] = ''; $this->data['home'] = $this->url->link('common/login', '', 'SSL'); } else { $this->data['logged'] = sprintf($this->language->get('text_logged'), $this->user->getUserName()); $this->data['pp_express_status'] = $this->config->get('pp_express_status'); $this->data['home'] = $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'); $this->data['affiliate'] = $this->url->link('sale/affiliate', 'token=' . $this->session->data['token'], 'SSL'); $this->data['attribute'] = $this->url->link('catalog/attribute', 'token=' . $this->session->data['token'], 'SSL'); $this->data['attribute_group'] = $this->url->link('catalog/attribute_group', 'token=' . $this->session->data['token'], 'SSL'); $this->data['backup'] = $this->url->link('tool/backup', 'token=' . $this->session->data['token'], 'SSL'); $this->data['banner'] = $this->url->link('design/banner', 'token=' . $this->session->data['token'], 'SSL'); $this->data['category'] = $this->url->link('catalog/category', 'token=' . $this->session->data['token'], 'SSL'); $this->data['country'] = $this->url->link('localisation/country', 'token=' . $this->session->data['token'], 'SSL'); $this->data['coupon'] = $this->url->link('sale/coupon', 'token=' . $this->session->data['token'], 'SSL'); $this->data['currency'] = $this->url->link('localisation/currency', 'token=' . $this->session->data['token'], 'SSL'); $this->data['customer'] = $this->url->link('sale/customer', 'token=' . $this->session->data['token'], 'SSL'); $this->data['customer_fields'] = $this->url->link('sale/customer_field', 'token=' . $this->session->data['token'], 'SSL'); $this->data['customer_group'] = $this->url->link('sale/customer_group', 'token=' . $this->session->data['token'], 'SSL'); $this->data['customer_ban_ip'] = $this->url->link('sale/customer_ban_ip', 'token=' . $this->session->data['token'], 'SSL'); $this->data['custom_field'] = $this->url->link('design/custom_field', 'token=' . $this->session->data['token'], 'SSL'); $this->data['download'] = $this->url->link('catalog/download', 'token=' . $this->session->data['token'], 'SSL'); $this->data['error_log'] = $this->url->link('tool/error_log', 'token=' . $this->session->data['token'], 'SSL'); $this->data['feed'] = $this->url->link('extension/feed', 'token=' . $this->session->data['token'], 'SSL'); $this->data['filter'] = $this->url->link('catalog/filter', 'token=' . $this->session->data['token'], 'SSL'); $this->data['geo_zone'] = $this->url->link('localisation/geo_zone', 'token=' . $this->session->data['token'], 'SSL'); $this->data['information'] = $this->url->link('catalog/information', 'token=' . $this->session->data['token'], 'SSL'); $this->data['language'] = $this->url->link('localisation/language', 'token=' . $this->session->data['token'], 'SSL'); $this->data['layout'] = $this->url->link('design/layout', 'token=' . $this->session->data['token'], 'SSL'); $this->data['logout'] = $this->url->link('common/logout', 'token=' . $this->session->data['token'], 'SSL'); $this->data['contact'] = $this->url->link('sale/contact', 'token=' . $this->session->data['token'], 'SSL'); $this->data['manager'] = $this->url->link('extension/manager', 'token=' . $this->session->data['token'], 'SSL'); $this->data['manufacturer'] = $this->url->link('catalog/manufacturer', 'token=' . $this->session->data['token'], 'SSL'); $this->data['module'] = $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL'); $this->data['option'] = $this->url->link('catalog/option', 'token=' . $this->session->data['token'], 'SSL'); $this->data['order'] = $this->url->link('sale/order', 'token=' . $this->session->data['token'], 'SSL'); $this->data['order_status'] = $this->url->link('localisation/order_status', 'token=' . $this->session->data['token'], 'SSL'); $this->data['payment'] = $this->url->link('extension/payment', 'token=' . $this->session->data['token'], 'SSL'); $this->data['product'] = $this->url->link('catalog/product', 'token=' . $this->session->data['token'], 'SSL'); $this->data['profile'] = $this->url->link('catalog/profile', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_sale_order'] = $this->url->link('report/sale_order', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_sale_tax'] = $this->url->link('report/sale_tax', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_sale_shipping'] = $this->url->link('report/sale_shipping', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_sale_return'] = $this->url->link('report/sale_return', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_sale_coupon'] = $this->url->link('report/sale_coupon', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_product_viewed'] = $this->url->link('report/product_viewed', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_product_purchased'] = $this->url->link('report/product_purchased', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_customer_online'] = $this->url->link('report/customer_online', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_customer_order'] = $this->url->link('report/customer_order', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_customer_reward'] = $this->url->link('report/customer_reward', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_customer_credit'] = $this->url->link('report/customer_credit', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_affiliate_commission'] = $this->url->link('report/affiliate_commission', 'token=' . $this->session->data['token'], 'SSL'); $this->data['review'] = $this->url->link('catalog/review', 'token=' . $this->session->data['token'], 'SSL'); $this->data['return'] = $this->url->link('sale/return', 'token=' . $this->session->data['token'], 'SSL'); $this->data['return_action'] = $this->url->link('localisation/return_action', 'token=' . $this->session->data['token'], 'SSL'); $this->data['return_reason'] = $this->url->link('localisation/return_reason', 'token=' . $this->session->data['token'], 'SSL'); $this->data['return_status'] = $this->url->link('localisation/return_status', 'token=' . $this->session->data['token'], 'SSL'); $this->data['shipping'] = $this->url->link('extension/shipping', 'token=' . $this->session->data['token'], 'SSL'); $this->data['setting'] = $this->url->link('setting/store', 'token=' . $this->session->data['token'], 'SSL'); $this->data['store'] = HTTP_CATALOG; $this->data['stock_status'] = $this->url->link('localisation/stock_status', 'token=' . $this->session->data['token'], 'SSL'); $this->data['tax_class'] = $this->url->link('localisation/tax_class', 'token=' . $this->session->data['token'], 'SSL'); $this->data['tax_rate'] = $this->url->link('localisation/tax_rate', 'token=' . $this->session->data['token'], 'SSL'); $this->data['total'] = $this->url->link('extension/total', 'token=' . $this->session->data['token'], 'SSL'); $this->data['user'] = $this->url->link('user/user', 'token=' . $this->session->data['token'], 'SSL'); $this->data['user_group'] = $this->url->link('user/user_permission', 'token=' . $this->session->data['token'], 'SSL'); $this->data['voucher'] = $this->url->link('sale/voucher', 'token=' . $this->session->data['token'], 'SSL'); $this->data['voucher_theme'] = $this->url->link('sale/voucher_theme', 'token=' . $this->session->data['token'], 'SSL'); $this->data['weight_class'] = $this->url->link('localisation/weight_class', 'token=' . $this->session->data['token'], 'SSL'); $this->data['length_class'] = $this->url->link('localisation/length_class', 'token=' . $this->session->data['token'], 'SSL'); $this->data['zone'] = $this->url->link('localisation/zone', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_show_menu'] = $this->config->get('openbaymanager_show_menu'); $this->data['openbay_link_extension'] = $this->url->link('extension/openbay', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_link_orders'] = $this->url->link('extension/openbay/orderList', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_link_items'] = $this->url->link('extension/openbay/itemList', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_link_ebay'] = $this->url->link('openbay/openbay', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_link_ebay_settings'] = $this->url->link('openbay/openbay/settings', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_link_ebay_links'] = $this->url->link('openbay/openbay/viewItemLinks', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_link_ebay_orderimport'] = $this->url->link('openbay/openbay/viewOrderImport', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_link_amazon'] = $this->url->link('openbay/amazon', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_link_amazon_settings'] = $this->url->link('openbay/amazon/settings', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_link_amazon_links'] = $this->url->link('openbay/amazon/itemLinks', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_link_amazonus'] = $this->url->link('openbay/amazonus', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_link_amazonus_settings'] = $this->url->link('openbay/amazonus/settings', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_link_amazonus_links'] = $this->url->link('openbay/amazonus/itemLinks', 'token=' . $this->session->data['token'], 'SSL'); $this->data['openbay_markets'] = array( 'ebay' => $this->config->get('openbay_status'), 'amazon' => $this->config->get('amazon_status'), 'amazonus' => $this->config->get('amazonus_status'), ); $this->data['paypal_express'] = $this->url->link('payment/pp_express', 'token=' . $this->session->data['token'], 'SSL'); $this->data['paypal_express_search'] = $this->url->link('payment/pp_express/search', 'token=' . $this->session->data['token'], 'SSL'); $this->data['recurring_profile'] = $this->url->link('sale/recurring', 'token=' . $this->session->data['token'], 'SSL'); $this->data['stores'] = array(); $this->load->model('setting/store'); $results = $this->model_setting_store->getStores(); foreach ($results as $result) { $this->data['stores'][] = array( 'name' => $result['name'], 'href' => $result['url'] ); } } $this->template = 'common/header.tpl'; $this->render(); } } ?>
и замените все
30 minutes ago, DronENG said:<operation error="skip">
на
30 minutes ago, DronENG said:<operation error="log">
Изменил.
-
Я не особо в этом разбираюсь можно поподробней, где именно смотреть.
Спасибо.
Spoiler<modification> <id>Flat Admin</id> <version>2.0.0</version> <vqmver>2.x.x</vqmver> <author>ThemeBooster.com</author> <!-- Языковые строки --> <file name="admin/language/russian/common/home.php"> <operation error="skip"> <search position="before"><![CDATA[?>]]></search> <add><![CDATA[ $_['text_logged_home'] = 'Добро пожаловать, %s!'; $_['text_menu_statistics'] = 'Статистика продаж'; $_['text_new_customers'] = 'Все покупатели'; $_['text_new_reviews'] = 'Отзывы в ожидании'; $_['text_year_sale'] = 'Продажи за год'; $_['text_today_sale'] = 'Продажи за день'; $_['text_month_sale'] = 'Продажи за месяц'; $_['text_week_sale'] = 'Продажи за неделю'; $_['text_pending_orders'] = 'Заказы в обработке'; $_['text_pending_orders_evidence'] = 'Новые заказы!'; $_['text_orders'] = 'Все заказы'; $_['text_new_affiliates'] = 'Партнерка'; $_['text_awaiting_customers'] = 'Новые покупатели'; $_['text_approval_customers_evidence'] = 'Новые покупатели: перейти к просмотру'; $_['text_view'] = 'Перейти'; $_['text_view_all'] = 'Посмотреть все'; $_['text_jump_to_statistics'] = 'Перейти к статистике'; $_['viewed_products_title'] = '5 наиболее просматриваемых товаров'; $_['bestsellers_title'] = 'Топ 5 товаров'; $_['top_customers_title'] = 'Топ 5 покупателей'; $_['top_coupon_title'] = 'Топ 5 купонов'; $_['item'] = ' шт. продано'; $_['items'] = ' шт. продано'; $_['time'] = ' раз'; $_['times'] = ' раз'; $_['number_order'] = ' заказ'; $_['number_orders'] = ' заказов'; $_['star_rating'] = ' оценка'; $_['stars_rating'] = ' оценка'; ]]></add> </operation> </file> <file name="admin/language/english/*/*.php"> <operation error="skip"> <search position="before"><![CDATA[?>]]></search> <add><![CDATA[ $_['text_pending_orders_evidence'] = 'Новые Отложенные ордера: нажмите, чтобы посмотреть!'; $_['text_approval_customers_evidence'] = 'В ожидании новых клиентов: нажмите, чтобы посмотреть!'; ]]></add> </operation> </file> <!-- Не изменяйте после этой строки (делать на свой страх и риск) --> <!-- Авторизоваться --> <file name="admin/view/template/common/login.tpl"> <operation error="skip"> <search position="replace" offset="42"><![CDATA[<div class="box" style="width: 400px; min-height: 300px; margin-top: 40px; margin-left: auto; margin-right: auto;">]]></search> <add><![CDATA[ <div class="box" id="admin-login"> <h1><?php echo $text_login; ?></h1> <?php if ($success) { ?> <div class="success"><?php echo $success; ?></div> <?php } ?> <?php if ($error_warning) { ?> <div class="warning"><?php echo $error_warning; ?></div> <?php } ?> <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form"> <p> <label for="username"><?php echo $entry_username; ?></label> <input class="username" type="text" name="username" value="<?php echo $username; ?>" /> </p> <p> <label for="password"><?php echo $entry_password; ?></label> <input class="password" type="password" name="password" value="<?php echo $password; ?>" /> </p> <a onclick="$('#form').submit();" class="button"><?php echo $button_login; ?></a> <?php if ($forgotten) { ?> <p><a href="<?php echo $forgotten; ?>"><?php echo $text_forgotten; ?></a></p> <?php } ?> <?php if ($redirect) { ?> <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" /> <?php } ?> </form> </div> </div> ]]></add> </operation> </file> <!-- Забытый пароль --> <file name="admin/view/template/common/forgotten.tpl"> <operation error="skip"> <search position="replace" offset="20"><![CDATA[<?php if ($error_warning) { ?>]]></search> <add><![CDATA[ <div class="box" id="admin-login"> <h1><?php echo $heading_title; ?></h1> <?php if ($error_warning) { ?> <div class="warning"><?php echo $error_warning; ?></div> <?php } ?> <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="forgotten"> <p> <label for="email"><?php echo $text_email; ?></label> <input class="email" type="text" name="email" value="<?php echo $email; ?>" /> </p> <p> <a onclick="$('#forgotten').submit();" class="button"><?php echo $button_reset; ?></a> <a href="<?php echo $cancel; ?>" class="button cancel"><?php echo $button_cancel; ?></a> </p> </form> </div> </div> ]]></add> </operation> </file> <!-- Администратор Логотип --> <file name="admin/controller/common/header.php"> <operation error="skip"> <search position="after"><![CDATA[$this->data['direction'] = $this->language->get('direction');]]></search> <add><![CDATA[$this->data['name'] = $this->config->get('config_name'); $this->load->model('sale/customer'); $this->data['total_customer'] = $this->model_sale_customer->getTotalCustomers(); $this->data['total_customer_approval'] = $this->model_sale_customer->getTotalCustomersAwaitingApproval(); $this->data['text_pending_orders_evidence'] = $this->language->get('text_pending_orders_evidence'); $this->data['text_approval_customers_evidence'] = $this->language->get('text_approval_customers_evidence'); $url = ''; if (!$this->user->isLogged() || !isset($this->request->get['token']) || !isset($this->session->data['token']) || ($this->request->get['token'] != $this->session->data['token'])) { $this->data['logged'] = ''; $this->data['home'] = $this->url->link('common/login', '', 'SSL'); } else { $this->data['link_to_sale'] = $this->url->link('sale/order', 'token=' . $this->session->data['token'] . $url, 'SSL'); $this->data['link_to_customers'] = $this->url->link('sale/customer', 'token=' . $this->session->data['token'] . $url, 'SSL'); } ]]></add> </operation> </file> <!-- Заменить stylesheet.css + логотип --> <file name="admin/view/template/common/header.tpl"> <operation error="skip"> <search position="replace"><![CDATA[<link rel="stylesheet" type="text/css" href="view/stylesheet/stylesheet.css" />]]></search> <add><![CDATA[<link rel="stylesheet" type="text/css" href="view/stylesheet/flat-stylesheet.css" />]]></add> </operation> <operation error="skip"> <search position="after"><![CDATA[<div class="div2"><img src="view/image/logo.png" title="<?php echo $heading_title; ?>" onclick="location = '<?php echo $home; ?>'" /></div>]]></search> <add><![CDATA[ <ul id="new-messages"> <li <?php if ($total_pending_order > "0") { echo "class='evidence-pending'"; } ?>><a title="<?php echo $text_pending_orders_evidence; ?>" href="<?php echo $link_to_sale; ?>&filter_order_status_id=1"><span><?php echo $total_pending_order; ?></span></a></li> <li <?php if ($total_customer_approval > "0") { echo "class='evidence-approval'"; } ?>><a title="<?php echo $text_approval_customers_evidence; ?>" href="<?php echo $link_to_customers; ?>&filter_approved=0"><span><?php echo $total_customer_approval; ?></span></a></li> </ul> ]]></add> </operation> </file> <!-- Панель приборов Новые блоки --> <file name="admin/controller/common/home.php"> <operation error="skip"> <search position="after"><![CDATA[$this->data['entry_range'] = $this->language->get('entry_range');]]></search> <add><![CDATA[ $this->language->load('common/header'); if (!$this->user->isLogged() || !isset($this->request->get['token']) || !isset($this->session->data['token']) || ($this->request->get['token'] != $this->session->data['token'])) { $this->data['logged'] = ''; $this->data['home'] = $this->url->link('common/login', '', 'SSL'); } else { $this->data['logged'] = sprintf($this->language->get('text_logged_home'), $this->user->getUserName()); $url = ''; if (!$this->user->isLogged() || !isset($this->request->get['token']) || !isset($this->session->data['token']) || ($this->request->get['token'] != $this->session->data['token'])) { $this->data['logged'] = ''; $this->data['home'] = $this->url->link('common/login', '', 'SSL'); } else { $this->data['home'] = $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'); } }]]></add> </operation> <operation error="skip"> <search position="after"> <![CDATA[$this->document->setTitle($this->language->get('heading_title'));]]> </search> <add><![CDATA[ $url = ''; $this->data['text_menu_statistics'] = $this->language->get('text_menu_statistics'); $this->data['menu_statistics'] = $this->url->link('report/sale_order', 'token=' . $this->session->data['token'] . $url, 'SSL'); $this->data['link_to_sale'] = $this->url->link('sale/order', 'token=' . $this->session->data['token'] . $url, 'SSL'); $this->data['link_to_customers'] = $this->url->link('sale/customer', 'token=' . $this->session->data['token'] . $url, 'SSL'); $this->data['link_to_reviews'] = $this->url->link('catalog/review', 'token=' . $this->session->data['token'] . $url, 'SSL'); $this->data['link_to_affiliates'] = $this->url->link('sale/affiliate', 'token=' . $this->session->data['token'] . $url, 'SSL'); $this->data['link_to_coupons'] = $this->url->link('report/sale_coupon', 'token=' . $this->session->data['token'] . $url, 'SSL'); $this->data['text_new_customers'] = $this->language->get('text_new_customers'); $this->data['text_new_reviews'] = $this->language->get('text_new_reviews'); $this->data['text_year_sale'] = $this->language->get('text_year_sale'); $this->data['text_today_sale'] = $this->language->get('text_today_sale'); $this->data['text_week_sale'] = $this->language->get('text_week_sale'); $this->data['text_month_sale'] = $this->language->get('text_month_sale'); $this->data['text_orders'] = $this->language->get('text_orders'); $this->data['text_view'] = $this->language->get('text_view'); $this->data['text_view_all'] = $this->language->get('text_view_all'); $this->data['text_jump_to_statistics'] = $this->language->get('text_jump_to_statistics'); $this->data['viewed_products_title'] = $this->language->get('viewed_products_title'); $this->data['bestsellers_title'] = $this->language->get('bestsellers_title'); $this->data['top_customers_title'] = $this->language->get('top_customers_title'); $this->data['top_coupon_title'] = $this->language->get('top_coupon_title'); $this->data['item'] = $this->language->get('item'); $this->data['items'] = $this->language->get('items'); $this->data['time'] = $this->language->get('time'); $this->data['times'] = $this->language->get('times'); $this->data['number_order'] = $this->language->get('number_order'); $this->data['number_orders'] = $this->language->get('number_orders'); $this->data['star_rating'] = $this->language->get('star_rating'); $this->data['stars_rating'] = $this->language->get('stars_rating'); ]]></add> </operation> <operation error="skip"><search position="before"><![CDATA[$this->data['text_total_sale_year']]]></search> <add><![CDATA[// Sales $this->data['text_total_sale_today'] = $this->language->get('text_total_sale_today'); $this->data['text_total_sale_week'] = $this->language->get('text_total_sale_week'); $this->data['text_total_sale_month'] = $this->language->get('text_total_sale_month'); $this->data['text_pending_orders'] = $this->language->get('text_pending_orders'); $this->data['text_new_affiliates'] = $this->language->get('text_new_affiliates'); $this->data['text_awaiting_customers'] = $this->language->get('text_awaiting_customers'); ]]></add> </operation> <operation error="skip"><search position="before"><![CDATA[$this->data['total_sale_year']]]></search> <add><![CDATA[// Sales $this->data['total_sale_today'] = $this->currency->format($this->model_sale_order->getTotalSalesByDay(date('D')), $this->config->get('config_currency')); $this->data['total_sale_week'] = $this->currency->format($this->model_sale_order->getTotalSalesByWeek(date('W')), $this->config->get('config_currency')); $this->data['total_sale_month'] = $this->currency->format($this->model_sale_order->getTotalSalesByMonth(date('M')), $this->config->get('config_currency')); $this->data['report_product_purchased'] = $this->url->link('report/product_purchased', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_product_viewed'] = $this->url->link('report/product_viewed', 'token=' . $this->session->data['token'], 'SSL'); $this->data['report_customer_order'] = $this->url->link('report/customer_order', 'token=' . $this->session->data['token'], 'SSL'); $this->data['review'] = $this->url->link('catalog/review', 'token=' . $this->session->data['token'], 'SSL'); $this->data['coupon'] = $this->url->link('report/sale_coupon', 'token=' . $this->session->data['token'], 'SSL'); ]]></add> </operation> <!-- Наиболее просматриваемые --> <operation error="skip"> <search position="after"><![CDATA[$this->response->setOutput($this->render());]]></search> <add><![CDATA[ $this->language->load('report/product_viewed'); $this->load->model('report/product'); $product_viewed_total = $this->model_report_product->getTotalProductsViewed($data); $product_views_total = $this->model_report_product->getTotalProductViews(); $results = $this->model_report_product->getProductsViewed($data); foreach ($results as $result) { if ($result['viewed']) { $percent = round($result['viewed'] / $product_views_total * 100, 2); } else { $percent = 0; } $this->data['products'][] = array( 'name' => $result['name'], 'model' => $result['model'], 'viewed' => $result['viewed'], 'percent' => $percent . '%' ); } $this->data['text_no_results'] = $this->language->get('text_no_results'); $this->response->setOutput($this->render()); ]]></add> </operation> <!-- Бестселлеры --> <operation error="skip"> <search position="after"><![CDATA[$this->response->setOutput($this->render());]]></search> <add><![CDATA[ $this->language->load('report/product_purchased'); $this->load->model('report/product'); $product_total = $this->model_report_product->getTotalPurchased($data); $results = $this->model_report_product->getPurchased($data); foreach ($results as $result) { $this->data['sellers'][] = array( 'name' => $result['name'], 'model' => $result['model'], 'quantity' => $result['quantity'], 'total' => $this->currency->format($result['total'], $this->config->get('config_currency')) ); } $this->load->model('localisation/order_status'); $this->response->setOutput($this->render()); ]]></add> </operation> <!-- Лучшие клиенты --> <operation error="skip"> <search position="after"><![CDATA[$this->response->setOutput($this->render());]]></search> <add><![CDATA[ $this->language->load('report/customer_order'); $this->load->model('report/customer'); $this->data['customers'] = array(); $customer_total = $this->model_report_customer->getTotalOrders($data); $results = $this->model_report_customer->getOrders($data); foreach ($results as $result) { $this->data['customers'][] = array( 'customer' => $result['customer'], 'email' => $result['email'], 'customer_group' => $result['customer_group'], 'status' => ($result['status'] ? $this->language->get('text_enabled') : $this->language->get('text_disabled')), 'orders' => $result['orders'], 'products' => $result['products'], 'total' => $this->currency->format($result['total'], $this->config->get('config_currency')), 'action' => $action ); } $this->load->model('localisation/order_status'); $this->response->setOutput($this->render()); ]]></add> </operation> <!-- Большинство Вернулись --> <operation error="skip"> <search position="after"><![CDATA[$this->response->setOutput($this->render());]]></search> <add><![CDATA[ $this->language->load('report/sale_coupon'); $this->load->model('report/coupon'); $this->data['coupons'] = array(); $coupon_total = $this->model_report_coupon->getTotalCoupons($data); $results = $this->model_report_coupon->getCoupons($data); foreach ($results as $result) { $this->data['coupons'][] = array( 'name' => $result['name'], 'code' => $result['code'], 'orders' => $result['orders'], 'total' => $this->currency->format($result['total'], $this->config->get('config_currency')) ); } $this->response->setOutput($this->render()); ]]></add> </operation> </file> <!-- Заказы в ожидании --> <file name="admin/controller/common/header.php"> <operation error="skip"><search position="before"><![CDATA[$this->data['stores'] = array();]]></search> <add><![CDATA[ $this->language->load('sale/order'); $this->load->model('sale/order'); $this->data['total_pending_order'] = $this->model_sale_order->getPendingOrders();]]></add> </operation> </file> <file name="admin/controller/common/home.php"> <operation error="skip"><search position="after"><![CDATA[$this->data['total_order'] = $this->model_sale_order->getTotalOrders();]]></search> <add><![CDATA[$this->data['total_pending_order'] = $this->model_sale_order->getPendingOrders();]]></add> </operation> </file> <!-- Продажа заказа --> <file name="admin/model/sale/order.php"> <operation error="skip"><search position="before"><![CDATA[public function getTotalSalesByYear($year) {]]></search> <add><![CDATA[ public function getTotalSalesByDay($day) { $query = $this->db->query("SELECT SUM(total) AS total FROM `" . DB_PREFIX . "order` WHERE order_status_id > '0' AND DATE(date_added) = DATE(NOW())"); return $query->row['total']; } public function getTotalSalesByWeek($week) { $query = $this->db->query("SELECT SUM(total) AS total FROM `" . DB_PREFIX . "order` WHERE order_status_id > '0' AND WEEK(date_added) = WEEK(NOW()) AND YEAR(date_added) = YEAR(NOW())"); return $query->row['total']; } public function getTotalSalesByMonth($month) { $query = $this->db->query("SELECT SUM(total) AS total FROM `" . DB_PREFIX . "order` WHERE order_status_id > '0' AND MONTH(date_added) = MONTH(NOW()) AND YEAR(date_added) = YEAR(NOW())"); return $query->row['total']; } ]]></add> </operation> <operation error="skip"><search position="before"><![CDATA[public function getTotalOrdersByStoreId($store_id) {]]></search> <add><![CDATA[ public function getTotalOrderByDay() { $query = $this->db->query("SELECT COUNT(*) AS total FROM `" . DB_PREFIX . "order` WHERE order_status_id > '0' AND DATE(date_added) = DATE(NOW())"); return $query->row['total']; } public function getTotalOrderByWeek() { $query = $this->db->query("SELECT COUNT(*) AS total FROM `" . DB_PREFIX . "order` WHERE order_status_id > '0' AND WEEK(date_added) = WEEK(NOW()) AND YEAR(date_added) = YEAR(NOW())"); return $query->row['total']; } public function getTotalOrderByMonth() { $query = $this->db->query("SELECT COUNT(*) AS total FROM `" . DB_PREFIX . "order` WHERE order_status_id > '0' AND MONTH(date_added) = MONTH(NOW()) AND YEAR(date_added) = YEAR(NOW())"); return $query->row['total']; } public function getTotalOrderByYear() { $query = $this->db->query("SELECT COUNT(*) AS total FROM `" . DB_PREFIX . "order` WHERE order_status_id > '0' AND YEAR(date_added) = YEAR(NOW()) AND YEAR(date_added) = YEAR(NOW())"); return $query->row['total']; } ]]></add> </operation> <operation error="skip"><search position="before"><![CDATA[public function getTotalOrdersByLanguageId]]></search> <add><![CDATA[ public function getPendingOrders() { $query = $this->db->query("SELECT COUNT(*) AS total FROM `" . DB_PREFIX . "order` WHERE order_status_id = '1'"); return $query->row['total']; } ]]></add> </operation> </file> <file name="admin/view/template/common/home.tpl"> <operation error="skip"> <search position="after"><![CDATA[<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>]]></search> <add><![CDATA[ <div id="breadcrumb-plus"> <span id="statistics"><a title="<?php echo $text_jump_to_statistics; ?>" id="link-to-statistics" href="<?php echo $home; ?>#this-year"><?php echo $text_menu_statistics; ?></a></span> <span id="calendar-date"><?php echo date("F j, Y"); ?></span> </div> ]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<h1><img src="view/image/home.png" alt="" /> <?php echo $heading_title; ?></h1>]]></search> <add><![CDATA[<h1><img src="view/image/home.png" alt="" /><?php echo $heading_title; ?></h1> <p><?php echo $logged; ?></p> ]]></add> </operation> <operation error="skip"> <search position="before"><![CDATA[<div class="content">]]></search> <add><![CDATA[ <div id="overview-buttons"> <ul> <li id="orders"><?php echo $text_orders; ?> <span><?php echo $total_order; ?></span> <a href="<?php echo $link_to_sale; ?>"><?php echo $text_view; ?></a></li> <li id="sales-today"><?php echo $text_today_sale; ?><span><?php echo $total_sale_today; ?></span> <a href="<?php echo $link_to_sale; ?>&filter_date_added=<?php echo date("Y-m-d"); ?>"><?php echo $text_view; ?></a></li> <li id="sales-week"><?php echo $text_week_sale; ?><span><?php echo $total_sale_week; ?></span> <a href="<?php echo $link_to_sale; ?>"><?php echo $text_view; ?></a></li> <li id="sales-month"><?php echo $text_month_sale; ?><span><?php echo $total_sale_month; ?></span> <a href="<?php echo $link_to_sale; ?>"><?php echo $text_view; ?></a></li> <li id="sales"><?php echo $text_year_sale; ?> <span><?php echo $total_sale_year; ?></span> <a href="<?php echo $link_to_sale; ?>"><?php echo $text_view; ?></a></li> <li id="new-affiliates" <?php if ($total_affiliate_approval > 0) { echo "class='evidence'"; } ?>><?php echo $text_new_affiliates; ?> <span><?php echo $total_affiliate_approval; ?></span> <a href="<?php echo $link_to_affiliates; ?>&filter_approved=0"><?php echo $text_view; ?></a></li> <li id="new-reviews" <?php if ($total_review_approval > 0) { echo "class='evidence'"; } ?>><?php echo $text_new_reviews; ?> <span><?php echo $total_review_approval; ?></span> <a href="<?php echo $link_to_reviews; ?>&sort=r.status&order=ASC"><?php echo $text_view; ?></a></li> <li id="pending-orders" <?php if ($total_pending_order > 0) { echo "class='evidence'"; } ?>><?php echo $text_pending_orders; ?> <span><?php echo $total_pending_order; ?></span> <a href="<?php echo $link_to_sale; ?>&filter_order_status_id=1"><?php echo $text_view; ?></a></li> <li id="awaiting-customers" <?php if ($total_customer_approval > 0) { echo "class='evidence'"; } ?>><?php echo $text_awaiting_customers; ?> <span><?php echo $total_customer_approval; ?></span> <a href="<?php echo $link_to_customers; ?>&filter_approved=0"><?php echo $text_view; ?></a></li> <li id="customers"><?php echo $text_new_customers; ?> <span><?php echo $total_customer; ?></span> <a href="<?php echo $link_to_customers; ?>"><?php echo $text_view; ?></a></li> </ul> </div> ]]></add> </operation> <operation error="skip"> <search position="before"><![CDATA[ xaxis: ]]></search> <add><![CDATA[ points: { show: true }, ]]></add> </operation> <operation error="skip"> <search position="replace" offset="36"><![CDATA[ <div class="latest"> ]]></search> <add><![CDATA[ <div class="additional-statistics"> <div class="dashboard-heading"><?php echo $bestsellers_title; ?></div> <div class="dashboard-content"> <p><a href="<?php echo $report_product_purchased; ?>"><?php echo $text_view_all; ?></a></p> <div id="bestsellers"></div> <script type="text/javascript"> $(document).ready(function(){ var datab = [ <?php $bs = "0"; if (!empty ($sellers)) { foreach($sellers as $seller) { $bs++; if($bs <= "5") { ?> ["<?php echo $seller['name'] ?> <?php echo $seller['model']; ?><span class=\"additional\"><?php echo $seller['quantity']; if ($seller['quantity'] == "1" ){ echo $item; } else { echo $items; } ?> = <?php echo $seller['total'] ?></span>", <?php echo $seller['quantity'] ?>] <?php if($bs != "5") { ?>,<?php } ?> <?php } else { break; } } } ?> ]; <?php if (!empty ($sellers)) { ?> var plot2 = $.jqplot ('bestsellers', [datab], <?php } else { ?> var plot2 = $.jqplot ('bestsellers', [[null]], <?php } ?> { shadow: false, seriesDefaults: { renderer:$.jqplot.DonutRenderer, rendererOptions: { sliceMargin: 1, startAngle: -90, showDataLabels: true, shadowDepth: 0 } }, legend: { show:true, location: 'e', xoffset: 12, }, grid: { shadow: false, borderWidth: 0, background:'#ffffff' }, seriesColors: [ "#058dc7", "#b99dc5", "#94a7b4", "#bdc197", "#a4c197", "#ed561b", "#9accc7", "#edef00", "#64e572"], } ); }); </script> </div> </div> <!-- --> <div class="additional-statistics" id="most-viewed-container"> <div class="dashboard-heading"><?php echo $viewed_products_title; ?></div> <div class="dashboard-content"> <p><a href="<?php echo $report_product_viewed; ?>"><?php echo $text_view_all; ?></a></p> <div id="most-viewed"></div> <script type="text/javascript"> $(document).ready(function(){ var data = [ <?php $mv = "0"; if (!empty ($products)) { foreach ($products as $product) { $mv++; if($mv <= "5") { ?> ["<?php echo $product['name'] ?> <?php echo $product['model']; ?> <span class=\"additional\"><?php echo $product['viewed']; if ($product['viewed'] == "1" ){ echo $time; } else { echo $times; } ?></span>", <?php echo $product['viewed'] ?>]<?php if($mv != "5") { ?>,<?php } ?> <?php } else { break; } } } ?> ]; <?php if (!empty ($products)) { ?> var plot1 = $.jqplot ('most-viewed', [data], <?php } else { ?> var plot1 = $.jqplot ('most-viewed', [[null]], <?php } ?> { shadow: false, seriesDefaults: { renderer:$.jqplot.DonutRenderer, rendererOptions: { sliceMargin: 1, startAngle: -90, showDataLabels: true, shadowDepth: 0 } }, legend: { show:true, location: 'e', xoffset: 12, }, grid: { shadow: false, borderWidth: 0, background:'#ffffff' }, seriesColors: [ "#058dc7", "#b99dc5", "#94a7b4", "#bdc197", "#a4c197", "#ed561b", "#9accc7", "#edef00", "#64e572"], } ); }); </script> </div> </div> <!-- --> <div class="additional-statistics"> <div class="dashboard-heading"><?php echo $top_customers_title; ?></div> <div class="dashboard-content"> <p><a href="<?php echo $report_customer_order; ?>"><?php echo $text_view_all; ?></a></p> <div id="topcustomers"></div> <script type="text/javascript"> $(document).ready(function(){ var datac = [ <?php $bc = "0"; if (!empty ($customers)) { foreach($customers as $customer) { $bc++; if($bc <= "5") { ?> ["<?php echo $customer['customer'] ?> <span class=\"additional\"><?php echo $customer['orders']; if ($customer['orders'] == "1" ){ echo $number_order; } else { echo $number_orders; }?> = <?php echo $customer['total'] ?></span>", <?php echo $customer['orders']; ?>]<?php if($bc != "5") { ?>,<?php } ?> <?php } else { break; } } } ?> ]; <?php if (!empty ($customers)) { ?> var plot3 = $.jqplot ('topcustomers', [datac], <?php } else { ?> var plot3 = $.jqplot ('topcustomers', [[null]], <?php } ?> { shadow: false, seriesDefaults: { renderer:$.jqplot.DonutRenderer, rendererOptions: { sliceMargin: 1, startAngle: -90, showDataLabels: true, shadowDepth: 0 } }, legend: { show:true, location: 'e', xoffset: 12, }, grid: { shadow: false, borderWidth: 0, background:'#ffffff' }, seriesColors: [ "#058dc7", "#b99dc5", "#94a7b4", "#bdc197", "#a4c197", "#ed561b", "#9accc7", "#edef00", "#64e572"], } ); }); </script> </div> </div> <!-- --> <div class="additional-statistics" id="top-coupon"> <div class="dashboard-heading"><?php echo $top_coupon_title; ?></div> <div class="dashboard-content"> <p><a href="<?php echo $coupon ?>"><?php echo $text_view_all; ?></a></p> <link class="include" rel="stylesheet" type="text/css" href="view/stylesheet/pie/jquery.jqplot.min.css" /> <div id="topcoupon"></div> <script type="text/javascript"> $(document).ready(function(){ var datar = [ <?php $mr = "0"; if (!empty ($coupons)) { foreach($coupons as $coupon) { $mr++; if($mr <= "5") { ?> ["<?php echo $coupon['name'] ?> <span class=\"additional\"><?php echo $coupon['orders']; if ($coupon['orders'] == "1" ){ echo $number_order; } else { echo $number_orders; }?> = <?php echo $coupon['total']; ?></span>", <?php echo $coupon['orders']; ?>]<?php if($mr != "5") { ?>,<?php } ?> <?php } else { break; } } } ?> ]; <?php if (!empty ($coupons)) { ?> var plot4 = $.jqplot ('topcoupon', [datar], <?php } else { ?> var plot4 = $.jqplot ('topcoupon', [[null]], <?php } ?> { shadow: false, seriesDefaults: { renderer:$.jqplot.DonutRenderer, rendererOptions: { sliceMargin: 1, startAngle: -90, showDataLabels: true, shadowDepth: 0 } }, legend: { show:true, location: 'e', xoffset: 12, }, grid: { shadow: false, borderWidth: 0, background:'#ffffff' }, seriesColors: [ "#058dc7", "#b99dc5", "#94a7b4", "#bdc197", "#a4c197", "#ed561b", "#9accc7", "#edef00", "#64e572"], } ); }); </script> <script class="include" type="text/javascript" src="view/javascript/pie/jquery.jqplot.min.js"></script> <script class="include" language="javascript" type="text/javascript" src="view/javascript/pie/jqplot.pieRenderer.min.js"></script> <script class="include" language="javascript" type="text/javascript" src="view/javascript/pie/jqplot.donutRenderer.min.js"></script> <script class="include" language="javascript" type="text/javascript" src="view/javascript/pie/jqplot.highlighter.min.js"></script> <script class="include" language="javascript" type="text/javascript" src="view/javascript/pie/jqplot.dateAxisRenderer.min.js"></script> </div> </div> ]]></add> </operation> </file> <!-- Большие Изображения продуктов --> <file name="admin/controller/catalog/product.php"> <operation error="skip"> <search position="replace"><![CDATA[$image = $this->model_tool_image->resize($result['image'], 40, 40);]]></search> <add><![CDATA[$image = $this->model_tool_image->resize($result['image'], 120, 120);]]></add> </operation> </file> <!-- Верхние кнопки --> <file name="admin/view/template/*/*.tpl"> <operation error="skip"> <search position="replace"><![CDATA[<div class="buttons"><a href="<?php echo $repair; ?>" class="button"><?php echo $button_repair; ?></a><a href="<?php echo $insert; ?>" class="button"><?php echo $button_insert; ?></a><a onclick="$('#form').submit();" class="button"><?php echo $button_delete; ?></a></div>]]></search> <add><![CDATA[<div class="buttons"><a href="<?php echo $insert; ?>" class="button insert"><?php echo $button_insert; ?></a><a href="<?php echo $repair; ?>" class="button repair"><?php echo $button_repair; ?></a><a onclick="$('#form').submit();" class="button delete"><?php echo $button_delete; ?></a></div>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<div class="buttons"><a href="<?php echo $insert; ?>" class="button"><?php echo $button_insert; ?></a><a onclick="$('#form').attr('action', '<?php echo $copy; ?>'); $('#form').submit();" class="button"><?php echo $button_copy; ?></a><a onclick="$('form').submit();" class="button"><?php echo $button_delete; ?></a></div>]]></search> <add><![CDATA[<div class="buttons"><a href="<?php echo $insert; ?>" class="button insert"><?php echo $button_insert; ?></a><a onclick="$('#form').attr('action', '<?php echo $copy; ?>'); $('#form').submit();" class="button copy"><?php echo $button_copy; ?></a><a onclick="$('#form').submit();" class="button delete"><?php echo $button_delete; ?></a></div>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[[ <a href="<?php echo $action['href']; ?>"><?php echo $action['text']; ?></a> ]]]></search> <add><![CDATA[<a class="action-link" href="<?php echo $action['href']; ?>"><?php echo $action['text']; ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<td class="center"><img src="<?php echo $product['image']; ?>" alt="<?php echo $product['name']; ?>" style="padding: 1px; border: 1px solid #DDDDDD;" /></td>]]></search> <add><![CDATA[<td class="center"><img src="<?php echo $product['image']; ?>" alt="<?php echo $product['name']; ?>" /></td>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[[ <a href="<?php echo $action['href']; ?>"><?php echo $action['text']; ?></a> ]]]></search> <add><![CDATA[<a class="action-link" href="<?php echo $action['href']; ?>"><?php echo $action['text']; ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<div class="buttons"><a href="<?php echo $insert; ?>" class="button"><?php echo $button_insert; ?></a><a onclick="$('form').submit();" class="button"><?php echo $button_delete; ?></a></div>]]></search> <add><![CDATA[<div class="buttons"><a href="<?php echo $insert; ?>" class="button insert"><?php echo $button_insert; ?></a><a onclick="$('#form').submit();" class="button delete"><?php echo $button_delete; ?></a></div>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[[ <a href="<?php echo $action['href']; ?>"><?php echo $action['text']; ?></a> ]]]></search> <add><![CDATA[<a class="action-link" href="<?php echo $action['href']; ?>"><?php echo $action['text']; ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[[<a href="<?php echo $action['href'] ?>"><?php echo $action['name'] ?></a>]]]></search> <add><![CDATA[<a class="action-link" href="<?php echo $action['href']; ?>"><?php echo $action['name']; ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a href="<?php echo $cancel; ?>" class="button"><?php echo $button_cancel; ?></a></div>]]></search> <add><![CDATA[<div class="buttons"><a onclick="$('#form').submit();" class="button save"><?php echo $button_save; ?></a><a href="<?php echo $cancel; ?>" class="button cancel"><?php echo $button_cancel; ?></a></div>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[class="button"><?php echo $button_add_attribute; ?></a>]]></search> <add><![CDATA[class="button insert"><?php echo $button_add_attribute; ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[class="button"><?php echo $button_remove; ?></a>]]></search> <add><![CDATA[class="button delete"><?php echo $button_remove; ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[class="button"><?php echo $button_add_option_value; ?></a>]]></search> <add><![CDATA[class="button insert"><?php echo $button_add_option_value; ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[class="button"><?php echo $button_add_profile ?></a>]]></search> <add><![CDATA[class="button insert"><?php echo $button_add_profile ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a class="button" onclick="$('#profile]]></search> <add><![CDATA[<a class="button delete" onclick="$('#profile]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a class="button" onclick="$(\'#profile-row']]></search> <add><![CDATA[<a class="button delete" onclick="$(\'#profile-row']]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[class="button"><?php echo $button_add_discount; ?>]]></search> <add><![CDATA[class="button insert"><?php echo $button_add_discount; ?>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[class="button"><?php echo $button_add_special; ?>]]></search> <add><![CDATA[class="button insert"><?php echo $button_add_special; ?>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[class="button"><?php echo $button_add_image; ?>]]></search> <add><![CDATA[class="button insert"><?php echo $button_add_image; ?>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a onclick="image_upload]]></search> <add><![CDATA[<a class="upload-image" onclick="image_upload]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[class="button"><?php echo $button_add_filter; ?>]]></search> <add><![CDATA[class="button insert"><?php echo $button_add_filter; ?>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[.remove();" class="button">]]></search> <add><![CDATA[.remove();" class="button delete">]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[[ <a href="<?php echo $action['href']; ?>"><?php echo $action['text']; ?></a> ]]]></search> <add><![CDATA[<a class="action-link" href="<?php echo $action['href']; ?>"><?php echo $action['text']; ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a href="<?php echo $cancel; ?>" class="button"><?php echo $button_cancel; ?></a></div>]]></search> <add><![CDATA[<div class="buttons"><a onclick="$('#form').submit();" class="button save"><?php echo $button_save; ?></a><a href="<?php echo $cancel; ?>" class="button cancel"><?php echo $button_cancel; ?></a></div>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a onclick="addModule();" class="button">]]></search> <add><![CDATA[<a onclick="addModule();" class="button insert">]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[.remove();" class="button">]]></search> <add><![CDATA[.remove();" class="button delete">]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a class="button" onclick="$('#form').submit()"><span><?php echo $button_save; ?></span></a>]]></search> <add><![CDATA[<a class="button save" onclick="$('#form').submit()"><span><?php echo $button_save; ?></span></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a onclick="location = '<?php echo $cancel; ?>';" class="button"><span><?php echo $button_cancel; ?></span></a>]]></search> <add><![CDATA[<a onclick="location = '<?php echo $cancel; ?>';" class="button cancel"><span><?php echo $button_cancel; ?></span></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a onclick="image_upload]]></search> <add><![CDATA[<a class="upload-image" onclick="image_upload]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a href="<?php echo $insert; ?>" class="button"><?php echo $button_insert; ?></a><a onclick="$('form').submit();" class="button"><?php echo $button_delete; ?></a>]]></search> <add><![CDATA[<a href="<?php echo $insert; ?>" class="button insert"><?php echo $button_insert; ?></a><a onclick="$('form').submit();" class="button delete"><?php echo $button_delete; ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a onclick="addRoute();" class="button">]]></search> <add><![CDATA[<a onclick="addRoute();" class="button insert">]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a onclick="addImage();" class="button">]]></search> <add><![CDATA[<a onclick="addImage();" class="button insert">]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a onclick="$(this).parent().find(':checkbox').attr('checked', true);"><?php echo $text_select_all; ?></a> / <a onclick="$(this).parent().find(':checkbox').attr('checked', false);"><?php echo $text_unselect_all; ?></a></td>]]></search> <add><![CDATA[<a class="select-all" onclick="$(this).parent().find(':checkbox').attr('checked', true);"><?php echo $text_select_all; ?></a> <a class="unselect-all" onclick="$(this).parent().find(':checkbox').attr('checked', false);"><?php echo $text_unselect_all; ?></a></td>]]></add> </operation> </file> <!-- Для OpenBay --> <file name="admin/view/template/module/openbaypro.tpl"> <operation error="skip"> <search position="replace"><![CDATA[<a href="<?php echo $cancel; ?>" class="button">]]></search> <add><![CDATA[<a href="<?php echo $cancel; ?>" class="button cancel">]]></add> </operation> </file> <!-- Продажи --> <file name="admin/view/template/sale/*.tpl"> <operation error="skip"> <search position="replace"><![CDATA[<a onclick="$('#form').attr('action', '<?php echo $invoice; ?>'); $('#form').attr('target', '_blank'); $('#form').submit();" class="button"><?php echo $button_invoice; ?></a><a href="<?php echo $insert; ?>" class="button"><?php echo $button_insert; ?></a><a onclick="$('#form').attr('action', '<?php echo $delete; ?>'); $('#form').attr('target', '_self'); $('#form').submit();" class="button"><?php echo $button_delete; ?></a>]]></search> <add><![CDATA[<a onclick="$('#form').attr('action', '<?php echo $invoice; ?>'); $('#form').attr('target', '_blank'); $('#form').submit();" class="button invoice"><?php echo $button_invoice; ?></a><a href="<?php echo $insert; ?>" class="button insert"><?php echo $button_insert; ?></a><a onclick="$('#form').attr('action', '<?php echo $delete; ?>'); $('#form').attr('target', '_self'); $('#form').submit();" class="button delete"><?php echo $button_delete; ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a href="<?php echo $insert; ?>" class="button"><?php echo $button_insert; ?></a><a onclick="document.getElementById('form').submit();" class="button"><?php echo $button_delete; ?></a>]]></search> <add><![CDATA[<a href="<?php echo $insert; ?>" class="button insert"><?php echo $button_insert; ?></a><a onclick="document.getElementById('form').submit();" class="button delete"><?php echo $button_delete; ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a onclick="$('form').attr('action', '<?php echo $approve; ?>'); $('form').submit();" class="button"><?php echo $button_approve; ?></a><a href="<?php echo $insert; ?>" class="button"><?php echo $button_insert; ?></a><a onclick="$('form').attr('action', '<?php echo $delete; ?>'); $('form').submit();" class="button"><?php echo $button_delete; ?></a>]]></search> <add><![CDATA[<a onclick="$('form').attr('action', '<?php echo $approve; ?>'); $('form').submit();" class="button approve"><?php echo $button_approve; ?></a><a href="<?php echo $insert; ?>" class="button insert"><?php echo $button_insert; ?></a><a onclick="$('form').attr('action', '<?php echo $delete; ?>'); $('form').submit();" class="button delete"><?php echo $button_delete; ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<a href="<?php echo $invoice; ?>" target="_blank" class="button"><?php echo $button_invoice; ?></a><a href="<?php echo $cancel; ?>" class="button"><?php echo $button_cancel; ?></a>]]></search> <add><![CDATA[<a href="<?php echo $invoice; ?>" target="_blank" class="button invoice"><?php echo $button_invoice; ?></a><a href="<?php echo $cancel; ?>" class="button cancel"><?php echo $button_cancel; ?></a>]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<div class="buttons"><a id="button-send" onclick="send('index.php?route=sale/contact/send&token=<?php echo $token; ?>');" class="button"><?php echo $button_send; ?></a><a href="<?php echo $cancel; ?>" class="button"><?php echo $button_cancel; ?></a></div>]]></search> <add><![CDATA[<div class="buttons"><a id="button-send" onclick="send('index.php?route=sale/contact/send&token=<?php echo $token; ?>');" class="button send"><?php echo $button_send; ?></a><a href="<?php echo $cancel; ?>" class="button cancel"><?php echo $button_cancel; ?></a></div>]]></add> </operation> </file> <file name="admin/view/template/sale/order_list.tpl"> <operation error="skip"> <search position="replace"><![CDATA[<table class="list">]]></search> <add><![CDATA[<table class="list" id="order-list">]]></add> </operation> </file> <!-- Средство резервного копирования --> <file name="admin/view/template/tool/backup.tpl"> <operation error="skip"> <search position="replace"><![CDATA[<a onclick="$('#restore').submit();" class="button"><?php echo $button_restore; ?></a><a onclick="$('#backup').submit();" class="button"><?php echo $button_backup; ?></a>]]></search> <add><![CDATA[<a onclick="$('#restore').submit();" class="button restore"><?php echo $button_restore; ?></a><a onclick="$('#backup').submit();" class="button save"><?php echo $button_backup; ?></a>]]></add> </operation> </file> <!-- Предварительная нагрузка --> <file name="admin/view/template/common/header.tpl"> <operation error="skip"> <search position="after"><![CDATA[<body>]]></search> <add><![CDATA[<div id="preloader"><div id="status"> </div></div>]]></add> </operation> </file> <!-- Наверх + Исправлены кнопки + пополнение --> <file name="admin/view/template/common/footer.tpl"> <operation error="skip"> <search position="before"><![CDATA[</body>]]></search> <add><![CDATA[ <a href="#" class="scrollup">Scroll up</a> <script type="text/javascript"> jQuery("document").ready(function($){ var nav = $('.heading'); $(window).scroll(function () { if ($(this).scrollTop() > 139) { nav.addClass("fixed-heading"); } else { nav.removeClass("fixed-heading"); } }); $(window).load(function() { $("#status").fadeOut(); $("#preloader").delay(350).fadeOut("slow"); }) /* Scroll to Top */ $(document).ready(function(){ $(window).scroll(function(){ if ($(this).scrollTop() > 400) { $('.scrollup').fadeIn(); } else { $('.scrollup').fadeOut(); } }); $('.scrollup').click(function(){ $("html, body").animate({ scrollTop: 0 }, 1200); return false; }); /**/ $("#link-to-statistics").click(function() { $('html, body').animate({ scrollTop: $("#this-year").offset().top -200 }, 1500); }); }); }); </script> ]]></add> </operation> </file> <!-- Отключить Обзор + Мульти Графики --> <file name="admin/view/template/common/home.tpl"> <operation error="skip"> <search position="replace" offset="38"><![CDATA[<div class="overview">]]></search> <add><![CDATA[]]></add> </operation> <operation error="skip"> <search position="replace" offset="13"><![CDATA[<div class="statistic">]]></search> <add><![CDATA[ <div class="latest"> <div class="dashboard-heading"><?php echo $text_latest_10_orders; ?></div> <div class="dashboard-content"> <table class="list"> <thead> <tr> <td class="right"><?php echo $column_order; ?></td> <td class="left"><?php echo $column_customer; ?></td> <td class="left"><?php echo $column_status; ?></td> <td class="left"><?php echo $column_date_added; ?></td> <td class="right"><?php echo $column_total; ?></td> <td class="right"><?php echo $column_action; ?></td> </tr> </thead> <tbody> <?php if ($orders) { ?> <?php foreach ($orders as $order) { ?> <tr> <td class="right"><?php echo $order['order_id']; ?></td> <td class="left"><?php echo $order['customer']; ?></td> <td class="left"><?php echo $order['status']; ?></td> <td class="left"><?php echo $order['date_added']; ?></td> <td class="right"><?php echo $order['total']; ?></td> <td class="right"><?php foreach ($order['action'] as $action) { ?> [ <a href="<?php echo $action['href']; ?>"><?php echo $action['text']; ?></a> ] <?php } ?></td> </tr> <?php } ?> <?php } else { ?> <tr> <td class="center" colspan="6"><?php echo $text_no_results; ?></td> </tr> <?php } ?> </tbody> </table> </div> </div> <div class="statistic" id="this-year"> <div class="range"><?php echo $text_year; ?> <select id="range" onchange="getSalesChart(this.value)"> <option value="year"><?php echo $text_year; ?></option> </select> </div> <div class="dashboard-heading"><?php echo $text_statistics; ?>: <?php echo $text_year; ?></div> <div class="dashboard-content"> <div id="report"></div> </div> </div> <div class="statistic" id="day-statistic"> <div class="range"><?php echo $text_day; ?> <select id="ranged" onchange="getSalesChart(this.value)"> <option value="day"><?php echo $text_day; ?></option> </select> </div> <div class="dashboard-heading"><?php echo $text_statistics; ?>: <?php echo $text_day; ?></div> <div class="dashboard-content"> <div id="reportd"></div> </div> </div> <div class="statistic" id="week-statistic"> <div class="range"><?php echo $text_week; ?> <select id="rangew" onchange="getSalesChart(this.value)"> <option value="week"><?php echo $text_week; ?></option> </select> </div> <div class="dashboard-heading"><?php echo $text_statistics; ?>: <?php echo $text_week; ?></div> <div class="dashboard-content"> <div id="reportw"></div> </div> </div> <div class="statistic" id="month-statistic"> <div class="range"><?php echo $text_month; ?> <select id="rangem" onchange="getSalesChart(this.value)"> <option value="month"><?php echo $text_month; ?></option> </select> </div> <div class="dashboard-heading"><?php echo $text_statistics; ?>: <?php echo $text_month; ?></div> <div class="dashboard-content"> <div id="reportm"></div> </div> </div> ]]></add> </operation> <operation error="skip"> <search position="before"><![CDATA[<?php echo $footer; ?>]]></search> <add><![CDATA[ <script type="text/javascript"><!-- function getSalesChart(range) { $.ajax({ type: 'get', url: 'index.php?route=common/home/chart&token=<?php echo $token; ?>&range=' + range, dataType: 'json', async: false, success: function(json) { var plot = $.plot("#reportd", [json.order, json.customer], { series: { lines: { show: true, fill: true, lineWidth: 1 }, points: { show: true } }, grid: { borderWidth: 0, hoverable: true, clickable: true, backgroundColor: '#FFF' }, xaxis: { ticks: json.xaxis } }); function showTooltip(x, y, contents) { $('<div id="tooltip">' + contents + '</div>').css({ position: 'absolute', display: 'none', top: y - 25, left: x + 5, color: '#FFF', border: '1px solid #333', padding: '1px 5px', 'background-color': '#666' }).appendTo("body").fadeIn(1000); } var previousPoint = null; $("#reportd").bind("plothover", function (event, pos, item) { if (item) { if (previousPoint != item.dataIndex) { previousPoint = item.dataIndex; $("#tooltip").remove(); var x = item.datapoint[0].toFixed(0), y = item.datapoint[1].toFixed(0); showTooltip(item.pageX, item.pageY, y); } } else { $("#tooltip").fadeOut(800); previousPoint = null; } }); } }); } getSalesChart($('#ranged').val()); //--></script> <script type="text/javascript"><!-- function getSalesChart(range) { $.ajax({ type: 'get', url: 'index.php?route=common/home/chart&token=<?php echo $token; ?>&range=' + range, dataType: 'json', async: false, success: function(json) { var plot = $.plot("#reportw", [json.order, json.customer], { series: { lines: { show: true, fill: true, lineWidth: 1 }, points: { show: true } }, grid: { borderWidth: 0, hoverable: true, clickable: true, backgroundColor: '#FFF' }, xaxis: { ticks: json.xaxis } }); function showTooltip(x, y, contents) { $('<div id="tooltip">' + contents + '</div>').css({ position: 'absolute', display: 'none', top: y - 25, left: x + 5, color: '#FFF', border: '1px solid #333', padding: '1px 5px', 'background-color': '#666' }).appendTo("body").fadeIn(1000); } var previousPoint = null; $("#reportw").bind("plothover", function (event, pos, item) { if (item) { if (previousPoint != item.dataIndex) { previousPoint = item.dataIndex; $("#tooltip").remove(); var x = item.datapoint[0].toFixed(0), y = item.datapoint[1].toFixed(0); showTooltip(item.pageX, item.pageY, y); } } else { $("#tooltip").fadeOut(800); previousPoint = null; } }); } }); } getSalesChart($('#rangew').val()); //--></script> <script type="text/javascript"><!-- function getSalesChart(range) { $.ajax({ type: 'get', url: 'index.php?route=common/home/chart&token=<?php echo $token; ?>&range=' + range, dataType: 'json', async: false, success: function(json) { var plot = $.plot("#reportm", [json.order, json.customer], { series: { lines: { show: true, fill: true, lineWidth: 1 }, points: { show: true } }, grid: { borderWidth: 0, hoverable: true, clickable: true, backgroundColor: '#FFF' }, xaxis: { ticks: json.xaxis } }); function showTooltip(x, y, contents) { $('<div id="tooltip">' + contents + '</div>').css({ position: 'absolute', display: 'none', top: y - 25, left: x + 5, color: '#FFF', border: '1px solid #333', padding: '1px 5px', 'background-color': '#666' }).appendTo("body").fadeIn(1000); } var previousPoint = null; $("#reportm").bind("plothover", function (event, pos, item) { if (item) { if (previousPoint != item.dataIndex) { previousPoint = item.dataIndex; $("#tooltip").remove(); var x = item.datapoint[0].toFixed(0), y = item.datapoint[1].toFixed(0); showTooltip(item.pageX, item.pageY, y); } } else { $("#tooltip").fadeOut(800); previousPoint = null; } }); } }); } getSalesChart($('#rangem').val()); //--></script> ]]></add> </operation> <operation error="skip"> <search position="before"><![CDATA[backgroundColor: '#FFFFFF']]></search> <add><![CDATA[borderWidth: 0,]]></add> </operation> <operation error="skip"> <search position="before"><![CDATA[grid: {]]></search> <add><![CDATA[colors: ["#81a8d2", "#bb9d9c"],]]></add> </operation> <operation error="skip"> <search position="replace" offset="35"><![CDATA[<script type="text/javascript" src="view/javascript/jquery/flot/jquery.flot.js"></script> ]]></search> <add><![CDATA[ <script type="text/javascript" src="view/javascript/jquery/flot/jquery.flot.js"></script> <script type="text/javascript"><!-- function getSalesChart(range) { $.ajax({ type: 'get', url: 'index.php?route=common/home/chart&token=<?php echo $token; ?>&range=' + range, dataType: 'json', async: false, success: function(json) { var plot = $.plot("#report", [json.order, json.customer], { series: { lines: { show: true, fill: true, lineWidth: 1 }, points: { show: true } }, colors: ["#81a8d2", "#bb9d9c"], grid: { borderWidth: 0, hoverable: true, clickable: true, backgroundColor: '#FFF' }, xaxis: { ticks: json.xaxis } }); function showTooltip(x, y, contents) { $('<div id="tooltip">' + contents + '</div>').css({ position: 'absolute', display: 'none', top: y - 25, left: x + 5, color: '#FFF', border: '1px solid #333', padding: '1px 5px', 'background-color': '#666' }).appendTo("body").fadeIn(1000); } var previousPoint = null; $("#report").bind("plothover", function (event, pos, item) { if (item) { if (previousPoint != item.dataIndex) { previousPoint = item.dataIndex; $("#tooltip").remove(); var x = item.datapoint[0].toFixed(0), y = item.datapoint[1].toFixed(0); showTooltip(item.pageX, item.pageY, y); } } else { $("#tooltip").fadeOut(800); previousPoint = null; } }); } }); } getSalesChart($('#range').val()); //--></script> ]]></add> </operation> </file> <!-- Список категории с миниатюрами --> <file name="admin/controller/catalog/category.php"> <operation error="skip"> <search position="before"><![CDATA[$action = array();]]></search> <add><![CDATA[$this->load->model('tool/image'); $cat_img_query = $this->db->query("SELECT image FROM " . DB_PREFIX . "category WHERE category_id = '" . (int)$result['category_id'] . "'"); foreach ($cat_img_query->rows as $query) { $image = $query['image']; } if (!empty($image) && $image && file_exists(DIR_IMAGE . $image)) { $thumb = $this->model_tool_image->resize($image, 120, 120); } else { $thumb = $this->model_tool_image->resize('no_image.jpg', 40, 40); }]]></add> </operation> <operation> <search position="after"><![CDATA[$this->data['categories'][] = array(]]></search> <add><![CDATA['image' => $thumb,]]></add> </operation> <operation> <search position="before"><![CDATA[$this->data['column_name'] = $this->language->get('column_name');]]></search> <add><![CDATA[$this->data['column_image'] = $this->language->get('column_image');]]></add> </operation> </file> <file name="admin/view/template/catalog/category_list.tpl"> <operation error="skip"> <search position="before"><![CDATA[<td class="left"><?php echo $column_name; ?></td>]]></search> <add><![CDATA[<td class="center"><?php echo $column_image; ?></td>]]></add> </operation> <operation error="skip"> <search position="before"><![CDATA[<td class="left"><?php echo $category['name']; ?></td>]]></search> <add><![CDATA[<td class="center"><img src="<?php echo $category['image']; ?>" alt="<?php echo $category['name']; ?>" title="<?php echo $category['name']; ?>" style="padding: 1px; border: 1px solid #DDDDDD;" /></td>]]></add> </operation> </file> <file name="admin/language/english/catalog/category.php"> <operation error="skip"> <search position="before"><![CDATA[?>]]></search> <add><![CDATA[$_['column_image'] = 'Image';]]></add> </operation> </file> <!-- Иконки для заголовков --> <file name="admin/view/template/*/*.tpl"> <operation error="skip"> <search position="replace"><![CDATA[<h1><img src="view/image/]]></search> <add><![CDATA[<h1><img src="view/image/flat-image/]]></add> </operation> </file> <!-- Иконки для навигации и блокировки --> <file name="admin/view/template/common/header.tpl"> <operation error="skip"> <search position="replace"><![CDATA[<div class="div3"><img src="view/image/lock.png"]]></search> <add><![CDATA[<div class="div3"><img src="view/image/flat-image/lock.png"]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<li id="dashboard"><a href="<?php echo $home; ?>" class="top">]]></search> <add><![CDATA[<li id="dashboard"><a href="<?php echo $home; ?>" class="top"><img src="view/image/flat-image/dashboard-menu.png" alt="" />]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<li id="catalog"><a class="top">]]></search> <add><![CDATA[<li id="catalog"><a class="top"><img src="view/image/flat-image/catalog-menu.png" alt="" />]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<li id="extension"><a class="top">]]></search> <add><![CDATA[<li id="extension"><a class="top"><img src="view/image/flat-image/extension-menu.png" alt="" />]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<li id="sale"><a class="top">]]></search> <add><![CDATA[<li id="sale"><a class="top"><img src="view/image/flat-image/sale-menu.png" alt="" />]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<li id="system"><a class="top">]]></search> <add><![CDATA[<li id="system"><a class="top"><img src="view/image/flat-image/system-menu.png" alt="" />]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<li id="reports"><a class="top">]]></search> <add><![CDATA[<li id="reports"><a class="top"><img src="view/image/flat-image/report-menu.png" alt="" />]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<li id="help"><a class="top">]]></search> <add><![CDATA[<li id="help"><a class="top"><img src="view/image/flat-image/help-menu.png" alt="" />]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<li id="store"><a href="<?php echo $store; ?>" target="_blank" class="top">]]></search> <add><![CDATA[<li id="store"><a href="<?php echo $store; ?>" target="_blank" class="top"><img src="view/image/flat-image/store-menu.png" alt="" />]]></add> </operation> <operation error="skip"> <search position="replace"><![CDATA[<li><a class="top" href="<?php echo $logout; ?>">]]></search> <add><![CDATA[<li><a class="top" href="<?php echo $logout; ?>"><img src="view/image/flat-image/logout-menu.png" alt="" />]]></add> </operation> </file> <!-- Авторское Право + Кнопки --> <file name="admin/view/template/common/footer.tpl"> <operation error="skip"> <search position="replace"><![CDATA[<div id="footer"><?php echo $text_footer; ?></div>]]></search> <add><![CDATA[ <div id="footer"> <div id="copyright"> <img src="view/image/flat-image/themebooster.png" alt="" /> <p>Thank You for using Flat Admin</p> <ul> <li><a id="ask-support" target="_blank" href="http://support.themebooster.com">Попросить поддержки</a></li> <li><a id="see-products" target="_blank" href="http://www.themebooster.com">Смотрите Наши продукты</a></li> <li><a id="upgrade" title="Обновление до Отзывчивый Flat администратора" target="_blank" href="http://www.opencart.com/index.php?route=extension/extension/info&extension_id=18685">Обновление до Отзывчивый Flat администратора</a></li> </ul> </div> <?php echo $text_footer; ?> </div> ]]></add> </operation> </file> <!-- Internet Explorer --> <file name="admin/view/template/common/header.tpl"> <operation error="skip"> <search position="before"><![CDATA[<script type="text/javascript" src="view/javascript/jquery/jquery-1.7.1.min.js"></script>]]></search> <add><![CDATA[ <!--[if IE]> <link rel="stylesheet" type="text/css" href="view/stylesheet/flat-stylesheet-ie.css" /> <![endif]--> ]]></add> </operation> </file> </modification>
-
vQmod
-
Установил шаблон Flat-Admin ошибка вроде из за него.
Написал разработчику вот что он ответил.SpoilerДобро пожаловать:
Плоский Администратор не является совершенным, и иногда мы решили предпочесть даже совместимость с более ранними версиями.
Есть некоторые замечания, но если они не причиняют вреда вашей администрации, вы можете быть безопасными.Вреда может и не причиняет но ошибка напрягает.
Как узнать какую использовать переменную для указания пути? -
После каждого захода в Админку в Журнале появляются ошибки.
Spoiler2016-05-09 14:13:40 - PHP Notice: Undefined variable: total_pending_order in /home/clients/ankurnosov_ftp2/domains/1mytestsite.ru/html/vqmod/vqcache/vq2-admin_view_template_common_header.tpl on line 67
2016-05-09 14:13:40 - PHP Notice: Undefined variable: link_to_sale in /home/clients/ankurnosov_ftp2/domains/1mytestsite.ru/html/vqmod/vqcache/vq2-admin_view_template_common_header.tpl on line 67
2016-05-09 14:13:40 - PHP Notice: Undefined variable: total_pending_order in /home/clients/ankurnosov_ftp2/domains/1mytestsite.ru/html/vqmod/vqcache/vq2-admin_view_template_common_header.tpl on line 67
2016-05-09 14:13:40 - PHP Notice: Undefined variable: link_to_customers in /home/clients/ankurnosov_ftp2/domains/1mytestsite.ru/html/vqmod/vqcache/vq2-admin_view_template_common_header.tpl on line 68В чём может быть проблема?
Вот код С 66 по 69 строки.
<ul id="new-messages"> <li <?php if ($total_pending_order > "0") { echo "class='evidence-pending'"; } ?>><a title="<?php echo $text_pending_orders_evidence; ?>" href="<?php echo $link_to_sale; ?>&filter_order_status_id=1"><span><?php echo $total_pending_order; ?></span></a></li> <li <?php if ($total_customer_approval > "0") { echo "class='evidence-approval'"; } ?>><a title="<?php echo $text_approval_customers_evidence; ?>" href="<?php echo $link_to_customers; ?>&filter_approved=0"><span><?php echo $total_customer_approval; ?></span></a></li> </ul>
-
- Это популярное сообщение.
- Это популярное сообщение.
Crear. Файлы для скачивания (File Downloads)
в Модули
Опубликовано:
Тоже нужно, прикрепить 3D программу для скачивания к определенному производителю. А то как то к 250 товарам заморочено будет добавлять в ручную.