magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

support of federal units of Brazil with 27 states

Open hackin88 opened this issue 14 years ago • 4 comments

I see that in the native Magento2 is already pt_BR translation package, this was a breakthrough for users of magento in Brazil

I see that the support of the federal units of Brazil is not yet supported for Brazil, it would be very important if Magento2 added to support the 27 federal units of Brazil

Nowadays the form used to apply the support of the federal units of Brazil is done manually as shown below, and is usually done in the wrong way, because the need to implement proper support manual

http://www.cerebrum.com.br/forum/index.php?/topic/196-adicionando-os-estados-brasileiros-no-magento/

http://pt.wikipedia.org/wiki/Unidades_federativas_do_Brasil

hackin88 avatar Nov 05 '12 13:11 hackin88

Hello. Would you be able to provide this as a code contribution (pull request)? Then we could easily incorporate it into Magento 2.

magento-team avatar Nov 05 '12 21:11 magento-team

For my account is not showing the ability to send requests

I accessed my account and clicked on the button "FORK"

Still on Github edited the following file in my project Magento2

/app/code/core/Mage/Directory/data/directory_setup/data-install-1.6.0.0.php

I Added below line 286 the following script

,array('BR', 'AC', 'Acre'), array('BR', 'AL', 'Alagoas'), array('BR', 'AP', 'Amapá'), array('BR', 'AM', 'Amazonas'), array('BR', 'BA', 'Bahia'), array('BR', 'CE', 'Ceará'), array('BR', 'ES', 'Espírito Santo'), array('BR', 'GO', 'Goiás'), array('BR', 'MA', 'Maranhão'), array('BR', 'MT', 'Mato Grosso'), array('BR', 'MS', 'Mato Grosso do Sul'), array('BR', 'MG', 'Minas Gerais'), array('BR', 'PA', 'Pará'), array('BR', 'PB', 'Paraíba'), array('BR', 'PR', 'Paraná'), array('BR', 'PE', 'Pernambuco'), array('BR', 'PI', 'Piauí'), array('BR', 'RJ', 'Rio de Janeiro'), array('BR', 'RN', 'Rio Grande do Norte'), array('BR', 'RS', 'Rio Grande do Sul'), array('BR', 'RO', 'Rondônia'), array('BR', 'RR', 'Roraima'), array('BR', 'SC', 'Santa Catarina'), array('BR', 'SP', 'São Paulo'), array('BR', 'SE', 'Sergipe'), array('BR', 'TO', 'Tocantins'), array('BR', 'DF', 'Distrito Federal')

Thus when installing Magento it should come with support for 27 states of Brazil

https://github.com/hackin88/magento2/blob/master/app/code/core/Mage/Directory/data/directory_setup/data-install-1.6.0.0.php

This is the first time that I move to Github is the correct procedure I'm doing to contribute to the Magento2?

hackin88 avatar Nov 08 '12 17:11 hackin88

Now i clicked in button "PULL Request"

I added a Title and "Send Pull Request"

Now the information is displayed in

https://github.com/magento/magento2/pulls

hackin88 avatar Nov 08 '12 17:11 hackin88

Hi. I will close this thread and use the pull request. I believe it should not be put in a modified existing installation file but created as a new data/update script - however we will try to take it from the pull request and change it so it is correct. Thanks for the contribution.

magento-team avatar Nov 08 '12 20:11 magento-team