(Coming Soon)

Compare thousands of DIY and building products
Lexington Two Drawer Bedside Table - Grey Price Comparisons | Compare The Build

Lexington Two Drawer Bedside Table - Grey

£39.99
Cheapest at The Range
View Product
Bexley Bedside Table Price Comparisons | Compare The Build

Bexley Bedside Table

£59.99
Cheapest at The Range
View Product
Kingston Bedside Table - White Price Comparisons | Compare The Build

Kingston Bedside Table - White

£79.99
Cheapest at The Range
View Product
Cody 2 Drawer Bedside - White and Pine effect Price Comparisons | Compare The Build

Cody 2 Drawer Bedside - White and Pine effect

£34.99
Cheapest at The Range
View Product
Set of 2 Slim Bedside Tables Price Comparisons | Compare The Build

Set of 2 Slim Bedside Tables

£42.41
Cheapest at The Range
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(); } -->