定制 mhinspeya/module-checksizeapi 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mhinspeya/module-checksizeapi

Composer 安装命令:

composer require mhinspeya/module-checksizeapi

包简介

Integrates Magento 2 store with Modehaus.de API for real-time external stock checks and local physical store stock availability. Fully compatible with Magento 2.4.8 and PHP 8.4.

README 文档

README

The MHinspeya_CheckSizeAPI module integrates your Magento 2 store with the Modehaus.de API to recover lost sales from out-of-stock variations and provide local omnichannel physical store stock information.

Business-Level Overview

This module is designed to solve customer friction caused by out-of-stock sizes or colors on the storefront, driving conversion rates and offline store traffic.

  1. External Stock Recovery (Partner Network Integration)

    • When a customer views a product page where their preferred size or color is sold out, the module connects in real-time to the Modehaus.de API (using the product's EAN or SKU).
    • It fetches availability from the partner network and lists alternative sizes and colors available on Modehaus.de, providing a direct link so the merchant does not lose the customer's purchase intent.
  2. Omnichannel Store Availability (BOPIS / Click-and-Collect)

    • Under the "Buy directly on site / Vor Ort direkt kaufen" accordion, the module queries local Multi-Source Inventory (MSI) database tables.
    • It displays to the shopper exactly which physical retail stores/branches currently have the product in stock and in which specific sizes.

Features

  • Real-time Inventory Check: Displays a list of available sizes across different physical store locations (Inventory Sources).
  • Modehaus.de API Integration: Allows customers to check for missing sizes on Modehaus.de via a GraphQL API integration.
  • Dynamic Icons: Fully configurable icons for "Store Availability" and "Check Size" features via the Magento Admin.
  • AJAX Driven: Smooth, non-blocking user experience for checking sizes without page reloads.
  • Hyvä Compatible: Built specifically for Hyvä themes using Alpine.js.
  • Full Localization: Complete support for English and German locales (de_DE, de_CH, de_AT).

Technical Architecture & PHP 8.4 / Magento 2.4.8 Compatibility

This module has been fully refactored to comply with PHP 8.4 and Magento 2.4.8:

  • Engine Error Safety: Replaced legacy, generic \Exception catch statements with \Throwable catching to ensure PHP 8.4 engine errors do not cause fatal storefront crashes.
  • PSR Logging: Integrated \Psr\Log\LoggerInterface across all controllers, views, and models for logging errors.
  • Null Safety: Implemented strict null checks and fallback methods for database connections, XML configurations, and product registry lookups.
  • Graceful Degradation: If Multi-Source Inventory (MSI) is disabled or the database schema is missing stock tables, the frontend falls back gracefully to prevent breaking the product detail pages.

Installation

1. Manual Installation

  1. Upload the module files to app/code/MHinspeya/CheckSizeAPI.
  2. Ensure you have the MHinspeya_BackendMod dependency installed.

2. Enable the Module

Run the following commands in your Magento root directory:

bin/magento module:enable MHinspeya_CheckSizeAPI
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f de_DE de_CH de_AT en_US
bin/magento cache:flush

Configuration

Navigate to Stores > Settings > Configuration > Inspeya > CheckSizeAPI Configuration to manage the module settings:

General Settings

  1. Enable CheckOnSize in Frontend: Toggle the main feature on or off.
  2. Product EAN/SKU for Check: Choose whether to send the EAN or SKU to the Modehaus.de API.
  3. Modehaus API Authorization Key: Your unique API key for authentication.
  4. Modehaus API Graphql API Key: The endpoint URL for the GraphQL search.
  5. Modehaus API Shop URL: The base URL of the target shop.
  6. Check Size Icon: Upload a custom SVG/PNG icon for the size check section.

Text Style Section

  1. Modehaus.de Text Title: Customize the instructional text shown to users.
  2. Missing a Size Label: Customize the header text for the size check section.
  3. Buy Directly on Site Label: Customize the header text for the store availability section.
  4. Check Item Availability Label: Customize the sub-header text for the store availability section.
  5. Availability Icon: Upload a custom SVG/PNG icon for the store availability section.

Localization

Base strings are in English. Translation files are available in:

  • i18n/de_DE.csv
  • i18n/de_CH.csv
  • i18n/de_AT.csv

The translation files include all frontend-facing strings, error messages, and admin configuration labels:

  • "Check Size" => "Größe prüfen"
  • "Store Availability" => "Verfügbarkeit in der Filiale"
  • "Buy directly on site" => "Vor Ort direkt kaufen"
  • "Check item availability" => "Prüfe die Verfügbarkeit des Artikels"

© MHinspeya. All rights reserved.

mhinspeya/module-checksizeapi 适用场景与选型建议

mhinspeya/module-checksizeapi 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 27 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 05 月 14 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「inventory」 「magento」 「magento 2」 「omnichannel」 「MHinspeya」 「php 8.4」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 mhinspeya/module-checksizeapi 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mhinspeya/module-checksizeapi 我们能提供哪些服务?
定制开发 / 二次开发

基于 mhinspeya/module-checksizeapi 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 36
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2026-05-14