(Coming Soon)

Compare thousands of DIY and building products
JG Speedfit Indoor Push-fit Pipe repair kit Price Comparisons | Compare The Build

JG Speedfit Indoor Push-fit Pipe repair kit

£18.42
Cheapest at B&Q
View Product
PrimaPress Pressfit Gas 15x1/2" FI Elbow Price Comparisons | Compare The Build

PrimaPress Pressfit Gas 15x1/2" FI Elbow

£11.25
Cheapest at B&Q
View Product
Prima Plus Endfeed Coupling 76mm Price Comparisons | Compare The Build

Prima Plus Endfeed Coupling 76mm

£29.16
Cheapest at B&Q
View Product
PrimaPress Pressfit Gas 22x1" MI Coupler Price Comparisons | Compare The Build

PrimaPress Pressfit Gas 22x1" MI Coupler

£12.18
Cheapest at B&Q
View Product
PrimaPress Pressfit 54x54x28mm Branch Tee Price Comparisons | Compare The Build

PrimaPress Pressfit 54x54x28mm Branch Tee

£41.44
Cheapest at B&Q
View Product
Product Image
${product._source.title}
£ ${product._source.price ? product._source.price.toFixed(2) : 0}
`).join(''); searchBox.html(productCards); } else { searchBox.html('

No products found.

'); } } function renderSuggestions(suggestions) { let suggestionBox = $('.suggestion-links'); suggestionBox.empty(); if (suggestions?.length) { let suggestionLinks = suggestions.slice(0, 5).map(suggestion => ` ${suggestion} `).join(''); suggestionBox.html(suggestionLinks); } else { suggestionBox.html('

No suggestions found.

'); // suggestionBox.html(''); } } function productURL(product) { let slug = product._source.title.replace(/\//g, '-').toLowerCase().split(' ').join('-'); // Get base URL fr om a hidden Blade variable or directly hardcode if known let baseUrl = "https://test.comparethebuild.com/product"; return `${baseUrl}/${slug}/${product._id}`; } // Use event delegation to handle dynamically created links $(document).on('click', '.suggestion-link', function() { let productName = $(this).data('title'); $('#search-bar').val(productName); $('#search-child-form').submit(); $('.search-dropdown').hide(); // Hides the search box }); }); function searchFormSubmit() { $('#search-child-form').submit(); } -->