
# Brazilian Fields in WordPress Registry

A wordpress plugin that can be used for customize your website.

Brazilian fields are added to the wordpress registry, such as persontype and CPF/CNPJ.

With this, is possible make other customizations such different price tables for customers or use this data to integration with some API.
### Informations:

- **Contributors**: [@ViniBGoulart](https://github.com/ViniBGoulart)
- **Tags**: woocommerce, wordpress, registry, brazil, registro, cpf, cnpj, phone, telefone, inscrição estadual
- **Require plugins**: [Masks Form Fields](https://br.wordpress.org/plugins/masks-form-fields/)
- **Tested up to**: 6.0.1
- **Stable tag**: 1.2.0
- **License**: GPLv2 or later
- **License URI**: https://www.gnu.org/licenses/gpl-2.0.html


## Documentation

[ToDO]()


## Features

- First name, Last name, CPF or CNPJ and Phone fields;
- Select persontype ("Pessoa Física" or "Pessoa Jurídica");
- Can be used with **"Brazilian Market on WooCommerce"** plugin;
- API usage support;
- Data are saved in **wp_usermeta** table;
- Is saved like "billing_{field_name}~. Ex: "billing_cpf" or "billing_cnpj"


## Installation

1- Donwload ZIP project

2- Go to plugins page in WordPress Admin

3- Go to **Add New -> Upload Plugin**

4- Chose the ZIP plugin file that you download


## Demo

#### Registry page
![chrome_ezLSzHOZJK](https://user-images.githubusercontent.com/88122830/180866081-015c554a-73bf-4db8-a969-bc5e86660c30.png)
![chrome_fMyJhcxTJX](https://user-images.githubusercontent.com/88122830/180866086-5f5ddbd0-ad49-499b-9e4d-404b09337fdc.png)

#### Database fields
![dbeaver_RQfiP8oFx9](https://user-images.githubusercontent.com/88122830/181012717-b2f592fb-98ab-49c2-951b-0f8d9f5b5f37.png)

#### Checkout page with "**Brazilian Market on WooCommerce**" plugin
![chrome_MDrsEZoD8G](https://user-images.githubusercontent.com/88122830/181013052-6946ba79-efd8-48d9-83ae-1f942ca4d48b.png)

#### WebHook order
![bUgqnsBaX7](https://user-images.githubusercontent.com/88122830/181017943-8d27482d-3aef-4609-8d40-0ecde471d44d.png)


## License

[GPL](https://choosealicense.com/licenses/gpl-3.0/)

