View Issue Details

IDProjectCategoryView StatusLast Update
0005024OXID eShop (all versions)1.03. Basket, checkout processpublic2023-11-29 15:23
Reportermpienkny Assigned To 
Status confirmedResolutionopen 
Summary0005024: OXID EE: oxarticle->checkForStock() ignores oxfield2shop
DescriptionSQL 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)?
TagsEE, Multi Shop, Product domain and basket rewrite, Stock, Subshops
ThemeNot defined
PHP VersionNot defined
Database VersionNot defined


related to 0006209 acknowledgedflorian.auer Can't use oxfield2shop for OXSTOCK 
related to 0005038 resolvedLinas Kukulskis OXID EE: oxarticlelist->loadStockRemindProducts() does not use oxfield2shop 



2013-04-03 17:07

reporter   ~0008558

0005038 is same story, but different code/class - will really ALL code be fixed?
I found more of them :-(

Linas Kukulskis

2013-04-03 17:28

reporter   ~0008559

yes, code different, but problem the same :)


2014-03-28 17:23

reporter   ~0009786

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.


2022-07-06 13:02

administrator   ~0013836

/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
add oxstockflag to oxfield2shop

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.