Auto-generate URLs for products

I want to auto-generate URLs for products on all active languages and also when the product name is updated. Before the last Litium update, I believe Litium added the SKU to the URL but now it does not?

In any case, if I have a product with SKU “99” and name “Red shirt”, I want the generated URL to be: 99-red-shirt

What is the best way to accomplish this?

Litium version: 7.2.3

For this:

I want to auto-generate URLs for products on all active languages

Create a background job which can do the job and for this:

also when the product name is updated

Create an Event which fires on name change.

Hi,
You can use the validation rules to update the url. See https://docs.litium.com/documentation/architecture/validation. Create a custom validation rule for variant and baseproduct in order to check the name and set the url according to the name in the validation rule.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.