Skip to content

Takes out the leading zeros that are automatically added into each new order in Magento 2.

Notifications You must be signed in to change notification settings

sethIam1/M2_RemoveLeadingZeros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

M2_RemoveLeadingZeros

This is a simple module to get rid of the leading zeros in Magento2 that automatically get added in to order numbers.

In other words, this module will make the default Magento2 order numbers modified from this: #000000001 to this: #1.

How to install

  1. Create a folder and subfolder inside your app/code folder like so: SethIam/RemoveLeadingZeros. The final directory path should look like this: app/code/SethIam/RemoveLeadingZeros
  2. Paste the code in the repository inside of the "RemoveLeadingZeros" folder. registration.php will be its own file inside the folder, and etc will be another subfolder.
  3. Your final module directory should look like this: app/code/SethIam/RemoveLeadingZeros/registration.php & app/code/SethIam/RemoveLeadingZeros/etc/di.xml --module.xml
  4. Once complete, run "php bin/magento module:enable SethIam_RemoveLeadingZeros" in your CLI
  5. Then run "php bin/magento setup:upgrade"
  6. Tada! Test by creating a new order, and check to ensure it removed the zeros.

About

Takes out the leading zeros that are automatically added into each new order in Magento 2.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages