Poinzilla for Magento 2
zoorate/poinzilla
This module facilitates integration with Poinzilla services. Poinzilla is a customizable loyalty platform that helps businesses reward customers, boost retention, and grow sales through points, rewards, referrals, and VIP programs
Build Tests
Code Quality
Tested on Magento 2.4.8-p3
Recent Test History
Each release is tested against the latest Magento version at that time.
Share This Module's Status
README
Loaded from GitHub- 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>]
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>
www.poinzilla.com
AFL-3.0
This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.