Announcement

Collapse
No announcement yet.

New Schema requirements

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    New Schema requirements

    Google have announced they are soon to require return policy details within the product schema / json.
    Doesn't look terrible but implementing in Sellerdeck won't be fun.
    https://www.harrisontelescopes.co.uk/

    Ed Harrison - Menmuir Scotland

    #2
    I have it set up in the "offers" :

    "offers": {
    "@type": "Offer",
    "price": "<actinic:block php='true'>$var = <actinic:variable name='ProductPriceRaw' selectable='false' />;$num = number_format($var, 2, '.', '');echo $num;</actinic:block>",
    "priceCurrency": "GBP",
    "url": "<actinic:variable name='CanonicalPageURL' />",
    "availability": "<actinic:block if='%3cactinic%3avariable%20name%3d%22NoStock%22%20%2f%3e%20%3d%3d%20%27none%27'>https://schema.org/InStock</actinic:block><actinic:block if='%3cactinic%3avariable%20name%3d%22NoStock%22%20%2f%3e%20%21%3d%20%27none%27'>https://schema.org/OutOfStock</actinic:block>",
    "priceValidUntil": "2026-11-25",
    "hasMerchantReturnPolicy": {
    "@type": "MerchantReturnPolicy",
    "name": "30-Day Return Policy",
    "description": "Products can be returned within 30 days of purchase. The buyer is responsible for return shipping costs, which may vary.",
    "merchantReturnDays": 30,
    "returnFees": "https://schema.org/ReturnShippingFees",
    "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
    "applicableCountry": {
    "@type": "Country",
    "name": "UK"
    },
    "returnMethod": "https://schema.org/ReturnByMail"
    },
    The code above has some more to it, but you should be able to incorporate it into what you have.
    Many Thanks
    Lee
    www.mdnsupplies.co.uk
    www.hookandloopfasteners.co.uk

    Comment


      #3
      Thanks Lee that looks perfect.
      I have got some code ready adapted from the Google examples but my site is heavily modified so it isn't where it should be.
      I've found the company type schema and tailored it nicely but cannot locate the product and offer schema!
      https://www.harrisontelescopes.co.uk/

      Ed Harrison - Menmuir Scotland

      Comment

      Working...
      X