mirshlyap

Не работает поиск OS 1.5.5.1.1

Рекомендуемые сообщения

mirshlyap    1

Добрый день! Помогите пожалуйста разобраться почему не работает поиск на сайте миршляп.рф

Поиск не работал изначально, только сейчас пришло время заняться этой проблемой.

Прочитав подобные темы ответа применительно к моей ситуации не нашел. Предполагаю что где то нестыковка между header.tpl и common.js но не могу сообразить где, прошу вашей помощи.

$(document).ready(function() {
/* Search */
$('.button-search').bind('click', function() {
url = $('base').attr('href') + 'index.php?route=product/search';
 
var search = $('input[name=\'search\']').attr('value');
 
if (search) {
url += '&search=' + encodeURIComponent(search);
}
 
location = url;
});
 
$('#header input[name=\'search\']').bind('keydown', function(e) {
if (e.keyCode == 13) {
url = $('base').attr('href') + 'index.php?route=product/search';
 
var search = $('input[name=\'search\']').attr('value');
 
if (search) {
url += '&search=' + encodeURIComponent(search);
}
 
location = url;
}
});
 
/* Ajax Cart */
$('#cart > .heading a').live('click', function() {
$('#cart').addClass('active');
 
$('#cart').load('index.php?route=module/cart #cart > *');
 
$('#cart').live('mouseleave', function() {
$(this).removeClass('active');
});
});
 
/* Mega Menu */
$('#menu ul > li > a + div').each(function(index, element) {
// IE6 & IE7 Fixes
if ($.browser.msie && ($.browser.version == 7 || $.browser.version == 6)) {
var category = $(element).find('a');
var columns = $(element).find('ul').length;
 
$(element).css('width', (columns * 143) + 'px');
$(element).find('ul').css('float', 'left');
}
 
var menu = $('#menu').offset();
var dropdown = $(this).parent().offset();
 
i = (dropdown.left + $(this).outerWidth()) - (menu.left + $('#menu').outerWidth());
 
if (i > 0) {
$(this).css('margin-left', '-' + (i + 5) + 'px');
}
});
 
// IE6 & IE7 Fixes
if ($.browser.msie) {
if ($.browser.version <= 6) {
$('#column-left + #column-right + #content, #column-left + #content').css('margin-left', '195px');
 
$('#column-right + #content').css('margin-right', '195px');
 
$('.box-category ul li a.active + ul').css('display', 'block');
}
 
if ($.browser.version <= 7) {
$('#menu > ul > li').bind('mouseover', function() {
$(this).addClass('active');
});
 
$('#menu > ul > li').bind('mouseout', function() {
$(this).removeClass('active');
});
}
}
 
$('.success img, .warning img, .attention img, .information img').live('click', function() {
$(this).parent().fadeOut('slow', function() {
$(this).remove();
});
});
});
 
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.split('=');
 
if (data[0] && data[1]) {
value[data[0]] = data[1];
}
}
 
if (value[key]) {
return value[key];
} else {
return '';
}
}
 
