Posts

Problem

When order saves in database it necessary set order number in format YYYYMMDD{UNIQUE_ID_IN_DAY}.

Solution

We need one cell in a table to store current date in format YYYYMMDD. In this case such table has name system_config_parameter and consists of two columns : key, value.
Let’s create sequence for generating ID during the day read more

Tags