View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005024 | OXID eShop (all versions) | 1.03. Basket, checkout process | public | 2013-03-27 14:52 | 2023-11-29 15:23 |
Reporter | mpienkny | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Summary | 0005024: OXID EE: oxarticle->checkForStock() ignores oxfield2shop | ||||
Description | SQL statement in this function always takes stock of primary shop (if article is shared over sub-shops), even if this is "overriden" by oxfield2shop for sub-shop Maybe it is better to use object-based functionality instead (checkForStock() is part of an instance of oxarticle)? | ||||
Tags | EE, Multi Shop, Product domain and basket rewrite, Stock, Subshops | ||||
Theme | Not defined | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
related to | 0006209 | acknowledged | florian.auer | Can't use oxfield2shop for OXSTOCK |
related to | 0005038 | resolved | Linas Kukulskis | OXID EE: oxarticlelist->loadStockRemindProducts() does not use oxfield2shop |
|
0005038 is same story, but different code/class - will really ALL code be fixed? I found more of them :-( |
|
yes, code different, but problem the same :) |
|
Similar problem in method updateSoldAmount. Article stock changes in parent not in subshop. Same problems would appear with all other article fields, like stock flag. |
|
/vendor/oxid-esales/oxideshop-ce/source/Application/Model/Article.php:2518 \OxidEsales\EshopCommunity\Application\Model\Article::checkForStock is not overriden in EE-Compilation, so stock managment is not working out of the box Install new ee create subshop add oxstockflag to config.inc.php add oxstockflag to oxfield2shop https://docs.oxid-esales.com/eshop/de/latest/konfiguration/mall-funktion/vererbung/individualisierung.html inherit article to subshop change configurations of oxstockflag in main-shop and sub-shop and stock, e.g. set stock to 0 set main-shop oxstockflag to 3 set subshop- oxstockflag to 1 or 2, so according to text it still should be buyable, but you won't be able to buy it. QA-SG- |