Developer forum

Forum » Development » Valid characters in eCommerce?

Valid characters in eCommerce?


Reply
Hi,

I am importing a lot of ecommerce content (products, groups, categories etc.) and using the API for this.

After an import, many product URLs will not work (using new url format), because product or group names contains special characters.

What characters are valid/invalid for names in eCommerce?
Is there any way to validate product and group names to ensure that links will work?

BR.
Morten
 

Replies

 
Nicolai Høeg Pedersen
Reply
The URL handler should handle invalid characters it self...

Dynamicweb.Base.UrlEnable handles the clean up and can be used by you also, but should not be needed. The same used for all other URLs in DW

What kind of characters are giving issues?
 
Reply
This is one of the product names that is causing problems...

Samsung XL2370HD 23" led

The problem here is the quotation mark, which is not encoded in any way.
 
The quotation mark closes the href attribute and thereby leaves out the rest of the link...

/Elektronik/TV/Samsung-XL2370HD-23

This is what the link looks like in the page source...

href="/Elektronik/TV/Samsung-XL2370HD-23"-led.aspx?PID=171"

/Morten
 
Nicolai Høeg Pedersen
Reply
That is more a bug...

TFS6153, fixed - ready for next SR due next week.

Untill then - path encode in SEO url control panel might solve the problem as well.

 

You must be logged in to post in the forum