zoorate/poinzilla
最新稳定版本:1.1.0-stable
Composer 安装命令:
composer require zoorate/poinzilla
包简介
PoinZilla Module for Magento 2
README 文档
README
INSTALL MODULE
Install from composer
- move to your magento root directory
# cd /var/www/html/path/to/your/magento-root-dir
- login as the owner of your magento filesystem, for example:
# su magentouser
- require and install the package
# composer require zoorate/poinzilla
- 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
LICENSE
AFL-3.0
统计信息
- 总下载量: 115
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AFL-3.0
- 更新时间: 2024-09-20