import { currentProduct } from 'wix-stores'; $w.onReady(async function () { try { const product = await currentProduct.getProduct(); const jsonLd = { "@context": "https://schema.org/", "@type": "Product", "name": product.name, "image": product.mediaItems.map(item => item.src), "description": stripHtml(product.description), "sku": product.sku, "brand": { "@type": "Brand", "name": "The Hoodie Crew" }, "offers": { "@type": "Offer", "url": product.productPageUrl || location.href, "priceCurrency": product.price.currency, "price": product.price.amount, "availability": "https://schema.org/InStock", "itemCondition": "https://schema.org/NewCondition" }, "review": [ { "@type": "Review", "author": { "@type": "Person", "name": "Verified Buyer" }, "datePublished": "2024-12-01", "reviewBody": "Love this jacket — fits great and gets compliments!", "reviewRating": { "@type": "Rating", "ratingValue": "5", "bestRating": "5" } } ], "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "17" } }; // Optionally add variants (colors/sizes) if (product.variants && product.variants.length > 0) { jsonLd.additionalProperty = product.variants.map(v => ({ "@type": "PropertyValue", "name": v.variantName, "value": v.choices.join(', ') })); } // Inject JSON-LD script into const scriptTag = document.createElement('script'); scriptTag.type = 'application/ld+json'; scriptTag.text = JSON.stringify(jsonLd); document.head.appendChild(scriptTag); } catch (err) { console.error("JSON-LD injection failed:", err); } }); // Utility to strip HTML tags from descriptions function stripHtml(html) { return html.replace(/<[^>]*>/g, '').replace(/\n/g, ' ').trim(); }
top of page

We are excited to announce The Hoodie Crew as the exclusive partner of The Sunday Socials DJs. This collaboration promises to elevate our entertainment offerings. Stay tuned for updates!

Exclusive

login to sunday social

Exclusive

bottom of page