承接 mhinspeya/inspeya-hyva-popup 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mhinspeya/inspeya-hyva-popup

Composer 安装命令:

composer require mhinspeya/inspeya-hyva-popup

包简介

Powerful popup maker for marketers. Get sales and conversions with good-looking, personalized, and targeted popups.

README 文档

README

mhinspeya/inspeya-hyva-popup

Main Functionalities

The MHinspeya Hyvä Popup Module allows Magento 2 store owners and marketers to create dynamic, targeted, responsive, and fully customisable popup messages directly from the Magento admin panel.

This module is highly flexible and supports:

✔ Custom Popup Creation

  • Create multiple popups from the backend
  • Add HTML content, images, text, promotions, newsletter forms, etc.
  • Full support for Hyvä theme and Alpine.js
  • Easy-to-use admin UI for popup design

✔ Powerful Popup Display Rules

  • Customer Group targeting
  • Specific Page targeting
  • Display only during Valid From and Valid To date ranges
  • Enable or disable each popup individually
  • Show to guests, logged-in users, or specific customer groups

✔ Popup Type Support

The module delivers popups for the following page contexts:

Popup TypeAJAX EndpointDescription
HomepageGetPopupsGeneral sitewide / homepage popups
CategoryCategoryPopupsTargeted to specific category IDs
ProductProductsPopupsTriggered on product detail pages
CMS PageCmsPopupsTargeted to specific CMS page identifiers
CartCartPopupsShown on cart page; includes cart total and free-shipping rule support

⚠️ Checkout is not supported. No popup is displayed on the checkout page.

✔ Popup Position Control

Choose where the popup appears on the screen:

  • Center
  • Top
  • Bottom
  • Left
  • Right
  • Floating corners
  • Full-width banners

✔ Display Frequency Control

Control how often a popup is shown per visitor:

  • Every time
  • Once per hour
  • Once per day
  • Once per week
  • Once per month

Frequency is tracked per customer (by user ID for logged-in, by IP for guests) per store.

✔ Cart & Free Shipping Rule Integration

The cart popup type supports:

  • Cart total and item count awareness
  • Free shipping cart price rule integration (rule conditions are passed to the frontend)
  • Show/hide based on cart empty state
  • FOMO (Fear Of Missing Out) messaging support

✔ Stock Feed Display

The product popup type supports:

  • Real-time stock quantity from MSI (Multi-Source Inventory)
  • Configurable product child SKU stock aggregation
  • stock_max_num threshold for low-stock urgency messaging

✔ Fully Responsive

The popup adapts to:

  • Desktop
  • Tablet
  • Mobile

No layout breaking — optimised for all Hyvä viewports.

Installation

* For production environments, use --keep-generated.

Type 1: Manual (Zip) Installation

  1. Extract the module to:
    app/code/MHinspeya/Popup
    
  2. Enable the module:
    php bin/magento module:enable MHinspeya_Popup
    
  3. Run setup upgrade:
    php bin/magento setup:upgrade
    
  4. Compile DI:
    php bin/magento setup:di:compile
    
  5. Clear cache:
    php bin/magento cache:flush
    

Type 2: Composer Installation

  1. Add repository if needed:
    composer config repositories.inspeya composer https://repo.inspeya.com/
    
  2. Install the module:
    composer require mhinspeya/inspeya-hyva-popup
    
  3. Enable module:
    php bin/magento module:enable MHinspeya_Popup
    
  4. Run upgrade:
    php bin/magento setup:upgrade
    
  5. Compile DI:
    php bin/magento setup:di:compile
    
  6. Clear cache:
    php bin/magento cache:flush
    

Configuration

Admin Path:

Stores → Configuration → MHinspeya → Popup Settings

Here you can:

  • Globally enable / disable popup functionality
  • Enable or disable popup per page type (Homepage, Category, Product, CMS, Cart)
  • Configure front-end behaviour & loading logic
  • Set default animations
  • Manage overlay settings
  • Enter and validate the module license key

