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|
|Target Version||Fixed in Version|
|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|
|PHP Version||Not defined|
|Database Version||Not defined|
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.
is not overriden in EE-Compilation, so stock managment is not working out of the box
Install new ee
add oxstockflag to config.inc.php
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.