Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

Jabob

Новачок
  
  • Публікації

    43
  • З нами

  • Відвідування

Повідомлення, опубліковані користувачем Jabob

  1. Баннеры в левую и правую колонку.

    не совсем так.

    нужно сделать баннеры за областью сайта... если вставлять как беннер через админку, получается, что вставляется в область контента, а нужно за ним

  2. Доброго дня!

    Подскажите в чем косяк и работает ли с модулем "рекомендованные"?

     

    добавляю в catalog/controller/module/featured.php

    if (isset($result['promo_stamp_on']) && $result['promo_stamp_on'] == 1){
    $image = $this->model_tool_image->gdpromo($image, $result['promo_stamp_on'], $result['promo_stamp'], $result['promo_txt_stamp_text'], $result['promo_shadow']);
    }

    но ничего не выводится :(

     

    зы - хиты продаж выводятся, но совсем не тот модуль, что нужен

    зыы - сайт http://jou-jou.ru/MaxTsurka/

  3. Доброго дня!
    Кажется слетел какой то стиль или что то такое - большое фото товара перестало открываться в попапе

    сайт - http://jou-jou.ru/MaxTsurka/index.php?route=product/product&product_id=52

     

    Кто может подсказать, в чем тут дело, буду очень признателен!

  4. Решение не трудное

    В system\library\cart.php добавляем элемент в массив $this->data[$key] = array(
    'sku'			 => $product_query->row['sku'],
    затем в catalog\controller\checkout\cart.php также добавляем в массив $this->data['products'][] = array(
    'sku'	 => $product['sku'],
    и выводим в нужном месте в файлах catalog\view\theme\default\template\checkout\cart.tpl  (для простой корзины) и catalog\view\theme\default\template\module\cart.tpl   (для всплывающей)
    примерно так
    <?php if ($product['sku']) { ?>
       <p><?php echo $product['sku']; ?>
    			    <?php } ?></p>
    

     

    подскажите в  какую строчку  вставлять - 

    $this->data[$key] = array( 
    'sku'             => $product_query->row['sku'],

    и 

    catalog\controller\checkout\cart.php также добавляем в массив $this->data['products'][] = array(
    'sku'     => $product['sku'],
  5. Добрый день!

    Кто может подсказать как добавить поле Артикула в форму корзины?

    http://joxi.ru/Q2Ke3jkIJ3VPrj

     

    Так же интересует вопрос как добавить плюс и минус кол-ва товара в этом же форме?

     

    Сайт - http://jou-jou.ru/MaxTsurka

     

  6. Вопрос:

    Удалил строку выбора варианта товара, теперь не попадает товар в корзину по кнопке купить - подозреваю, что именно из за обязательного условия выбора варианта товара.

    Как можно отключить это условие?

  7. Доброго дня!

    Главное меню на html, необходимо сделать в выпадающее меню все категории (каталог -> все категории), но не html, а кодом категорий, дабы пункты менялись в зависимости от кол-ва категорий/названия и тд и тп

     

    меню такое:

    <ul class="nav navbar-nav">
          <li><a href="#">ГЛАВНАЯ</a></li>
          <li><a href="<?php echo $allproducts; ?>" class="dropdown-toggle1" data-toggle="dropdown1">Каталог</a>
    				<ul class="dropdown-menu1 dropdown-menu">
    				<li><a href="#">Текст подпункта</a></li>
    				<li><a href="#">Текст подпункта</a></li>
    				<li><a href="#">Текст подпункта</a></li>
    				</ul>
    		</li>		
          <li><a href="index.php?route=information/information&information_id=6">ЗАКАЗ И ДОСТАВКА</a></li>
          <li><a href="index.php?route=information/information&information_id=7">О КОМПАНИИ</a></li>
    	  <li><a href="index.php?route=information/contact">КОНТАКТЫ</a></li>
    	  <li><a href="#">АКЦИИ</a></li>
        </ul>
    
  8. Доброго дня!

    подключил, все здорово, как сделать вертикальный слайдер доп картинок?

    сайт - http://jou-jou.ru/MaxTsurka

  9. Здорово , но не понятно.

     

    Все товары магазина?Категории?А в сайдбаре чем не устраивает модуль Категорий встроенный в опенкарт?

     

    примерно вот так - http://demo.myopencart.com/desktops

    только вывести на этой странице все товары из всех категорий

  10. не получается, ничего не изменилось.

    все ли верно?

    <?php
    class ControllerCommonSearch extends Controller {
    	public function index() {
    		$this->load->language('common/search');
    
    		$data['text_search'] = $this->language->get('text_search');
    
    		if (isset($this->request->get['search'])) {
    			$data['search'] = $this->request->get['search'];
    		} else {
    			$data['search'] = '';
    		}
    		
    		$this->load->model('catalog/category');
    
    		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/search.tpl')) {
    			return $this->load->view($this->config->get('config_template') . '/template/common/search.tpl', $data);
    		} else {
    			return $this->load->view('default/template/common/search.tpl', $data);
    		}
    		
    		
    		// 3 Level Category Search
    		$data['categories'] = array();
     
    		$categories_1 = $this->model_catalog_category->getCategories(0);
     
    		foreach ($categories_1 as $category_1) {
    			$level_2_data = array();
     
    			$categories_2 = $this->model_catalog_category->getCategories($category_1['category_id']);
     
    			foreach ($categories_2 as $category_2) {
    				$level_3_data = array();
     
    				$categories_3 = $this->model_catalog_category->getCategories($category_2['category_id']);
     
    				foreach ($categories_3 as $category_3) {
    					$level_3_data[] = array(
    						'category_id' => $category_3['category_id'],
    						'name'        => $category_3['name'],
    					);
    				}
     
    				$level_2_data[] = array(
    					'category_id' => $category_2['category_id'],
    					'name'        => $category_2['name'],
    					'children'    => $level_3_data
    				);
    			}
     
    			$data['categories'][] = array(
    				'category_id' => $category_1['category_id'],
    				'name'        => $category_1['name'],
    				'children'    => $level_2_data
    			);
    		}
        
        if (isset($this->request->get['category_id'])) {
    			$data['category_id'] = $this->request->get['category_id'];
    		} else {
    			$data['category_id'] = '0';
    		}
    		
    	}
    }
    
  11. + такая ошибка:

     

     

     

     
                Notice: Undefined variable: categories in /var/www/u0225273/public_html/jou-jou.ru/MaxTsurka/catalog/view/theme/JUO/template/common/search.tpl on line 14Warning: Invalid argument supplied for foreach() in /var/www/u0225273/public_html/jou-jou.ru/MaxTsurka/catalog/view/theme/JUO/template/common/search.tpl on line 14          
  12. lдобился того, что поиск появился на странице + дополнительное окно категорий появилось, но не выводятся категории.

     

    вот содержмое моих файлы:

     

    catalog/controller/common/search.php

    <?php
    class ControllerCommonSearch extends Controller {
    	public function index() {
    		$this->load->language('common/search');
    
    		$data['text_search'] = $this->language->get('text_search');
    
    		if (isset($this->request->get['search'])) {
    			$data['search'] = $this->request->get['search'];
    		} else {
    			$data['search'] = '';
    		}
    
    		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/search.tpl')) {
    			return $this->load->view($this->config->get('config_template') . '/template/common/search.tpl', $data);
    		} else {
    			return $this->load->view('default/template/common/search.tpl', $data);
    		}
    		
    		
    		// 3 Level Category Search
    		$data['categories'] = array();
     
    		$categories_1 = $this->model_catalog_category->getCategories(0);
     
    		foreach ($categories_1 as $category_1) {
    			$level_2_data = array();
     
    			$categories_2 = $this->model_catalog_category->getCategories($category_1['category_id']);
     
    			foreach ($categories_2 as $category_2) {
    				$level_3_data = array();
     
    				$categories_3 = $this->model_catalog_category->getCategories($category_2['category_id']);
     
    				foreach ($categories_3 as $category_3) {
    					$level_3_data[] = array(
    						'category_id' => $category_3['category_id'],
    						'name'        => $category_3['name'],
    					);
    				}
     
    				$level_2_data[] = array(
    					'category_id' => $category_2['category_id'],
    					'name'        => $category_2['name'],
    					'children'    => $level_3_data
    				);
    			}
     
    			$data['categories'][] = array(
    				'category_id' => $category_1['category_id'],
    				'name'        => $category_1['name'],
    				'children'    => $level_2_data
    			);
    		}
        
        if (isset($this->request->get['category_id'])) {
    			$data['category_id'] = $this->request->get['category_id'];
    		} else {
    			$data['category_id'] = '0';
    		}
    		
    	}
    }
    

    catalog/view/theme/default/template/common/search.tpl 

    <div id="search" class="input-group">
      <input type="text" name="search" value="<?php echo $search; ?>" placeholder="<?php echo $text_search; ?>" class="form-control input-lg" />
      <span class="input-group-btn">
        <button type="button" class="btn btn-default btn-lg"><img src="image/search icon.png"></button>
    
      </span>
     
    <select id="category_id" name="category_id" class="form-control">
                <?php foreach ($categories as $category_1) { ?>
                <?php if ($category_1['category_id'] == $category_id) { ?>
                <option value="<?php echo $category_1['category_id']; ?>" selected="selected"><?php echo $category_1['name']; ?></option>
                <?php } else { ?>
                <option value="<?php echo $category_1['category_id']; ?>"><?php echo $category_1['name']; ?></option>
                <?php } ?>
                <?php foreach ($category_1['children'] as $category_2) { ?>
                <?php if ($category_2['category_id'] == $category_id) { ?>
                <option value="<?php echo $category_2['category_id']; ?>" selected="selected">      <?php echo $category_2['name']; ?></option>
                <?php } else { ?>
                <option value="<?php echo $category_2['category_id']; ?>">      <?php echo $category_2['name']; ?></option>
                <?php } ?>
                <?php foreach ($category_2['children'] as $category_3) { ?>
                <?php if ($category_3['category_id'] == $category_id) { ?>
                <option value="<?php echo $category_3['category_id']; ?>" selected="selected">            <?php echo $category_3['name']; ?></option>
                <?php } else { ?>
                <option value="<?php echo $category_3['category_id']; ?>">            <?php echo $category_3['name']; ?></option>
                <?php } ?>
                <?php } ?>
                <?php } ?>
                <?php } ?>
              </select>
      
    </div> 
        
    

    catalog/view/javascript/common.js

    function getURLVar(key) {
    	var value = [];
    
    	var query = String(document.location).split('?');
    
    	if (query[1]) {
    		var part = query[1].split('&');
    
    		for (i = 0; i < part.length; i++) {
    			var data = part[i].split('=');
    
    			if (data[0] && data[1]) {
    				value[data[0]] = data[1];
    			}
    		}
    
    		if (value[key]) {
    			return value[key];
    		} else {
    			return '';
    		}
    	}
    }
    
    $(document).ready(function() {
    	// Highlight any found errors
    	$('.text-danger').each(function() {
    		var element = $(this).parent().parent();
    
    		if (element.hasClass('form-group')) {
    			element.addClass('has-error');
    		}
    	});
    
    	// Currency
    	$('#currency .currency-select').on('click', function(e) {
    		e.preventDefault();
    
    		$('#currency input[name=\'code\']').attr('value', $(this).attr('name'));
    
    		$('#currency').submit();
    	});
    
    	// Language
    	$('#language a').on('click', function(e) {
    		e.preventDefault();
    
    		$('#language input[name=\'code\']').attr('value', $(this).attr('href'));
    
    		$('#language').submit();
    	});
    
    	/* Search */
    	$('#search input[name=\'search\']').parent().find('button').on('click', function() {
    		url = $('base').attr('href') + 'index.php?route=product/search';
    
    		var value = $('header input[name=\'search\']').val();
    
    		if (value) {
    			url += '&search=' + encodeURIComponent(value);
    		}
    
    		location = url;
    	});
    
    	$('#search input[name=\'search\']').on('keydown', function(e) {
    		if (e.keyCode == 13) {
    			$('header input[name=\'search\']').parent().find('button').trigger('click');
    		}
    	});
    
    	// Menu
    	$('#menu .dropdown-menu').each(function() {
    		var menu = $('#menu').offset();
    		var dropdown = $(this).parent().offset();
    
    		var i = (dropdown.left + $(this).outerWidth()) - (menu.left + $('#menu').outerWidth());
    
    		if (i > 0) {
    			$(this).css('margin-left', '-' + (i + 5) + 'px');
    		}
    	});
    
    	// Product List
    	$('#list-view').click(function() {
    		$('#content .product-grid > .clearfix').remove();
    
    		//$('#content .product-layout').attr('class', 'product-layout product-list col-xs-12');
    		$('#content .row > .product-grid').attr('class', 'product-layout product-list col-xs-12');
    
    		localStorage.setItem('display', 'list');
    	});
    
    	// Product Grid
    	$('#grid-view').click(function() {
    		// What a shame bootstrap does not take into account dynamically loaded columns
    		cols = $('#column-right, #column-left').length;
    
    		if (cols == 2) {
    			$('#content .product-list').attr('class', 'product-layout product-grid col-lg-6 col-md-6 col-sm-12 col-xs-12');
    		} else if (cols == 1) {
    			$('#content .product-list').attr('class', 'product-layout product-grid col-lg-4 col-md-4 col-sm-6 col-xs-12');
    		} else {
    			$('#content .product-list').attr('class', 'product-layout product-grid col-lg-3 col-md-3 col-sm-6 col-xs-12');
    		}
    
    		 localStorage.setItem('display', 'grid');
    	});
    
    	if (localStorage.getItem('display') == 'list') {
    		$('#list-view').trigger('click');
    	} else {
    		$('#grid-view').trigger('click');
    	}
    
    	// Checkout
    	$(document).on('keydown', '#collapse-checkout-option input[name=\'email\'], #collapse-checkout-option input[name=\'password\']', function(e) {
    		if (e.keyCode == 13) {
    			$('#collapse-checkout-option #button-login').trigger('click');
    		}
    	});
    
    	// tooltips on hover
    	$('[data-toggle=\'tooltip\']').tooltip({container: 'body',trigger: 'hover'});
    
    	// Makes tooltips work on ajax generated content
    	$(document).ajaxStop(function() {
    		$('[data-toggle=\'tooltip\']').tooltip({container: 'body'});
    	});
    });
    
    // Cart add remove functions
    var cart = {
    	'add': function(product_id, quantity) {
    		$.ajax({
    			url: 'index.php?route=checkout/cart/add',
    			type: 'post',
    			data: 'product_id=' + product_id + '&quantity=' + (typeof(quantity) != 'undefined' ? quantity : 1),
    			dataType: 'json',
    			beforeSend: function() {
    				$('#cart > button').button('loading');
    			},
    			complete: function() {
    				$('#cart > button').button('reset');
    			},
    			success: function(json) {
    				$('.alert, .text-danger').remove();
    
    				if (json['redirect']) {
    					location = json['redirect'];
    				}
    
    				if (json['success']) {
    					$('#content').parent().before('<div class="alert alert-success"><i class="fa fa-check-circle"></i> ' + json['success'] + ' <button type="button" class="close" data-dismiss="alert">×</button></div>');
    
    					// Need to set timeout otherwise it wont update the total
    					setTimeout(function () {
    						$('#cart > button').html('<span id="cart-total"><i class="fa fa-shopping-cart"></i> ' + json['total'] + '</span>');
    					}, 100);
    
    					$('html, body').animate({ scrollTop: 0 }, 'slow');
    
    					$('#cart > ul').load('index.php?route=common/cart/info ul li');
    				}
    			},
    	        error: function(xhr, ajaxOptions, thrownError) {
    	            alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
    	        }
    		});
    	},
    	'update': function(key, quantity) {
    		$.ajax({
    			url: 'index.php?route=checkout/cart/edit',
    			type: 'post',
    			data: 'key=' + key + '&quantity=' + (typeof(quantity) != 'undefined' ? quantity : 1),
    			dataType: 'json',
    			beforeSend: function() {
    				$('#cart > button').button('loading');
    			},
    			complete: function() {
    				$('#cart > button').button('reset');
    			},
    			success: function(json) {
    				// Need to set timeout otherwise it wont update the total
    				setTimeout(function () {
    					$('#cart > button').html('<span id="cart-total"><i class="fa fa-shopping-cart"></i> ' + json['total'] + '</span>');
    				}, 100);
    
    				if (getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') {
    					location = 'index.php?route=checkout/cart';
    				} else {
    					$('#cart > ul').load('index.php?route=common/cart/info ul li');
    				}
    			},
    	        error: function(xhr, ajaxOptions, thrownError) {
    	            alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
    	        }
    		});
    	},
    	'remove': function(key) {
    		$.ajax({
    			url: 'index.php?route=checkout/cart/remove',
    			type: 'post',
    			data: 'key=' + key,
    			dataType: 'json',
    			beforeSend: function() {
    				$('#cart > button').button('loading');
    			},
    			complete: function() {
    				$('#cart > button').button('reset');
    			},
    			success: function(json) {
    				// Need to set timeout otherwise it wont update the total
    				setTimeout(function () {
    					$('#cart > button').html('<span id="cart-total"><i class="fa fa-shopping-cart"></i> ' + json['total'] + '</span>');
    				}, 100);
    
    				if (getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') {
    					location = 'index.php?route=checkout/cart';
    				} else {
    					$('#cart > ul').load('index.php?route=common/cart/info ul li');
    				}
    			},
    	        error: function(xhr, ajaxOptions, thrownError) {
    	            alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
    	        }
    		});
    	}
    }
    
    var voucher = {
    	'add': function() {
    
    	},
    	'remove': function(key) {
    		$.ajax({
    			url: 'index.php?route=checkout/cart/remove',
    			type: 'post',
    			data: 'key=' + key,
    			dataType: 'json',
    			beforeSend: function() {
    				$('#cart > button').button('loading');
    			},
    			complete: function() {
    				$('#cart > button').button('reset');
    			},
    			success: function(json) {
    				// Need to set timeout otherwise it wont update the total
    				setTimeout(function () {
    					$('#cart > button').html('<span id="cart-total"><i class="fa fa-shopping-cart"></i> ' + json['total'] + '</span>');
    				}, 100);
    
    				if (getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') {
    					location = 'index.php?route=checkout/cart';
    				} else {
    					$('#cart > ul').load('index.php?route=common/cart/info ul li');
    				}
    			},
    	        error: function(xhr, ajaxOptions, thrownError) {
    	            alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
    	        }
    		});
    	}
    }
    
    var wishlist = {
    	'add': function(product_id) {
    		$.ajax({
    			url: 'index.php?route=account/wishlist/add',
    			type: 'post',
    			data: 'product_id=' + product_id,
    			dataType: 'json',
    			success: function(json) {
    				$('.alert').remove();
    
    				if (json['redirect']) {
    					location = json['redirect'];
    				}
    
    				if (json['success']) {
    					$('#content').parent().before('<div class="alert alert-success"><i class="fa fa-check-circle"></i> ' + json['success'] + ' <button type="button" class="close" data-dismiss="alert">×</button></div>');
    				}
    
    				$('#wishlist-total span').html(json['total']);
    				$('#wishlist-total').attr('title', json['total']);
    
    				$('html, body').animate({ scrollTop: 0 }, 'slow');
    			},
    	        error: function(xhr, ajaxOptions, thrownError) {
    	            alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
    	        }
    		});
    	},
    	'remove': function() {
    
    	}
    }
    
    var compare = {
    	'add': function(product_id) {
    		$.ajax({
    			url: 'index.php?route=product/compare/add',
    			type: 'post',
    			data: 'product_id=' + product_id,
    			dataType: 'json',
    			success: function(json) {
    				$('.alert').remove();
    
    				if (json['success']) {
    					$('#content').parent().before('<div class="alert alert-success"><i class="fa fa-check-circle"></i> ' + json['success'] + ' <button type="button" class="close" data-dismiss="alert">×</button></div>');
    
    					$('#compare-total').html(json['total']);
    
    					$('html, body').animate({ scrollTop: 0 }, 'slow');
    				}
    			},
    	        error: function(xhr, ajaxOptions, thrownError) {
    	            alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
    	        }
    		});
    	},
    	'remove': function() {
    
    	}
    }
    
    /* Agree to Terms */
    $(document).delegate('.agree', 'click', function(e) {
    	e.preventDefault();
    
    	$('#modal-agree').remove();
    
    	var element = this;
    
    	$.ajax({
    		url: $(element).attr('href'),
    		type: 'get',
    		dataType: 'html',
    		success: function(data) {
    			html  = '<div id="modal-agree" class="modal">';
    			html += '  <div class="modal-dialog">';
    			html += '    <div class="modal-content">';
    			html += '      <div class="modal-header">';
    			html += '        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>';
    			html += '        <h4 class="modal-title">' + $(element).text() + '</h4>';
    			html += '      </div>';
    			html += '      <div class="modal-body">' + data + '</div>';
    			html += '    </div';
    			html += '  </div>';
    			html += '</div>';
    
    			$('body').append(html);
    
    			$('#modal-agree').modal('show');
    		}
    	});
    });
    
    /* Search */
    	$('#search input[name=\'search\']').parent().find('button').on('click', function() {
    		url = $('base').attr('href') + 'index.php?route=product/search';
     
    		var value = $('input[name=\'search\']').val();
    		var kat = $('#search #category_id option:selected').text();
    		var category_id = $("#search #category_id").val();
    		
    		
    		if (value) {
    			url += '&search=' + encodeURIComponent(value);
    		}
    		
    		if (category_id) {
    			url += '&category_id=' + encodeURIComponent(category_id);
    			url += '&sub_category=true';
    		}
     
    		location = url;
    	});
    
    
    
    
    
    // Autocomplete */
    (function($) {
    	$.fn.autocomplete = function(option) {
    		return this.each(function() {
    			this.timer = null;
    			this.items = new Array();
    
    			$.extend(this, option);
    
    			$(this).attr('autocomplete', 'off');
    
    			// Focus
    			$(this).on('focus', function() {
    				this.request();
    			});
    
    			// Blur
    			$(this).on('blur', function() {
    				setTimeout(function(object) {
    					object.hide();
    				}, 200, this);
    			});
    
    			// Keydown
    			$(this).on('keydown', function(event) {
    				switch(event.keyCode) {
    					case 27: // escape
    						this.hide();
    						break;
    					default:
    						this.request();
    						break;
    				}
    			});
    
    			// Click
    			this.click = function(event) {
    				event.preventDefault();
    
    				value = $(event.target).parent().attr('data-value');
    
    				if (value && this.items[value]) {
    					this.select(this.items[value]);
    				}
    			}
    
    			// Show
    			this.show = function() {
    				var pos = $(this).position();
    
    				$(this).siblings('ul.dropdown-menu').css({
    					top: pos.top + $(this).outerHeight(),
    					left: pos.left
    				});
    
    				$(this).siblings('ul.dropdown-menu').show();
    			}
    
    			// Hide
    			this.hide = function() {
    				$(this).siblings('ul.dropdown-menu').hide();
    			}
    
    			// Request
    			this.request = function() {
    				clearTimeout(this.timer);
    
    				this.timer = setTimeout(function(object) {
    					object.source($(object).val(), $.proxy(object.response, object));
    				}, 200, this);
    			}
    
    			// Response
    			this.response = function(json) {
    				html = '';
    
    				if (json.length) {
    					for (i = 0; i < json.length; i++) {
    						this.items[json[i]['value']] = json[i];
    					}
    
    					for (i = 0; i < json.length; i++) {
    						if (!json[i]['category']) {
    							html += '<li data-value="' + json[i]['value'] + '"><a href="#">' + json[i]['label'] + '</a></li>';
    						}
    					}
    
    					// Get all the ones with a categories
    					var category = new Array();
    
    					for (i = 0; i < json.length; i++) {
    						if (json[i]['category']) {
    							if (!category[json[i]['category']]) {
    								category[json[i]['category']] = new Array();
    								category[json[i]['category']]['name'] = json[i]['category'];
    								category[json[i]['category']]['item'] = new Array();
    							}
    
    							category[json[i]['category']]['item'].push(json[i]);
    						}
    					}
    
    					for (i in category) {
    						html += '<li class="dropdown-header">' + category[i]['name'] + '</li>';
    
    						for (j = 0; j < category[i]['item'].length; j++) {
    							html += '<li data-value="' + category[i]['item'][j]['value'] + '"><a href="#">   ' + category[i]['item'][j]['label'] + '</a></li>';
    						}
    					}
    				}
    
    				if (html) {
    					this.show();
    				} else {
    					this.hide();
    				}
    
    				$(this).siblings('ul.dropdown-menu').html(html);
    			}
    
    			$(this).after('<ul class="dropdown-menu"></ul>');
    			$(this).siblings('ul.dropdown-menu').delegate('a', 'click', $.proxy(this.click, this));
    
    		});
    	}
    })(window.jQuery);
    
    
    
    

    в чем может быть дело?

  13. Если вы про категории, то в этой теме рассказывал

    https://opencartforum.com/topic/64653-добавление-категорий-в-строку-поиска

    Будут вопросы - пишите

     

    делаю по инструкции, но не получается. поиск пропадает. шаблон дефолтный.

    можете ткнуть куда вставить ваш код, а еще лучше скинуть уже модифицированные файлы:

     

    catalog/view/javascript/common.js

    catalog/view/theme/default/template/common/search.tpl 

    catalog/controller/common/search.php

     

    дело же только в этих трех файлах?

  14. делаю по инструкции, но не получается. поиск пропадает. шаблон дефолтный.

    можете ткнуть куда вставить ваш код, а еще лучше скинуть уже модифицированные файлы 

    catalog/view/javascript/common.js

    catalog/view/theme/default/template/common/search.tpl 

     catalog/controller/common/search.php

  15. Доброго дня!


    Разыскиваю модуль быстрого просмотра, который можно установить на кнопку:


    http://joxi.ru/KAgYDERCJ4LQml


     


    то есть добавить к трем кнопкам, которые есть по умолчанию в стандартном шаблоне


    Версия ocStore 2.1.0.2.1


  16. Доброго дня!

    Подскажите каким образом можно  реализовать поиск в шапке сайта как в примере шаблона:

    http://velikorodnov.com/opencart/shopme/demo1/

     

    http://joxi.ru/4AkzDZXUGypp2q

     

    Версия ocStore 2.1.0.2.1

  17.  

    Первое, что хотелось бы спросить:

    где можно изменить класс у переменной <?php echo $search; ?> - и таких же подобных?

    в HTML коде видно, что иконка у поиска это - <i class="fa fa-search"></i> а как и где ее изменить не понимаю

     

    + для <?php echo $currency; ?> поставить иконку-картинку валюты, а не символ

     

    с этим разобрался.

     

    Подскажите как сделать без платных модулей следующее:

     

    Второе:

    http://velikorodnov....t/shopme/demo1/ - как можно прикрутить такое же поиск? чтобы можно было искать в категориях

     

    большое спасибо за ответы!

×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.