Individual popups are managed under:

Marketing → Popup Manager

Each popup contains:

FieldDescription
TitleInternal name for the popup
ContentHTML / Images / Text body
Customer GroupWho to show this popup to
DisplayWhich page type(s) to show on
StoreWhich store views to target
Valid From / Valid ToDate range the popup is active
Priority OrderHigher value = shown first
Display FrequencyHow often to show per visitor
Display on DeviceDesktop / Mobile / Both
Popup PositionWhere on screen to render
Popup Width / HeightDimensions
When to ShowImmediately / After delay / On scroll
Hide After (seconds)Auto-dismiss timer
StatusActive / Inactive

Popup Rules & Targeting

✔ Customer Group Based Targeting

Display popup only to:

  • Guests
  • Logged-in customers
  • Specific customer groups

✔ Page-Level Targeting

Choose where the popup appears:

  • Homepage
  • Category page
  • Product page
  • CMS page
  • Cart page

Note: The popup module does not target the checkout page. No popup endpoints exist for checkout.

✔ Date Range Control

Every popup supports:

  • Valid From (start date)
  • Valid To (end date)

Popups only display during the configured date range. Dates are stored in DD.MM.YYYY format and compared server-side using MySQL STR_TO_DATE.

✔ Store View Control

Each popup can be scoped to one or more store views using the store_id multi-select field.

Popup Positioning

Available positions:

  • Center modal
  • Top bar
  • Bottom bar
  • Left sidebar
  • Right sidebar
  • Top-left
  • Top-right
  • Bottom-left
  • Bottom-right
  • Full width

100% responsive on all screen sizes.

Exception Handling & Logging

All controllers implement structured exception handling:

  • Admin controllers (Save, MassDelete, AddRow): catch LocalizedException first for user-friendly messages, then \Exception for unexpected errors — all logged to var/log/popup.log.
  • AJAX controllers (GetPopups, CartPopups, CategoryPopups, CmsPopups, ProductsPopups): the entire execute() method is wrapped in try/catch. Any error returns a safe JSON response {"error": true} instead of a 500 page crash.
  • Helper (Helper/Data): getCartPriceRuleByID() is guarded — a missing rule ID returns [] and logs a warning.

Log file: var/log/popup.log

All services are injected via Dependency Injection — no ObjectManager::getInstance() usage exists in this module.

PHP Compatibility

PHP VersionStatus
PHP 8.0✅ Compatible
PHP 8.1✅ Compatible
PHP 8.2✅ Compatible
PHP 8.3✅ Compatible
PHP 8.4✅ Compatible
  • No removed PHP 8.0 functions used
  • No ${var} deprecated string interpolation
  • No implicit nullable parameters
  • strtotime() calls are guarded against null values on all AJAX controllers
  • All class properties are explicitly declared (no dynamic properties)

Specifications

FeatureSupported
Hyvä Compatibility
Alpine.js Integration
Custom Popup Builder
Customer Group Targeting
Page-level Targeting (excl. Checkout)
Valid From / To Date Range
Display Frequency Control
Multi-position Popups
Cart & Free Shipping Rule Support
MSI Stock Feed Display
Fully Responsive
Unlimited Popups
Overlay & Animations
Structured Exception Handling
Dedicated Log File
PHP 8.0–8.4 Compatible
Magento 2.4.x Compatible

Attributes

This module does not create product or category attributes.

It includes:

  • Admin popup grid (Marketing → Popup Manager)
  • Popup creation / edit form
  • Popup rule & frequency engine
  • Frontend Hyvä popup renderer (Alpine.js)
  • Custom logger (var/log/popup.log)
  • License key validation observer

© MHinspeya — All Rights Reserved

mhinspeya/inspeya-hyva-popup 适用场景与选型建议

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

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

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2026-03-17