omarzina / substruct

Automatically exported from code.google.com/p/substruct
0 stars 0 forks source link

Product slug support patch #156

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
As discussed in the group, having a way to include the full product name in the 
URL would 
optimize Substruct installations for search engines. This patch includes 
support for adding "slugs" 
to product links.

The method I used requires a uniform code length, which many stores already 
use. There are other 
ways of implementing this: all-numeric codes, delimiters, etc., but I think a 
uniform code length is 
the most common and most flexible in terms of code content.

To-do: add validation of product codes when this is enabled, so that they 
cannot be saved if they 
are not the proper length.

Original issue reported on code.google.com by ceager on 8 Dec 2008 at 10:45

Attachments:

GoogleCodeExporter commented 8 years ago
I'd rather support a delimiter than a uniform code length.

Reason being, we'd disturb people's already existing codes and would need to 
include
a migration if uniform code length were required.

Original comment by subim...@gmail.com on 9 Dec 2008 at 12:36

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Good point. Here it is using a delimiter.

Original comment by ceager on 17 Dec 2008 at 8:36

Attachments: