View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005630 | OXID eShop (all versions) | 2.4. Administer products | public | 2014-01-29 17:07 | 2024-09-25 11:50 |
Reporter | martinwegele | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.8.1 / 5.1.1 | ||||
Target Version | 4.8.8 / 5.1.8 | Fixed in Version | 4.9.0_5.2.0_RC1 | ||
Summary | 0005630: Setting a category as the main category collides with subshop | ||||
Description | In an OXID eShop Enterprise Edition with two subshops where one inherits all articles from the other it is impossible to set different main categories for the same article in each subshop. | ||||
Additional Information | There seems to be a problem with the layout of the table oxobject2category and the use of oxtime. This is not "multi-shop safe". | ||||
Tags | Category, Documentation, EE, Subshops | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
This seems to be no problem in the frontend because the main category is determined like this for example:$sQ = "select oxcatnid from ".getViewName( "oxobject2category" )." where oxobjectid = ".$oDb->quote( $sArtId )." order by oxtime"; /* removed some lines in between */ $sMainCatId = $oDb->getOne( $sQ ); see: https://github.com/OXID-eSales/oxideshop_ce/blob/v4.8.2/source/application/models/oxseoencoderarticle.php#L328 or https://github.com/OXID-eSales/oxideshop_ce/blob/v4.8.2/source/application/models/oxarticle.php#L1524 However in the popup for category assignment the marking does not check for the lowest value but only for 0: https://github.com/OXID-eSales/oxideshop_ce/blob/v4.8.2/source/application/views/admin/tpl/popups/article_extend.tpl#L29 (?) Therefore it is probably just a problem of displaying ("highlighting") the main category in this popup in the admin area. |
|
Main category handling will take different shops into account and will work with currently selected shop instead of working with all shops at once. |