# siteation/magento2-storeinfo

> Get your store information with ease

`composer require siteation/magento2-storeinfo`

Canonical URL: https://packagento.com/siteation/magento2-storeinfo

## At a glance

- **Vendor**: siteation (https://packagento.com/siteation.md)
- **Latest version**: 4.0.2 — released 2026-02-14
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/siteation/magento2-storeinfo and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require siteation/magento2-storeinfo:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Get your store information with ease

## README

[![Packagist Version](https://img.shields.io/packagist/v/siteation/magento2-storeinfo?style=for-the-badge)](https://packagist.org/packages/siteation/magento2-storeinfo)
![Supported Magento Versions](https://img.shields.io/badge/magento-%202.4-brightgreen.svg?logo=magento&longCache=true&style=for-the-badge)
[![Hyvä Themes Supported](https://img.shields.io/badge/Hyva_Themes-Supported-3df0af.svg?longCache=true&style=for-the-badge)](https://hyva.io/)
[![Hyvä CMS Supported](https://img.shields.io/badge/Hyva_CMS-Supported-0a144b.svg?longCache=true&style=for-the-badge)](https://hyva.io/)
![License](https://img.shields.io/github/license/Siteation/magento2-storeinfo?color=%23234&style=for-the-badge)

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;

```bash
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   |
| ------------ | ------------ |
| ![preview-1] | ![preview-2] |

[preview-1]: ./assets/storeinfo-admin.webp "Preview of the Magento2 admin store information"
[preview-2]: ./assets/storeinfo.webp "Preview of the Magento2 store information displayed by the Siteation StoreInfo"

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

#### Socials

| Admin        | Storefront   |
| ------------ | ------------ |
| ![preview-3] | ![preview-4] |

[preview-3]: ./assets/socials-admin.webp "Preview of the Magento2 admin store information Siteation StoreInfo Socials"
[preview-4]: ./assets/socials.webp "Preview of the Siteation StoreInfo Social icons"

#### Opening Hours

| Admin        | Storefront   |
| ------------ | ------------ |
| ![preview-5] | ![preview-6] |

[preview-5]: ./assets/storehours-admin.webp "Preview of the Magento2 admin store information Siteation StoreInfo Opening Hours"
[preview-6]: ./assets/storehours.webp "Preview of the Siteation StoreInfo Opening Hours"

#### Notices

| Admin        | Storefront   |
| ------------ | ------------ |
| ![preview-7] | ![preview-8] |

[preview-7]: ./assets/notices-admin.webp "Preview of the Magento2 admin store information Siteation StoreInfo Notices"
[preview-8]: ./assets/notices.webp "Preview of the Siteation StoreInfo Notices"

#### Hyva CMS

| CMS          | Picker        |
| ------------ | ------------- |
| ![preview-9] | ![preview-10] |

[preview-9]: ./assets/cms.webp "Preview of Hyva CMS with Siteation StoreInfo Components"
[preview-10]: ./assets/cms-picker.webp "Preview of Hyva CMS Picker with Siteation StoreInfo Components"

### Get StoreInfo in your own Template blocks.

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

<details open><summary>Hyva - Sample Phtml file head</summary>

```php
<?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);
```

</details>

<details><summary>Luma - Sample Phtml file head</summary>

_For Luma templates,_

```php
<?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');
```

</details>

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

```php
<?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](https://github.com/Siteation/magento2-storeinfo-usps) – Display USPS details in the header, footer, and more.
- [StoreInfo Menus](https://github.com/Siteation/magento2-storeinfo-menus) – Manage static menus, like footer menus, directly from the backend.
- [StoreInfo Payments](https://github.com/Siteation/magento2-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](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### [Unreleased]

[Unreleased]: https://github.com/Siteation/magento2-storeinfo/compare/4.0.2...main

### [4.0.2] - 2026-02-14

#### Added

- Tailwind 4 support for Hyvä.

#### Fixed

- Small alignment in address grid.

### [4.0.1] - 2025-12-28

[4.0.1]: https://github.com/Siteation/magento2-storeinfo/compare/4.0.0...4.0.1

#### Added

- Missing support for Hyvä Contact Page.

#### Fixed

- Removed invalid `ViewModelRegistry` PHP var comments for Luma.

### [4.0.0] - 2025-12-27

[4.0.0]: https://github.com/Siteation/magento2-storeinfo/compare/3.1.2...4.0.0

#### 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

[3.1.2]: https://github.com/Siteation/magento2-storeinfo/compare/3.1.1...3.1.2

#### Changed
- Whatsapp url

### [3.1.1] - 2025-01-28

[3.1.1]: https://github.com/Siteation/magento2-storeinfo/compare/3.1.0...3.1.1

#### Added
- Added field for IBAN

### [3.1.0] - 2024-12-29

[3.1.0]: https://github.com/Siteation/magento2-storeinfo/compare/3.0.0...3.1.0

#### 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

[3.0.0]: https://github.com/Siteation/magento2-storeinfo/compare/2.1.0...3.0.0

#### 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

[2.1.0]: https://github.com/Siteation/magento2-storeinfo/compare/2.0.1...2.1.0

#### Changed

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

### [2.0.1] - 2023-09-24

[2.0.1]: https://github.com/Siteation/magento2-storeinfo/compare/2.0.0...2.0.1

#### 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](https://github.com/Siteation/magento2-module-storeinfo/issues/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](https://github.com/Siteation/magento2-module-storeinfo/issues/8)

### 1.1.2 - 2022-05-27

#### Fixes

- Empty getCountryNameById error

### 1.1.1 - 2022-02-03

#### Fixes

- DE translation for VAT

_(Changelog truncated for .md surface. Full history on https://packagento.com/siteation/magento2-storeinfo.)_

## Recent Versions

| Version | Released |
|---|---|
| 4.0.2 | 2026-02-14 |
| 4.0.1 | 2025-12-28 |
| 4.0.0 | 2025-12-27 |
| 3.1.2 | 2025-08-03 |
| 3.1.1 | 2025-01-28 |
| 3.1.0 | 2024-12-29 |
| 3.0.0 | 2024-03-16 |
| 2.1.0 | 2023-09-24 |
| 2.0.1 | 2023-09-24 |
| 2.0.0 | 2022-12-17 |

Showing 10 of 20 versions. Full release history on https://packagento.com/siteation/magento2-storeinfo.

## Dependencies

### Require

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

## Quality

Latest release (4.0.2) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| 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. Never affect the Compatibility verdict — 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.

| 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 against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| 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 per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### 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

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["siteation/magento2-storeinfo"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

siteation is a Magento 2 vendor on Packagento. See https://packagento.com/siteation.md for their full catalogue.

