siteation / magento2-storeinfo

siteation/magento2-storeinfo

Get your store information with ease

magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass MIT

Siteation - Magento 2 Store Info

Packagist Version
Supported Magento Versions
Hyvä Themes Supported
Hyvä CMS Supported
License

The Magento2 StoreInfo module streamlines the process of integrating essential store information into your Magento 2 website. Traditionally,
this information would be added via CMS Static Blocks or hardcoded into templates.

However, the StoreInfo module offers a more efficient method by directly accessing and retrieving values from the store information.

Key Features:

  • Simplified store information integration
  • Extends default Magento 2 store information
  • Additional fields for enhanced storefront presentation:
    • Extra Store phone number
    • WhatsApp number
    • Chamber of Commerce field

With the StoreInfo module, developers can easily enhance their Magento 2 storefronts with comprehensive and customizable store information.

Installation

Install the package via;

composer require siteation/magento2-storeinfo
bin/magento module:enable Siteation_StoreInfo

How to use

The StoreInfo works out of the box by providing store information and store email addresses and displaying them on your storefront.

Admin Storefront
[image: preview-1] [image: preview-2]

Besides this the Siteation Storeinfo also adds even more usefull fields under Stores > Configration > Siteation > StoreInfo.

Socials

Admin Storefront
[image: preview-3] [image: preview-4]

Opening Hours

Admin Storefront
[image: preview-5] [image: preview-6]

Notices

Admin Storefront
[image: preview-7] [image: preview-8]

Hyva CMS

CMS Picker
[image: preview-9] [image: preview-10]

Get StoreInfo in your own Template blocks.

First get the viewModel in your template, using the following sample;

Hyva - Sample Phtml file head
<?php declare(strict_types=1);

use Hyva\Theme\Model\ViewModelRegistry;
use Magento\Framework\View\Element\Template;
use Magento\Framework\Escaper;
use Siteation\StoreInfo\ViewModel\StoreInfo;

/** @var ViewModelRegistry $viewModels */
/** @var Template $block */
/** @var Escaper $escaper */

/** @var StoreInfo $storeInfo */
$storeInfo = $viewModels->require(StoreInfo::class);
Luma - Sample Phtml file head

For Luma templates,

<?php declare(strict_types=1);

use Magento\Framework\View\Element\Template;
use Magento\Framework\Escaper;
use Siteation\StoreInfo\ViewModel\StoreInfo;

/** @var Template $block */
/** @var Escaper $escaper */

/** @var StoreInfo $storeInfo */
$storeInfo = $block->getData('viewModelStoreInfo');

After this you can load any Magento StoreInfo field as text in your phtml;

<?php
// Get specific predefined store info field
$storeInfo->getPostcode();
$storeInfo->getSalesEmail();

// Get the same as above, using the global functions
$storeInfo->getStoreInfo('postcode'); // 'general/store_information/%s'
$storeInfo->getStoreEmail('email', 'ident_sales'); // 'trans_email/%2$s/%1$s'

More StoreInfo Modules

Interested in what this module does?

We have a whole suite of modules that add even more features to your store,
allowing you to manage specific aspects of your store using StoreInfo.

  • StoreInfo USPS – Display USPS details in the header, footer, and more.
  • StoreInfo Menus – Manage static menus, like footer menus, directly from the backend.
  • StoreInfo Payments – Show active payment methods on the frontend without manually adding them.

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

[4.0.2] - 2026-02-14

Added

  • Tailwind 4 support for Hyvä.

Fixed

  • Small alignment in address grid.

4.0.1 - 2025-12-28

Added

  • Missing support for Hyvä Contact Page.

Fixed

  • Removed invalid ViewModelRegistry PHP var comments for Luma.

4.0.0 - 2025-12-27

Added

  • Added a Schema.org Organization template that uses data from StoreInfo.
  • Added Hyvä CMS support, allowing the templates to be used as components.

Changed

  • Breaking Change: The "Day" input for Store Notices has been converted from a text field to a dropdown menu
    to improve compatibility with Schema.org syntax.
    The existing "Day" value will need to be re-selected after updating.
  • Breaking Change: Added support for both username/handle and full URL formats for all social media fields.
    To unify the configuration, the _handle and _address suffixes have been removed from the option names.
    Your existing social media configuration will need to be updated.
  • Unified the Luma and Hyvä templates.
    Styling is now passed via XML, making it easier to reuse and customize templates with a few XML arguments.

3.1.2 - 2025-01-28

Changed

  • Whatsapp url

3.1.1 - 2025-01-28

Added

  • Added field for IBAN

3.1.0 - 2024-12-29

Added

  • Option to socials for Bluesky
  • Option to socials for Threads

