View Issue Details

IDProjectCategoryView StatusLast Update
0000990OXID eShop (all versions)4.09. SEO, SEO URLpublic2012-12-10 13:35
Reporterphilipp_grashoff Assigned To 
PrioritylowSeveritytrivialReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.1.2 revision 18998 
Fixed in Version4.1.4 revision 21266 
Summary0000990: SEO URLs for products should be sorted by OXTIME
Descriptionin Products -> SEO tab, u can select different category SEO URLs for a product. These categories arent sorted and are loaded as the category assignments (oxobject2category) are stored in the database. It would make sense to have these URLs sorted by OXTIME entry:
1) newly assigned categories are always shown last (had the case that a new entry wasnt inserted at the end of the database but somewhere in between)
2) main category of product is always shown first.

Solution:
In core/oxseoencoderarticle.php, function getSeoCategories, ~ line 320: add order by to sql:
        $sQ = "select distinct catroots.oxrootid
                from oxobject2category as o2c
                left join {$sCatTable} as catroots
                on o2c.oxcatnid=catroots.oxid
                where o2c.oxobjectid = '$sArtId' order by o2c.oxtime";
Additional InformationFor further info, u can ask sarunas. Discussed this case with him
TagsNo tags attached.
Theme
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Activities

sarunas_valaskevicius

2009-06-22 09:12

reporter   ~0001096

added sorting by oxtime