We have multiple variants per product -some of the variants show fine, and others show a 404 error when selected.
If I change the customized urls for ecommerce to "do nothing" the product shows on front end with the detailed url:
Shows products with url => Default.aspx?ID={productpageid}&GroupID=&ProductID={productid}&VariantID={variantid}
However, this configuration:
results int the following 404 url (only for some variants): /{product page name}/{Product Name}/{variant combination option}-5?GroupID=
So even though the variant is available and shows if you use the base, unaltered fully qualified url, when using the customized version its bombing out - again only for some variants, not all.
So my query is:
1. Some of the variant URLs have -1,-6, etc appended, even though they only belong to a single group in the system.
What is the logic or table queries that happen to produce this url in the the backend?
Does it look in the EcomProducts, etc table to determine duplicates and is it possible find out why its appending a particular count for a product/variant and remove the offending entries.
2. Is it not possible to see what the correct url is for the product (like some sort of mapping table)?
3. Is it not possible to rebuild this index?
Currently I've created a task to run Dynamicweb.Frontend.UrlHandling.UrlHelper.SetResetNeeded(), Dynamicweb.Frontend.UrlProviders.Handler.Reset() and Dynamicweb.Frontend.UrlHandling.UrlIndex.Reset() when necessary, although it doesn't seem to make a difference - the system still appends and responds with a 404, even though the variant is available and shows if you use the original url.
For another day:
The 404 page is not great as it's part of the site, but when i try to set this to be a particular page in DW Admin, I get a circular reference:
Handler404.Handle() has already been called. Circular reference.
I've been through the forum posts and although i found some good bits like the index resets, nothing has really provided a solution.
Thanks Andrew