Корзина покупок пуста!
" + "" + "
" ) .appendTo( ul ); }; $('input[name="search_left"]').autocomplete({ minLength: 0, source: function( request, response ) { $.ajax({ url: "index.php?route=module/ajax_search/callback", dataType: "json", data: { limit: 10, keyword: request.term }, success: function( data ) { response( $.map( data.prods, function( item ) { return { label: item.label, url: item.url, price: item.price, desc: item.desc, img: item.img } })); } }); }, focus: function( event, ui ) { $('input[name="search"]').val( ui.item.label ); return false; }, select: function(event, ui) { separator = (ui.item.url.indexOf('?') > -1) ? '&' : '?'; location = ui.item.url.replace('&', '&') + separator + 'ref=ac'; } }) .data( "autocomplete" )._renderItem = function( ul, item ) { return $( "" + item.desc + "" + item.price + "
" ) .append( "" + "" + "
" ) .appendTo( ul ); }; });