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
Denim T-Shirt
Excluding VAT | Shipping Policy
This denim t-shirt is made out of 100% combed cotton and has a classic rounded neckline with ribbed sleeve cuffs. It's soft, comfortable, and a must-have for every fashion enthusiast! • 100% combed cotton • Fabric weight: 4.7 oz./yd.² (160 g/m²) • Rounded neckline • Short-sleeved with 1x1 ribbed cuffs • Blank product sourced from Bangladesh This product is made especially for you as soon as you place an order, which is why it takes us a bit longer to deliver it to you. Making products on demand instead of in bulk helps reduce overproduction, so thank you for making thoughtful purchasing decisions! bottom of page