View Issue Details

IDProjectCategoryView StatusLast Update
0002111OXID eShop (all versions)1.03. Basket, checkout processpublic2012-12-10 14:13
Reportervgoebbels Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
Product Version4.4.2 revision 29492 
Summary0002111: Delivery calculation for category restricted delivery rules doesn't work with variants
DescriptionWhen a delivery rule is restricted to one or more categories this doesn't work with varaints.
Steps To ReproduceCreate a delivery rule bound to a category which contains articles with variants (like the ECO fashion cat in the demo data set). Then add a jeans to the basket. The restricted rule will not be used at all.
Additional InformationoxDelivery::isForBasket() creates an oxarticle object for each basket item to check against the categories. For each item it then checks via $oProduct->inCategory($sCatId) if the item is conatined in the category of the delivery rule. At this point oxArticle::inCategory() is called, NOT oxSimpleVariant::inCategory(). Since the OXID of the variant is _not_ containted in oxobject2category but the OXID of the parent article, this method always returns false. This will never work for variants :)
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

arvydas_vapsva

2010-10-22 11:19

reporter   ~0003624

Last edited: 2010-10-22 12:55

Problem is not in variant/category bindings. If you would check source code, you would see, that oxArticle::inCategory() does parent check.

I think the problem is in delivery and category check. Imagine situation:

CatA
|-SubCatB

Product Z is in SubCatB

Delivery X assigned to CatA
Delivery Y assigned to SubCatB

Basket contains: Product Z + Delivery Y costs, but no Delivery X costs

Problem is that delivery category check does not include parent categories..

dainius.bigelis

2010-12-01 17:28

reporter   ~0003775

As a solution for this case - the new option is needed, which would define if assignment of categories should be inherited to sub-categories or not. This is registered in list of feature requests:
http://oxid.uservoice.com/forums/31940-feature-requests/suggestions/1261865-option-for-inheriting-assignments-to-sub-categorie?ref=title
So entry here is closed.

Thank you for your report.