How to create custom commerce order state programmatically Drupal 7

  • Posted on: 27 April 2017
  • By: jmu

Right now, I am working on the e-commerce website, and trying to add some "ORDER STATE" that drupal doesn't provide by default. In this tutorial, I will provide the code and some samples. It is very simple to create custom states. Let do it!

If you have never created a custom module, please briefly read the official tutorial first. You can find it here.