View Issue Details

IDProjectCategoryView StatusLast Update
0003092OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2012-12-07 14:28
Reportertjungcl Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionsuspended 
Product VersionPast development 
Summary0003092: article: "not isBuyable()" does not equal "isNotBuyable()"
Descriptionin productmain.tpl the basket-buttons are wrapped into an if block that checks:
(!$oDetailsProduct->isNotBuyable())

There is also a function isBuyable() - however those functions behave differently with variant parents.

As far as i can judge, the isBuyable() function is more correct because a notbuyableparent is not buyable.

The isNotBuyable() function does not check the buyableparent property.

TagsProducts
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Relationships

related to 0001655 resolveddainius.bigelis Calling oxArticle::loadAmountPrice befor oxArticle::getBasketPrice leads to price = 0 

Activities

svetlana

2011-08-04 15:41

reporter   ~0004933

@developers: check from source code side if such an issue exist

arvydas_vapsva

2011-08-08 13:01

reporter   ~0004942

Agree! Sadly it can't be fixed right now (must refactor source code and change many templates). In next major release we're going to refactor this class (others also) and improve getters which now returns only properties, by enabling them to do real job (calculations etc).

Usage of "oxArticle::isBuyable()" is correct and recommended.

arvydas_vapsva

2011-08-08 13:07

reporter   ~0004943

see comment