zoorate/poinzilla

PoinZilla Module for Magento 2

1.0.7-stable 2025-08-25 13:36 UTC

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