Skip to main content

Autogenerate product codes

In Stockagile you have the possibility to automatically generate product codes based on product attributes such as brand, category, subcategory or season, combining them according to the template you configure. You can also choose a simple, incremental counter instead of an attribute-based template. This way you can clearly identify a product just by reading the code.

Requirements for autogenerating a product code

  • The user must have the role of OWNER, STORE MANAGER, WAREHOUSE MANAGER or PRODUCT EDITOR. You can see the different types of roles in the section Create or edit a user.

  • The user must have the role of OWNER to be able to edit the code generation rule in Serial Number Configuration.

Steps to auto-generate a product code

  1. Go to the PRODUCTS screen located in the side menu under the CATALOG section.

  2. Click on the NEW PRODUCT button

  3. Inside the product creation pop-up click on the link You can also use the advanced creator.

  4. Once inside the product creation screen, check the Auto-generate code checkbox.

  5. From now on, every time you change the attributes configured in the template (for example brand, category and subcategory), Stockagile will automatically create a code combining the codes of those attributes. For example, given the brand "SA – Stockagile Brand", category "008 – Pendientes" and subcategory "Pen – Pendientes", with the default template {brand}{category}{subcategory}.{counter} Stockagile creates the code SA008Pen.00001. If a product with that code already exists in the system, Stockagile automatically increases the final counter (for example, SA008Pen.00002).

  6. If you want to change how codes are generated, you can go to the Serial Number Configuration screen. There you can choose between Product Code Template, where you define your own combination of attributes using placeholders such as {brand}, {season}, {category}, {subcategory}, {composition}, {group}, {origin}, {size}, {color} and {counter}; or Product Counter Serial Number, a simple, incremental counter if you'd rather not base the code on the product's attributes.

Step 5: Auto-generated code example

Step 6: Example of code autogeneration template

Did this answer your question?