zoorate/poinzilla 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

zoorate/poinzilla

最新稳定版本:1.1.0-stable

Composer 安装命令:

composer require zoorate/poinzilla

包简介

PoinZilla Module for Magento 2

README 文档

README

INSTALL MODULE

Install from composer

  1. move to your magento root directory
# cd /var/www/html/path/to/your/magento-root-dir
  1. login as the owner of your magento filesystem, for example:
 # su magentouser
  1. require and install the package
 # composer require zoorate/poinzilla
  1. run comand
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy [<languages>]

Hyva Theme

Add the script below to header.phtml as in the stage path app/design/frontend/[Vendor]/[Theme]/Magento_Theme/templates/html

<script>
    document.addEventListener('DOMContentLoaded', function () {
        fetch('/customer/section/load/?sections=poinzilla_user')
            .then(res => res.json())
            .then(data => {
                const user = data.poinzilla_user;
                const el = document.querySelector('.poinzilla-login-user-info');
                if (!user || !el) return;
 
                el.setAttribute('data-first-name', user.firstname);
                el.setAttribute('data-last-name', user.lastname);
                el.setAttribute('data-email', user.email);
                el.setAttribute('data-digest', user.digest);
                el.setAttribute('data-consumer-group', JSON.stringify([user.group_id]));
            });
    });
</script>

INFOS AND CONTACTS

www.poinzilla.com

LICENSE

AFL-3.0

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: AFL-3.0
  • 更新时间: 2024-09-20