Hi @SB Verma, so i would build this page as a collection page. And the "tabs" (all, shirts etc.) are links to the collection itself. This is also nicer in terms of seo. And if you dont want to have a page reload by clicking on the link you could use the section rendering api
<script>
// 1. This function sets event listeners for all .collection_tab-item.is-link
function initCollectionLinks() {
// First: get all existing .collection_tab-item.is-link elements
const collectionLinks = document.querySelectorAll('.collection_tab-item.is-link');
// Add a click event listener to each link
collectionLinks.forEach(link => {
// Tip: Remove old listeners first if necessary
// -> Not always required because you're usually replacing the entire DOM element
link.addEventListener('click', handleCollectionLinkClick);
});
}
// 2. The function that is executed when a .collection_tab-item.is-link is clicked
function handleCollectionLinkClick(event) {
event.preventDefault();
// Determine the URL, e.g., /collections/sale
const collectionUrl = this.getAttribute('href');
// Section ID, e.g., featured-collection
const sectionId = this.dataset.sectionId;
// Now build the Ajax fetch request
const fetchUrl = ${collectionUrl}?sections=${sectionId};
fetch(fetchUrl)
.then(response => response.json())
.then(data => {
// JSON response -> the section's HTML string
const newSectionHtml = data[sectionId];
// Find the container and replace the old HTML
const sectionContainer = document.getElementById('shopify-section-' + sectionId);
sectionContainer.innerHTML = newSectionHtml;
// 3. Call initCollectionLinks again so that new links (or other elements)
// can be clicked again
initCollectionLinks();
})
.catch(error => {
console.error('Error while loading the section:', error);
});
}
// 4. Initialize once on the first page load
document.addEventListener('DOMContentLoaded', () => {
initCollectionLinks();
});
</script>
","upvoteCount":0,"dateCreated":"2025-02-07T09:27:24.437Z","datePublished":"2025-02-07T09:27:24.437Z","dateModified":"2025-02-07T09:27:24.437Z","url":"https://liquify.hall.community/i-need-to-show-product-of-all-collection-on-listcollection-page-rMW5ZTNSS5T6#8d42eafc-7108-453e-a311-fc685f46d1bd","author":{"@type":"Person","url":"https://liquify.hall.community/members/9198b265-c813-4ed7-89ba-4025d177dc62","name":"jonas.halbstark","identifier":"9198b265-c813-4ed7-89ba-4025d177dc62","image":"https://cdn.discordapp.com/avatars/947621552478904320/9741d807d28f33e26a3a3b01c121c60f.webp?size=256"}},{"@type":"Answer","text":"With this you can create Block Elements and assign the collection to the block","upvoteCount":0,"dateCreated":"2025-02-07T09:28:34.315Z","datePublished":"2025-02-07T09:28:34.315Z","dateModified":"2025-02-07T09:28:34.315Z","url":"https://liquify.hall.community/i-need-to-show-product-of-all-collection-on-listcollection-page-rMW5ZTNSS5T6#101771c8-0540-4099-bcc5-8a579ec158bc","author":{"@type":"Person","url":"https://liquify.hall.community/members/9198b265-c813-4ed7-89ba-4025d177dc62","name":"jonas.halbstark","identifier":"9198b265-c813-4ed7-89ba-4025d177dc62","image":"https://cdn.discordapp.com/avatars/947621552478904320/9741d807d28f33e26a3a3b01c121c60f.webp?size=256"}},{"@type":"Answer","text":"Hi @SB Verma do you need any more guidance?","upvoteCount":0,"dateCreated":"2025-02-17T08:08:03.092Z","datePublished":"2025-02-17T08:08:03.092Z","dateModified":"2025-02-17T08:08:03.092Z","url":"https://liquify.hall.community/i-need-to-show-product-of-all-collection-on-listcollection-page-rMW5ZTNSS5T6#de2a9760-a4c7-46e7-8f4a-a509756a8800","author":{"@type":"Person","url":"https://liquify.hall.community/members/9198b265-c813-4ed7-89ba-4025d177dc62","name":"jonas.halbstark","identifier":"9198b265-c813-4ed7-89ba-4025d177dc62","image":"https://cdn.discordapp.com/avatars/947621552478904320/9741d807d28f33e26a3a3b01c121c60f.webp?size=256"}}]}}