function addToCart(product_id, quantity) {
quantity = typeof(quantity) != 'undefined' ? quantity : 1;
 
$.ajax({
url: 'index.php?route=checkout/cart/add',
type: 'post',
data: 'product_id=' + product_id + '&quantity=' + quantity,
dataType: 'json',
success: function(json) {
$('.success, .warning, .attention, .information, .error').remove();
 
if (json['redirect']) {
location = json['redirect'];
}
 
if (json['success']) {
$('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
 
$('.success').fadeIn('slow');
 
$('#cart-total').html(json['total']);
 
$('html, body').animate({ scrollTop: 0 }, 'slow'); 
}
}
});
}
function addToWishList(product_id) {
$.ajax({
url: 'index.php?route=account/wishlist/add',
type: 'post',
data: 'product_id=' + product_id,
dataType: 'json',
success: function(json) {
$('.success, .warning, .attention, .information').remove();
 
if (json['success']) {
$('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
 
$('.success').fadeIn('slow');
 
$('#wishlist-total').html(json['total']);
 
$('html, body').animate({ scrollTop: 0 }, 'slow');
}
}
});
}
 
function addToCompare(product_id) { 
$.ajax({
url: 'index.php?route=product/compare/add',
type: 'post',
data: 'product_id=' + product_id,
dataType: 'json',
success: function(json) {
$('.success, .warning, .attention, .information').remove();
 
if (json['success']) {
$('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
 
$('.success').fadeIn('slow');
 
$('#compare-total').html(json['total']);
 
$('html, body').animate({ scrollTop: 0 }, 'slow'); 
}
}
});
}

 

 

header

<?php if (isset($_SERVER['HTTP_USER_AGENT']) && !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>">
<head>
<title><?php echo $title; ?></title>
<base href="<?php echo $base; ?>" />
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/stylesheet.css" />
<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.16.custom.css" />
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/external/jquery.cookie.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/colorbox/jquery.colorbox.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/colorbox/colorbox.css" media="screen" />
<script type="text/javascript" src="catalog/view/javascript/jquery/tabs.js"></script>
<script type="text/javascript" src="catalog/view/javascript/common.js"></script>
<?php foreach ($scripts as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php } ?>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie7.css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie6.css" />
<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('#logo img');
</script>
<![endif]-->
<?php echo $google_analytics; ?>
<script type="text/javascript" src="carousel/carousel/jquery.jcarousel.min.js"></script>
 
<link rel="stylesheet" type="text/css" href="carousel/carousel/skins/tango/skin.css" />
 
<script type="text/javascript">
 
jQuery(document).ready(function() {
        jQuery('#mycarousel').jcarousel({
                wrap: 'circular'
        });
});
</script>
</head>
<body>
<div id="fot">
<div id="hd">
<div id="htu">
<div id="hdd">
 
<div id="container">
 
<div id="header">
<div id="welcome">
    <?php if (!$logged) { ?>
    <?php echo $text_welcome; ?>
    <?php } else { ?>
    <?php echo $text_logged; ?>
    <?php } ?>
  </div>
 <div id="contt">  <?php echo $content_middle; ?></div>
 
  <?php if ($logo) { ?>
  <div id="logo"><a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" /></a></div>
  <?php } ?>
  <?php echo $language; ?>
    <?php echo $cart; ?>
  <div id="search">
    <div class="button-search"></div>
    <?php if ($filter_name) { ?>
    <input type="text" name="filter_name" value="<?php echo $filter_name; ?>" />
    <?php } else { ?>
    <input type="text" name="filter_name" value="<?php echo $text_search; ?>" onclick="this.value = '';" onkeydown="this.style.color = '#000000';" />
    <?php } ?>
  </div>
  
  <div class="links"><a href="/index.php?route=product/testimonial"><?php echo $text_book; ?></a><a href="<?php echo $wishlist; ?>" id="wishlist-total"><?php echo $text_wishlist; ?></a><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a></div>
</div>
<div id="men">
<div id="menu">
 
  <ul>
 
    
    <li>
<a href="<?php echo $home; ?>"><?php echo $text_home; ?></a>  
    </li>
 
 
<li><a href="/index.php?route=information/news"><?php echo $text_stat; ?></a></li>
 
<li><a href="/index.php?route=product/special"><?php echo $text_ak; ?></a></li>
<?php foreach ($informations as $information) { ?>
      <li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
      <?php } ?>
 
 
  </ul>
 
</div>
</div>
<div id="notification"></div>

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
chukcha    934

читали, искали, не нашли

 

filter_name -тому причина

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
mirshlyap    1

Вы имеете в виду в tpl темы поменять filter_name на search ? Это пробовал не помогло!

Решил залить файлы исходники с которых начинал эксперименты, теперь в админке вылетают ошибки при нажатии кнопки поиск. Понял что проблема с фильтрами но где их копать? или установить какието нужно?

2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_name in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 122016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_name in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 15
2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_category_id in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 20
2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_category_id in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 20
2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_category_id in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 20
2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_category_id in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 20
2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_category_id in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 20
2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_category_id in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 20
2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_category_id in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 20
2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_category_id in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 20
2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_category_id in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 20
2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_category_id in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 20
2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_category_id in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 20
2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_sub_category in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 41
2016-07-05 8:43:03 - PHP Notice:  Undefined variable: filter_description in /home/virtwww/w_hetluck-mirshly_b4b08bc4/http/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_search.tpl on line 48
<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <h1><?php echo $heading_title; ?></h1>
  <b><?php echo $text_critea; ?></b>
  <div class="content">
    <p><?php echo $entry_search; ?>
      <?php if ($filter_name) { ?>
      <input type="text" name="filter_name" value="<?php echo $filter_name; ?>" />
      <?php } else { ?>
      <input type="text" name="filter_name" value="<?php echo $filter_name; ?>" onclick="this.value = '';" onkeydown="this.style.color = '000000'" style="color: #999;" />
      <?php } ?>
      <select name="filter_category_id">
        <option value="0"><?php echo $text_category; ?></option>
        <?php foreach ($categories as $category_1) { ?>
        <?php if ($category_1['category_id'] == $filter_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'] == $filter_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'] == $filter_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>
      <?php if ($filter_sub_category) { ?>
      <input type="checkbox" name="filter_sub_category" value="1" id="sub_category" checked="checked" />
      <?php } else { ?>
      <input type="checkbox" name="filter_sub_category" value="1" id="sub_category" />
      <?php } ?>
      <label for="sub_category"><?php echo $text_sub_category; ?></label>
    </p>
    <?php if ($filter_description) { ?>
    <input type="checkbox" name="filter_description" value="1" id="description" checked="checked" />
    <?php } else { ?>
    <input type="checkbox" name="filter_description" value="1" id="description" />
    <?php } ?>
    <label for="description"><?php echo $entry_description; ?></label>
  </div>
  <div class="buttons">
    <div class="right"><input type="button" value="<?php echo $button_search; ?>" id="button-search" class="button" /></div>
  </div>
  <h2><?php echo $text_search; ?></h2>
  <?php if ($products) { ?>
  <div class="product-filter">
    <div class="display"><b><?php echo $text_display; ?></b> <?php echo $text_list; ?> <b>/</b> <a onclick="display('grid');"><?php echo $text_grid; ?></a></div>
    <div class="limit"><?php echo $text_limit; ?>
      <select onchange="location = this.value;">
        <?php foreach ($limits as $limits) { ?>
        <?php if ($limits['value'] == $limit) { ?>
        <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>
        <?php } else { ?>
        <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>
        <?php } ?>
        <?php } ?>
      </select>
    </div>
    <div class="sort"><?php echo $text_sort; ?>
      <select onchange="location = this.value;">
        <?php foreach ($sorts as $sorts) { ?>
        <?php if ($sorts['value'] == $sort . '-' . $order) { ?>
        <option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
        <?php } else { ?>
        <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>
        <?php } ?>
        <?php } ?>
      </select>
    </div>
  </div>
  <div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>
  <div class="product-list">
    <?php foreach ($products as $product) { ?>
    <div>
      <?php if ($product['thumb']) { ?>
      <div class="image"><a href="<?php echo $product['href']; ?>"><script type="text/javascript"><!--
function mouseOverss<?php echo $product['product_id']; ?>() {
document.getElementById("ss<?php echo $product['product_id']; ?>").src="<?php if ($product['thumb_hover_image']) { ?><?php echo $product['thumb_hover_image']; ?><?php } else { ?><?php echo $product['thumb']; ?><?php } ?>";
}
function mouseOutss<?php echo $product['product_id']; ?>() {
document.getElementById("ss<?php echo $product['product_id']; ?>").src="<?php echo $product['thumb']; ?>";
}
//--></script> 
<img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" id="ss<?php echo $product['product_id']; ?>" onmouseover="mouseOverss<?php echo $product['product_id']; ?>()" onmouseout="mouseOutss<?php echo $product['product_id']; ?>()" /></a></div>
      <?php } ?>
      <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
      <div class="description"><?php echo $product['description']; ?></div>
      <?php if ($product['price']) { ?>
      <div class="price">
        <?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']) { ?>
        <br />
        <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
        <?php } ?>
      </div>
      <?php } ?>
      <?php if ($product['rating']) { ?>
      <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
      <?php } ?>
      <div class="cart"><input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" /></div>
      <div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>
      <div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>
    </div>
    <?php } ?>
  </div>
  <div class="pagination"><?php echo $pagination; ?></div>
  <?php } else { ?>
  <div class="content"><?php echo $text_empty; ?></div>
  <?php }?>
  <?php echo $content_bottom; ?></div>
<script type="text/javascript"><!--
$('#content input[name=\'filter_name\']').keydown(function(e) {
if (e.keyCode == 13) {
$('#button-search').trigger('click');
}
});


$('#button-search').bind('click', function() {
url = 'index.php?route=product/search';


var filter_name = $('#content input[name=\'filter_name\']').attr('value');


if (filter_name) {
url += '&filter_name=' + encodeURIComponent(filter_name);
}


var filter_category_id = $('#content select[name=\'filter_category_id\']').attr('value');


if (filter_category_id > 0) {
url += '&filter_category_id=' + encodeURIComponent(filter_category_id);
}


var filter_sub_category = $('#content input[name=\'filter_sub_category\']:checked').attr('value');


if (filter_sub_category) {
url += '&filter_sub_category=true';
}


var filter_description = $('#content input[name=\'filter_description\']:checked').attr('value');


if (filter_description) {
url += '&filter_description=true';
}


location = url;
});


function display(view) {
if (view == 'list') {
$('.product-grid').attr('class', 'product-list');


$('.product-list > div').each(function(index, element) {
html  = '<div class="right">';
html += '  <div class="cart">' + $(element).find('.cart').html() + '</div>';
html += '  <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';
html += '  <div class="compare">' + $(element).find('.compare').html() + '</div>';
html += '</div>'; 


html += '<div class="left">';


var image = $(element).find('.image').html();


if (image != null) { 
html += '<div class="image">' + image + '</div>';
}


var price = $(element).find('.price').html();


if (price != null) {
html += '<div class="price">' + price  + '</div>';
}


html += '  <div class="name">' + $(element).find('.name').html() + '</div>';
html += '  <div class="description">' + $(element).find('.description').html() + '</div>';


var rating = $(element).find('.rating').html();


if (rating != null) {
html += '<div class="rating">' + rating + '</div>';
}


html += '</div>';




$(element).html(html);
}); 


$('.display').html('<b><?php echo $text_display; ?></b> <?php echo $text_list; ?> <b>/</b> <a onclick="display(\'grid\');"><?php echo $text_grid; ?></a>');


$.cookie('display', 'list'); 
} else {
$('.product-list').attr('class', 'product-grid');


$('.product-grid > div').each(function(index, element) {
html = '';


var image = $(element).find('.image').html();


if (image != null) {
html += '<div class="image">' + image + '</div>';
}


html += '<div class="name">' + $(element).find('.name').html() + '</div>';
html += '<div class="description">' + $(element).find('.description').html() + '</div>';


var price = $(element).find('.price').html();


if (price != null) {
html += '<div class="price">' + price  + '</div>';
} 


var rating = $(element).find('.rating').html();


if (rating != null) {
html += '<div class="rating">' + rating + '</div>';
}


html += '<div class="cart">' + $(element).find('.cart').html() + '</div>';
html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';
html += '<div class="compare">' + $(element).find('.compare').html() + '</div>';


$(element).html(html);
}); 


$('.display').html('<b><?php echo $text_display; ?></b> <a onclick="display(\'list\');"><?php echo $text_list; ?></a> <b>/</b> <?php echo $text_grid; ?>');


$.cookie('display', 'grid');
}
}


view = $.cookie('display');


if (view) {
display(view);
} else {
display('list');
}
//--></script> 
<?php echo $footer; ?>

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

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

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!

Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.

Войти


  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу