Developer forum

Forum » Ecommerce - Standard features » Product number/id in url for some products.

Product number/id in url for some products.

Kasper Legarth
Reply

Hello

I need some advice on this. We have a customer who sells both new and second-hand products. As of now the URL structure is like this:

`domain.com/page/new/category/product-x` for new products and `domain.com/page/second-hand/category/product-x` for second-hand products.

There are times when our client have multiple products with the same name. So they want to add the product number to the URL.So: `domain.com/page/second-hand/category/product-x-11223344`

Ideal they only want to add it the second-hand products, but are open to do it on all products. I have seen the "Enable high volume product URLs"  The site does have about 2.000 products so not the 10.000 as the setting states. Would it be a bad solution to use this?

Kind regards
Kasper


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Kasper,

I don't think that you have a solution out of the box especially if you want to apply it just for a specific category tree.

Maybe you should try and edit the URL property of the product and add the value including the product number in that field.

Depending on how you import products, you can handle it in the integration process (with a Table script) or with a separate SQL Add-in after the integration job.

Adrian

 
Kasper Legarth
Reply

Hi Adrian

Thank you for your answer. So what you are saying. They are not a solution in DW to define that type of URL pattern. Even if it is NOT only on one category?

And you solution would be to make our bc integration fill out he exact URL on all products? 

- Kasper

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Kasper,

Apparently, I was wrong. I see that newer versions of DW9 and all DW10 have the option to include ProductNumber in URL:

I have not played around with it, but it seems to be what you need (except for applying it only to some categories).

Adrian

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Using high volume URLs will add the id or productnumber for all products. That is the easisest.

The alternative is to use 'regular' product URLs. Each product has a field on the product where the URL part for the product can be overriden. You can then either do that manual, using integration or create a scheduled task using the SQL provider and calculate what the URL for the second hand product should be by combining fields in an update query.

 
Kasper Legarth
Reply

Hi @Nicolai

So, is there no problem with using high-volume URLs, even though I have many fewer products?

And will simply add the product number to the existing URL?

- Kasper

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

No problems using it - In my humble opinion you should always run with it. And yes, it will simply add the product number to the URL.

SEO experts tend to dislike e.g. SKUs in URLs - not sure why - but that would be the only reason to run with the 'regular' URLs

 

You must be logged in to post in the forum