📊 State of Magento 2025

The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

613 Modules
401 Ready
211 Need Help
🏆 Leaderboard
Actively Maintained v5.2.5

Magento Structured Data Module

outeredge/magento-structured-data-module

Adds structured data markup (Rich Snippets) to product, contact, and CMS pages. Improves SEO by providing schema.org data for search engines.

122,903
Downloads
Below average
71
GitHub Stars
Above average
14d ago
Last Release
8
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
172 warnings
PHPStan Failed

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

v5.2.5 on Magento 2.4.8-p3
Jan 27, 2026
v5.2.4 on Magento 2.4.8-p3
Jan 12, 2026
v5.2.3 on Magento 2.4.8-p3
Dec 28, 2025

Share This Module's Status

Magento Structured Data Module Magento compatibility status badge

README

Loaded from GitHub

Packagist Packagist Packagist

outer/edge Structured Data Module for Magento 2

Hyvä and Breeze compatible.

Our open source module allows you to quickly add structured data markup (also known as Rich Snippets) to any Magento 2 store by simply installing our module and setting a few configuration options.

Once this module is installed you will have valid structured data in the source of your product, contact and CMS pages. For example: https://developers.google.com/search/docs/advanced/structured-data/product

This will look similar to the below:

<script type="application/ld+json">
{
    "@context": "https://schema.org/",
    "@type": "Product",
    "@id": "https://example.co.uk/blue-t-shirt#Product",
    "brand": {
            "@type": "Brand",
            "name": "Nike"
    },
    "aggregateRating": {
        "@type": "AggregateRating",
        "bestRating": "100",
        "worstRating": "1",
        "ratingValue": "4.55",
        "reviewCount": "5"
    },
    "name": "Nike Blue T-Shirt",
    "sku": "blue-t-shirt",
    "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer viverra vitae nulla quis venenatis. Donec sollicitudin pharetra eros, in facilisis justo fringilla eu. In at consequat felis.",
    "image": "https://example.co.uk/media/catalog/product/b/t/blue-t-shirt.jpg",
    "offers": {
        "@type": "Offer",
        "url": "https://example.co.uk/blue-t-shirt",
        "price": 18.99,
        "priceCurrency": "GBP",
        "priceSpecification": {
            "@type": "UnitPriceSpecification",
            "price": 18.99,
            "priceCurrency": "GBP",
            "valueAddedTaxIncluded": true
        },
        "availability": "http://schema.org/InStock",
        "itemCondition": "http://schema.org/NewCondition"
    }
}
</script>

The module provides the following structured data:

Product Page (GraphQL available)

  • @type
  • @id
  • name
  • sku
  • description
  • image
  • weight
  • brand
  • aggregateRating
    • bestRating
    • worstRating
    • ratingValue
    • reviewCount
  • mpn
  • material
  • color
  • price
  • priceCurency
  • valueAddedTaxIncluded
  • availability
  • itemCondition
  • AggregateOffer
    • offers
  • highPrice
  • lowPrice

Contact Page

  • @type
  • @id
  • name
  • image
  • address
  • telephone
  • email
  • url
  • geo

CMS Page

  • name
  • mainContentOfPage
  • description
  • primaryImageOfPage

Installation

Install via Composer

composer require outeredge/magento-structured-data-module

Review configuration for Structure Data Module

Configuration is available in Stores > Configuration > outer/edge > Structured Data. The following options are available:

Products

structured_data-product

  • Enable: Enable or disable structured data on product pages.
  • Use Short Description: Use short_description attribute for the description markup. By default description will be used.
  • Include ChildProducts: Choose whether to include individual offer for each child (simple) product for structured data on configurable product pages.
  • Include Product Weights: Ad weight schema to product page structured data.
  • Product Brand/Manufacturer field: Choose which Magento attribute is used to populate the structured data values.
    • Brand (Default: manufacturer or brand)
    • MPN (Default: empty)
    • ISBN (Default: empty)
    • Size (Default: empty)
    • GTIN (Default: empty)
    • Color (Default: Color or Colour)
    • Material (Default: empty)
    • Keywords (Default: empty)

CMS Pages

structured_data-cms

  • Enable: Enable or disable structured data on CMS pages.
  • Enable About Page: Enable or disable "@type": "AboutPage".
  • About Page: Select the CMS page for "@type": "AboutPage".

Organization

structured_data-contact

  • Type: Select whether business in a Local Business or Organization.
  • Latitude: Specify latitude for local business.
  • Longitude: Specify longitude for local business.
  • Enable on Home Page: Enable or disable Organization structured data on Home page.
  • Enable on Contact Page: Enable or disable Organization structured data on Contact page.
  • Related Pages Populates "SameAs" property. Add links to related pages, for example Facebook, Linked In and other social media sites.

Once the module is installed and configured you will find the schema markup in your source code:

schema_screenshot

GraphQL

Our structured data module provides for product schema to the built in Magento GraphGL endpoint. Simply request the structured_data field with your product data as per the example below and the data will be returned as a JSON array:

{
  products(
    filter: {
        ...
    }
  ) {
    items {
      sku
      name
      structured_data
    }
  }
}

Uninstalling the module

Remove via Composer

composer remove outeredge/magento-structured-data-module

References

Google docs for structured data format (using JSON-LD format)

https://developers.google.com/search/docs/guides/intro-structured-data https://developers.google.com/search/docs/advanced/structured-data/product

Structured data syntax is based on

http://schema.org/

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.