Washer Fender 3/8x1-1/2 100/Bx - 290036 | APCO Supply | Multi-Family Housing Supplies - Anchors & Fasteners - Anchors & Fasteners APCO Supply (2024)

'; } html = html +'

' if(categories_html) { html = html + '

Categories

'; html = html + categories_html; } if(suggestion_html) { html = html + '

Search Suggestions

'; html = html + suggestion_html; } if(parts_html) { html = html + '

Product Models

'; html = html + parts_html; } if(pages_html) { html = html + '

Pages

'; html = html + pages_html; } if(documents_html) { html = html + '

Product Documents

'; html = html + documents_html; } html = html + '

'; html = html + '

'; return html; }/*, standard: function(response) { // returns results html for standard results }*/ } }); $('.ui.two-column') .search({ type : 'category', fields: { categories : 'results', // array of categories (category view) categoryName : 'name', // name of category (category view) categoryResults : 'results', // array of results (category view) description : 'description', // result description image : 'image', // result image price : 'price', // result price results : 'results', // array of results (standard) title : 'title', // result title action : 'action', // "view more" object name actionText : 'text', // "view more" text actionURL : 'url' // "view more" url }, onSearchQuery:function(query){ console.debug(query); return query+'ordered_product='+document.getElementById("ordered_product").checked; }, minCharacters : 2, apiSettings : { onResponse: function(search_results) { console.log(search_results); return search_results; }, url: 'searchsuggest_responsive.php?q={query}' }, templates : { /*escape: function(string) { // returns escaped string for injected results }, message: function(message, type) { // returns html for message with given message and type },*/ category: function(response) { // returns results html for category results //console.log(response.results.products.results); //alert('here'); //console.log(response); var products_html = get_products_html(response.results.products.results, true); var ordered_products_html = get_ordered_products_html(response.results.products_ordered.results, true); var suggestion_html = get_suggestion_html(response.results.search_suggestions.results, true); var categories_html = get_categories_html(response.results.categories.results, true); var parts_html = get_parts_model_html(response.results.products_parts.results, true); var documents_html = get_documents_html(response.results.products_documents.results, true); var pages_html = get_pages_html(response.results.cms_pages.results, true); var html = ''; html = html + '

'; html = html + '

' if(products_html) { html = html + '

Products

'; html = html + products_html; } if(ordered_products_html&&guest===0) { html = html + '

Purchased Before

'; html = html + ordered_products_html; } html = html + '

'; html = html +'

' if(categories_html) { html = html + '

Categories

'; html = html + categories_html; } if(suggestion_html) { html = html + '

Search Suggestions

'; html = html + suggestion_html; } if(parts_html) { html = html + '

Product Models

'; html = html + parts_html; } if(pages_html) { html = html + '

Pages

'; html = html + pages_html; } if(documents_html) { html = html + '

Product Documents

'; html = html + documents_html; } html = html + '

'; html = html + '

'; return html; }/*, standard: function(response) { // returns results html for standard results }*/ } }); $('.ui.three-column') .search({ type : 'category', cache:false, fields: { categories : 'results', // array of categories (category view) categoryName : 'name', // name of category (category view) categoryResults : 'results', // array of results (category view) description : 'description', // result description image : 'image', // result image price : 'price', // result price results : 'results', // array of results (standard) title : 'title', // result title action : 'action', // "view more" object name actionText : 'text', // "view more" text actionURL : 'url' // "view more" url }, minCharacters : 2, apiSettings : { onResponse: function(search_results) { if(document.getElementById("ordered_product").checked){ search_results.results.products.results = []; search_results.results.search_suggestions.results = []; search_results.results.categories.results = []; search_results.results.products_parts.results = []; search_results.results.products_documents.results = []; search_results.results.cms_pages.results = []; } /*console.log(search_results.results.products.results); $.each(search_results.results.products.results, function(index, item) { console.log(index); console.log(item); });*/ return search_results; }, url: 'searchsuggest_responsive.php?q={query}' }, templates : { /*escape: function(string) { // returns escaped string for injected results }, message: function(message, type) { // returns html for message with given message and type },*/ category: function(response) { // returns results html for category results //console.log(response.results.products.results); //alert('here'); //console.log(response); var products_html = get_products_html(response.results.products.results, !document.getElementById("ordered_product").checked); var ordered_products_html = get_ordered_products_html(response.results.products_ordered.results, true); var suggestion_html = get_suggestion_html(response.results.search_suggestions.results, !document.getElementById("ordered_product").checked); var categories_html = get_categories_html(response.results.categories.results, !document.getElementById("ordered_product").checked); var parts_html = get_parts_model_html(response.results.products_parts.results, !document.getElementById("ordered_product").checked); var documents_html = get_documents_html(response.results.products_documents.results, !document.getElementById("ordered_product").checked); var pages_html = get_pages_html(response.results.cms_pages.results, !document.getElementById("ordered_product").checked); var html = ''; html = html + '

'; html = html + '

' if(products_html) { html = html + '

Products

'; html = html + products_html; } if(ordered_products_html&&guest===0) { html = html + '

Purchased Before

'; html = html + ordered_products_html; } html = html + '

'; html = html +'

' if(categories_html) { html = html + '

Categories

'; html = html + categories_html; } if(suggestion_html) { html = html + '

Search Suggestions

'; html = html + suggestion_html; } if(pages_html) { html = html + '

