Module responsible for loading Polish companies data by NIP (VAT ID) from GUS (Główny Urząd Statystyczny) for Magento 2.
Magento Open Source version > 2.4.x
gusapi/gusapi:5.3
- Enables address fields on customer register form
- Adds custom VAT ID (NIP) field and button to load data from GUS on customer register form
- Validates VAT ID (NIP), loads company data form GUS and fill-up registration form inputs with data
- Using composer:
composer require macopedia/magento2-gusintegration
- Using zip file:
- Download zip file
- Extract module in directory
app/code/Macopedia/GusIntegration
Enable module and install patches:
bin/magento module:enable Macopedia_GusIntegration
bin/magento setup:upgrade
- Login to admin panel and go to settings Stores > Configuration > Customers > Customer configuration
- In group Create New Account Options change value of Show VAT Number on Storefront setting to Yes and save configuration
- Clean cache
For production environment:
- Login to admin panel and go to settings Stores > Configuration > Macopedia > API GUS
- In group General change value of Is sandox account setting to No
- In group General change value of User ID to your user ID from GUS account
- Clean cache