Changed

  • Hyvä Tailwind classes to be configurable trough xml arguments
  • Label spacing and color

Fixed

  • Missing landmark name in notices

3.0.0 - 2024-03-16

Added

  • The StoreInfoExtra fields in to the StoreInfo
  • New option for display a custom store notice
  • New option for display opening hours

Changed

  • Code optimisations, by splitting logic

2.1.0 - 2023-09-24

Changed

  • Minimal dependencies to Magento 2.4, dropping support for Magento 2.3

2.0.1 - 2023-09-24

Fixed

  • Fix localization error (thanks to @mgroensmit)

2.0.0 - 2022-12-17

Changed

  • Renamed composer name from siteation/magento2-module-storeinfo to siteation/magento2-storeinfo

1.2.1 - 2022-12-15

Fixes

  • Empty getCountry error #9

1.2.0 - 2022-11-27

Added

  • getFormattedPhoneNumber for using safe a version, without spaces and non numeric values
  • getEmailName, getSalesEmail, getSalesEmailName, getSupportEmail, getSupportEmailName for more email control

Changed

  • Cleanup country logic by replacing CountryFactory for CountryInformationAcquirerInterface
  • Renamed getTransEmail to getStoreEmail
  • Allow email group as option in getStoreEmail to get the other email options like; sales, support and custom

Fixes

  • Missing dependencies in composer, closes #8

1.1.2 - 2022-05-27

Fixes

  • Empty getCountryNameById error

1.1.1 - 2022-02-03

Fixes

  • DE translation for VAT

1.1.0 - 2022-02-02

Added

  • Support for store name
  • Support for country name
  • Support for region name
  • Support for vat number

Changed

  • Hyva sample template to match Hyva footer style

1.0.4 - 2021-10-04

Fixes

  • Sample templates, address order

1.0.3 - 2021-06-14

Fixes

  • schema data value for postcode

1.0.2 - 2021-04-24

Removed

  • Unneeded UrlInterface

1.0.1 - 2021-04-19

Changed

  • Renamed getEmailUs to getEmail to match the config setting.
    The old function naming will still be available until v2.

1.0.0 - 2021-03-11

Initial release 🎉

Versions
Version Stability QA Status Compatibility Released
4.0.2 stable Fail Magento 2.4.7-2.4.9 Details 2026-02-14 13:21:23
4.0.1 stable Not tested Not yet tested Details 2025-12-28 18:00:50
4.0.0 stable Not tested Not yet tested Details 2025-12-27 15:33:18
3.1.2 stable Not tested Not yet tested Details 2025-08-03 16:42:10
3.1.1 stable Not tested Not yet tested Details 2025-01-28 17:37:35
3.1.0 stable Not tested Not yet tested Details 2024-12-29 13:28:21
3.0.0 stable Not tested Not yet tested Details 2024-03-16 11:28:18
2.1.0 stable Not tested Not yet tested Details 2023-09-24 14:54:20
2.0.1 stable Not tested Not yet tested Details 2023-09-24 13:33:25
2.0.0 stable Not tested Not yet tested Details 2022-12-17 17:38:24
1.2.1 stable Not tested Not yet tested Details 2022-12-15 19:46:30
1.2.0 stable Not tested Not yet tested Details 2022-11-13 15:06:01
1.1.2 stable Not tested Not yet tested Details 2022-05-27 14:29:13
1.1.1 stable Not tested Not yet tested Details 2022-02-03 15:32:06
1.1.0 stable Not tested Not yet tested Details 2022-02-02 22:30:53
1.0.4 stable Not tested Not yet tested Details 2021-10-04 15:10:41
1.0.3 stable Not tested Not yet tested Details 2021-06-14 06:13:04
1.0.2 stable Not tested Not yet tested Details 2021-04-24 18:07:21
1.0.1 stable Not tested Not yet tested Details 2021-04-19 15:48:36
1.0.0 stable Not tested Not yet tested Details 2021-03-11 09:52:31

Requires 3

Package Constraint
magento/framework >=103.0
magento/module-directory >=100.4
magento/module-store >=101.1

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.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

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.

Static analysis results
Tool Status Findings Summary
PHPCS Fail 29 4 errors, 25 warnings (ruleset: Magento2) — 12 auto-fixable with phpcbf
PHPMD Warning 1 1 rule violation (IfStatementAssignment:1)
Cpd Pass 0
Composer validate Info 4 valid; 4 advisory notes (composer validate --strict)

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.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 4 4
2.4.8 4 4
2.4.9 3 3

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

Unit tests results by Magento and PHP version
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

Integration tests results by Magento and PHP version
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.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
MIT
Authors

More from siteation

View vendor
Make it pay

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.