Pages

'; html = html + pages_html; } if(documents_html) { html = html + '

Product Documents

'; html = html + documents_html; } html = html + '

'; html = html +'

' if(parts_html) { html = html + '

Product Models

'; html = html + parts_html; } html = html + '

'; html = html + '

'; return html; }/*, standard: function(response) { // returns results html for standard results }*/ } }); // serach functions function get_products_html(products, return_empty=false){ var products_html = ''; if(products.length && Array.isArray(products)){ $.each(products, function(index, item) { if(index >= 10) { console.log(index); return false; } products_html = products_html + '

'; /*products_html = products_html + '

'; products_html = products_html + ''+item.image+''; products_html = products_html + '

';*/ products_html = products_html + '

'; products_html = products_html + '

'+item.title+'

'; products_html = products_html + '

'+item.description+'

'; products_html = products_html + '

'; products_html = products_html + '

'; }); }else if(return_empty){ products_html = products_html + '

No Products matching your search criteria

'; } return products_html; } function get_ordered_products_html(products, return_empty=false){ var products_html = ''; if(products.length && Array.isArray(products)){ $.each(products, function(index, item) { if(index >= 10) { console.log(index); return false; } products_html = products_html + '

'; /*products_html = products_html + '

'; products_html = products_html + ''+item.image+''; products_html = products_html + '

';*/ products_html = products_html + '

'; products_html = products_html + '

'+item.title+'

'; products_html = products_html + '

'+item.description+'

'; products_html = products_html + '

'; products_html = products_html + '

'; }); }else if(return_empty){ products_html = products_html + '

No Products matching your search criteria

'; } return products_html; } function get_suggestion_html(suggestions, return_empty=false){ var suggestions_html = ''; if(suggestions.length && Array.isArray(suggestions)){ $.each(suggestions, function(index, item) { if(index >= 10) { console.log(index); return false; } suggestions_html = suggestions_html + '

'; suggestions_html = suggestions_html + '

'; suggestions_html = suggestions_html + '

'+item.title+'

'; suggestions_html = suggestions_html + '

'; suggestions_html = suggestions_html + '

'; }); }else if(return_empty){ suggestions_html = suggestions_html + '

No Search Suggestions matching your search criteria

'; } return suggestions_html; } function get_categories_html(categories, return_empty=false){ var categories_html = ''; if(categories.length && Array.isArray(categories)) { $.each(categories, function (index, item) { console.log(item.image); categories_html = categories_html + '

'; categories_html = categories_html + '

'; categories_html = categories_html + '

' + item.title + '

'; categories_html = categories_html + '

'; categories_html = categories_html + '

'; }); }else if(return_empty){ categories_html = categories_html + '

No Categories matching your search criteria

'; } return categories_html; } function get_parts_model_html(suggestions, return_empty=false){ var suggestions_html = ''; if(suggestions.length && Array.isArray(suggestions)){ $.each(suggestions, function(index, item) { if(index >= 10) { console.log(index); return false; } suggestions_html = suggestions_html + '

'; suggestions_html = suggestions_html + '

'; suggestions_html = suggestions_html + '

'+item.title+'

'; suggestions_html = suggestions_html + '

'; suggestions_html = suggestions_html + '

'; }); }else if(return_empty){ suggestions_html = suggestions_html + '

No Products Parts matching your search criteria

'; } return suggestions_html; } function get_documents_html(suggestions, return_empty=false){ var suggestions_html = ''; if(suggestions.length && Array.isArray(suggestions)){ $.each(suggestions, function(index, item) { if(index >= 10) { console.log(index); return false; } suggestions_html = suggestions_html + '

'; suggestions_html = suggestions_html + '

'; suggestions_html = suggestions_html + '

'+item.title+'

'; suggestions_html = suggestions_html + '

'; suggestions_html = suggestions_html + '

'; }); }else if(return_empty){ suggestions_html = suggestions_html + '

No Product Documents matching your search criteria

'; } return suggestions_html; } function get_pages_html(suggestions, return_empty=false){ var suggestions_html = ''; if(suggestions.length && Array.isArray(suggestions)){ $.each(suggestions, function(index, item) { if(index >= 10) { console.log(index); return false; } suggestions_html = suggestions_html + '

'; suggestions_html = suggestions_html + '

'; suggestions_html = suggestions_html + '

'+item.title+'

'; suggestions_html = suggestions_html + '

'; suggestions_html = suggestions_html + '

'; }); }else if(return_empty){ suggestions_html = suggestions_html + '

No Pages matching your search criteria

'; } return suggestions_html; } });

Washer Fender 3/8x1-1/2 100/Bx - 290036 | APCO Supply | Multi-Family Housing Supplies - Anchors & Fasteners - Anchors & Fasteners APCO Supply (2024)
Top Articles
Latest Posts
Article information

Author: Errol Quitzon

Last Updated:

Views: 6052

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Errol Quitzon

Birthday: 1993-04-02

Address: 70604 Haley Lane, Port Weldonside, TN 99233-0942

Phone: +9665282866296

Job: Product Retail Agent

Hobby: Computer programming, Horseback riding, Hooping, Dance, Ice skating, Backpacking, Rafting

Introduction: My name is Errol Quitzon, I am a fair, cute, fancy, clean, attractive, sparkling, kind person who loves writing and wants to share my knowledge and understanding with you.