定制 peterbrain/magento2-modal-overlay 二次开发

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

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

peterbrain/magento2-modal-overlay

Composer 安装命令:

composer require peterbrain/magento2-modal-overlay

包简介

Display custom content from a static block in a modal

README 文档

README

Package name: peterbrain/magento2-modal-overlay

Main Functionalities

  • Display custom content from a static block in a modal.
  • Show modal after a configurable amount of visited pages.

Installation

Method 1: Composer (recommended)

composer require peterbrain/magento2-modal-overlay

Method 2: Zip file (not recommended)

  • Unzip the zip file in app/code/PeterBrain

This extension requires PeterBrain Core. Ensure that you have it installed prior to installing this module. Use Composer to install it automatically with this module.

Enable & deploy

bin/magento module:enable PeterBrain_ModalOverlay
bin/magento setup:upgrade
bin/magento setup:static-content:deploy
bin/magento cache:flush

Usage

  • Enable module output in Stores > Configuration > PeterBrain Extensions > Modal Overlay > General Configuration
  • In Magento 2 admin, navigate to Content > Blocks and create a new static block with the identifier modal-overlay_popup.
  • If the module is enabled, the static block exists and is enabled, the modal pops up:
    • when a user visits at least three pages
    • once per user (stored in local storage - cookieless!)

In-depth information

The visited pages (count) and status of modal are stored in local storage as follows:

  • mage-cache-storage: {"modal-overlay":{"displayed":false,"visited_pages":2}}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2021-11-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固