GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Schema product markup (?) (https://gfy.com/showthread.php?t=1389616)

Publisher Bucks 04-03-2026 05:01 PM

Schema product markup (?)
 
Those who know how to use this, is the example below good enough or are there items missing that should be added to it?

Quote:

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Product Name - Brief Description",
"description": "Longer product description here ",
"image": "https://www.domain.com/images/1024.png",
"sku": "29",
"url": "https://www.domain.com/buy.php",
"brand": {
"@type": "Brand",
"name": "Product Name"
},
"offers": {
"@type": "Offer",
"price": "<?php echo $price; ?>",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock",
"priceValidUntil": "<?php echo date('Y'); ?>-12-31",
"url": "https://www.domain.com/buy.php"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.9",
"reviewCount": "487"
}
}
</script>
It currently pulls the vast majority of the data from a MySQL database.

We have a library of around 5000 products that we want to use this for, before we add it to the template system, I was wanting to know if this is 'good enough' or if it can be improved tp garner more clicks/sales for the products.

Thanks for any advice / feedback you can offer :)

TheLegacy 04-03-2026 05:12 PM

1. The PHP Tags Issue
2. Branding Logic
3. Recommended Improvements
Price Formatting
Review Requirement
Use Images

check with google

https://search.google.com/test/rich-results

There's a lot more but does this schema need to sync with a specific CMS like WordPress or Shopify, or are you building this on a custom PHP site?

Duced 04-04-2026 05:13 AM

Quote:

Originally Posted by TheLegacy (Post 23441602)
1. The PHP Tags Issue
2. Branding Logic
3. Recommended Improvements
Price Formatting
Review Requirement
Use Images

check with google

https://search.google.com/test/rich-results

There's a lot more but does this schema need to sync with a specific CMS like WordPress or Shopify, or are you building this on a custom PHP site?

As Rob said run it through the online checker.

Get Claude to read your database model/shape and it will give you the best suggestions

fris 04-04-2026 08:19 AM

i would use this.

Quote:

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Product Name - Brief Description",
"description": "Longer product description here",
"image": [
"https://www.domain.com/images/1024.png"
],
"sku": "29",
"url": "https://www.domain.com/buy.php",
"brand": {
"@type": "Brand",
"name": "Brand Name"
},
"offers": {
"@type": "Offer",
"price": "<?php echo number_format($price, 2, '.', ''); ?>",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition",
"priceValidUntil": "<?php echo date('Y'); ?>-12-31",
"url": "https://www.domain.com/buy.php",
"seller": {
"@type": "Organization",
"name": "Your Store Name"
},
"shippingDetails": {
"@type": "OfferShippingDetails",
"shippingRate": {
"@type": "MonetaryAmount",
"value": "0.00",
"currency": "USD"
},
"shippingDestination": {
"@type": "DefinedRegion",
"addressCountry": "US"
},
"deliveryTime": {
"@type": "ShippingDeliveryTime",
"handlingTime": {
"@type": "QuantitativeValue",
"minValue": 0,
"maxValue": 1,
"unitCode": "DAY"
},
"transitTime": {
"@type": "QuantitativeValue",
"minValue": 3,
"maxValue": 7,
"unitCode": "DAY"
}
}
},
"hasMerchantReturnPolicy": {
"@type": "MerchantReturnPolicy",
"applicableCountry": "US",
"returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
"merchantReturnDays": 30,
"returnMethod": "https://schema.org/ReturnByMail",
"returnFees": "https://schema.org/FreeReturn"
}
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.9",
"bestRating": "5",
"worstRating": "1",
"reviewCount": "487"
}
}
</script>


All times are GMT -7. The time now is 10:35 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123