Google Merchant Center trust signal improvements

- Add contact.php (was 404, linked from footer and returns page)
- Add shippingDetails and hasMerchantReturnPolicy to product schema
- Add priceValidUntil to product Offer schema
- Improve merchant feed descriptions (use DB description when present)
- Add handling/transit times and return_policy_label to feed

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-15 18:46:21 +00:00
parent 5637b6d7f5
commit 15bcef262f
3 changed files with 216 additions and 11 deletions
+26 -6
View File
@@ -69,12 +69,32 @@ $productSchemaData = [
'description' => $metaDescription,
'brand' => ['@type' => 'Brand', 'name' => "Tom's Java Jive"],
'offers' => [
'@type' => 'Offer',
'priceCurrency' => 'USD',
'price' => number_format((float) $displayPrice, 2, '.', ''),
'availability' => $inStock ? 'https://schema.org/InStock' : 'https://schema.org/OutOfStock',
'url' => $canonicalUrl,
'seller' => ['@type' => 'Organization', 'name' => "Tom's Java Jive"],
'@type' => 'Offer',
'priceCurrency' => 'USD',
'price' => number_format((float) $displayPrice, 2, '.', ''),
'priceValidUntil' => date('Y-12-31', strtotime('+1 year')),
'availability' => $inStock ? 'https://schema.org/InStock' : 'https://schema.org/OutOfStock',
'url' => $canonicalUrl,
'seller' => ['@type' => 'Organization', 'name' => "Tom's Java Jive"],
'shippingDetails' => [
'@type' => 'OfferShippingDetails',
'shippingRate' => ['@type' => 'MonetaryAmount', 'value' => '5.99', 'currency' => 'USD'],
'shippingDestination'=> ['@type' => 'DefinedRegion', 'addressCountry' => 'US'],
'deliveryTime' => [
'@type' => 'ShippingDeliveryTime',
'handlingTime' => ['@type' => 'QuantitativeValue', 'minValue' => 1, 'maxValue' => 2, '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',
'returnPolicyLink' => 'https://tomsjavajive.com/returns.php',
],
],
];
if ($reviewCount > 0) {