elgentos / magento2-structured-data
elgentos/magento2-structured-data
Implement structured data for Magento 2 webshops.
Magento 2 Structured Data
Installation
This package can be installed using Composer.
composer require elgentos/magento2-structured-data
bin/magento module:enable Elgentos_StructuredData
bin/magento setup:upgrade
Usage
To use the extension, you need to enable it in the configuration of Magento. This will display the structured data
in your pages just before the end of the <body> tag.
Also make sure you remove all itemscope, itemtype and itemprop attributes. These are normally added to the product
page and will also add structured data to the product pages. This needs to be done in your theme.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
MIT
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
Unreleased
[1.2.0] - 2022-02-02
Added
- Make it possible to set a Brand for products
Remove
- Remove
@coverfrom test docblocks
1.1.0 - 2022-02-02
Changed
- Added requirements to allow adding the extension to Magento 2.3.7-p1
1.0.2 - 2021-09-28
Fixed
- Fix incorrect check if module is enabled
1.0.1 - 2021-09-27
Added
- Add missing url to Organization
1.0.0 - 2021-09-25
Added
- Implement structured data for Organization
- Implement structured data for WebSite
- Implement structured data for BreadcrumbList
- Implement structured data for Product
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 1.3.0 | stable | Pass | Magento 2.4.7-2.4.9 Details | 2022-06-29 12:19:19 |
| 1.2.0 | stable | Not tested | Not yet tested Details | 2022-02-03 07:43:48 |
| 1.1.0 | stable | Not tested | Not yet tested Details | 2022-02-03 07:43:01 |
| 1.0.2 | stable | Not tested | Not yet tested Details | 2021-09-28 09:30:25 |
| 1.0.1 | stable | Not tested | Not yet tested Details | 2021-09-27 06:28:28 |
| 1.0.0 | stable | Not tested | Not yet tested Details | 2021-09-25 14:57:16 |
Requires 8
| Package | Constraint |
|---|---|
| php | ^7.4|^8.0|^8.1 |
| magento/framework | ^102.0.7||^103.0 |
| magento/module-catalog | ^103.0.7||^104.0 |
| magento/module-eav | ^102.0.7||^102.1 |
| magento/module-review | ^100.3.7||^100.4 |
| magento/module-search | ^101.0.7||^101.1 |
| magento/module-store | ^101.0.7||^101.1 |
| magento/module-theme | ^101.0.7||^101.1 |
Requires-dev 2
| Package | Constraint |
|---|---|
| mediact/coding-standard-magento2 | @stable |
| mediact/testing-suite | ^2.9 |
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
More from elgentos
View vendorLink existing guest orders to newly created or existing customer based on e-mail address
Allows customers to enter a secondary email address to login with
Hide Mollie payment methods based on category
Turn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.