Developer forum

Forum » Ecommerce - Standard features » Number series for products

Number series for products

Martin Moen
Reply

Is it possible to create auto numbering for products, that follow a number series like the orders?
When you create a product in DW it gets the PROD1, PROD2, etc. automatically. But we would like to use our own number series that is automatically incremented whenever a new product is created.


Replies

 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

Yes

you can use Notification subscrber  and modify product ID value before save new product

https://doc.dynamicweb.com/api/html/ead49d9f-92b1-c905-83ea-183526ed18ba.htm 

also you can use EcomNumbers Table to Generate ProductId and Prefix 

 
Nicolai Pedersen
Reply

Or change the [NumberPrefix] in the table EcomNumbers for [NumberType]="PROD"

So instead of PROD1 it can be "YourOwnPrefix1"

 
Martin Moen
Reply

Nice! Can it also be blank?

 
Nicolai Pedersen
Reply

Probably empty string...

 

You must be logged in to post in the forum