import wixStores from 'wix-stores';
$w.onReady(async function () {
try {
const product = await wixStores.getCurrentProduct();
if (!product) {
console.warn("Product not found on page.");
return;
}
const schema = {
"@context": "https://schema.org/",
"@type": "Product",
"name": product.name,
"image": Array.isArray(product.mediaItems)
? product.mediaItems.map(media => media.src)
: [],
"description": product.description || "",
"sku": product.sku || "",
"brand": {
"@type": "Brand",
"name": product.brand || "Braapking"
},
"offers": {
"@type": "Offer",
"priceCurrency": "USD",
"price": typeof product.price === "number"
? product.price.toFixed(2)
: "0.00",
"availability": product.inStock
? "https://schema.org/InStock"
: "https://schema.org/OutOfStock",
"url": product.productPageUrl
}
};
const jsonLd = ``;
$w("#html1").postMessage(jsonLd);
console.log("Schema injected.");
} catch (err) {
console.error("Schema injection failed:", err);
}
});
top of page
Braap King Rewards
Earn points and turn them into rewards
Sign up as a member to start enjoying the loyalty program
Earn points by signing up to the site and by placing orders.
Redeem points for various discounts.
Program tiers
Reach new tiers as you earn more points.

Basic
0 total earned points required
Redeem Rewards
braapking
10 Points = 10% off the lowest priced item in cart
bottom of page