Download the PHP package outeredge/magento-structured-data-module without Composer
On this page you can find all versions of the php package outeredge/magento-structured-data-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download outeredge/magento-structured-data-module
More information about outeredge/magento-structured-data-module
Files in outeredge/magento-structured-data-module
Package magento-structured-data-module
Short Description Magento Structured Data Module by outer/edge
License MIT
Informations about the package magento-structured-data-module
outer/edge Structured Data Module for Magento 2
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:
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
- url
- geo
CMS Page
- name
- mainContentOfPage
- description
- primaryImageOfPage
Installation
Install via Composer
Review configuration for Structure Data Module
Configuration is available in Stores > Configuration > outer/edge > Structured Data
. The following options are available:
Products
- Enable: Enable or disable structured data on product pages.
- Use Short Description: Use
short_description
attribute for thedescription
markup. By defaultdescription
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
orbrand
) - MPN (Default: empty)
- ISBN (Default: empty)
- Size (Default: empty)
- GTIN (Default: empty)
- Color (Default:
Color
orColour
) - Material (Default: empty)
- Keywords (Default: empty)
- Brand (Default:
CMS Pages
- 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
- 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:
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:
Uninstalling the module
Remove via Composer
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