Hi,

during adding products to oxbasket via addToBasket oxbasketitem::init is called 
with the productId and the amount. There the function oxbasketitem::_setArticle 
is called which calls oxbasketitem::getArticle(true, $sProductId).
The first parameter is for the variable '$blCheckProduct' which is used in 
oxbasketitem (line 442) for checking if a product is visible and can be added 
to the basket.
if ( $blCheckProduct && !$this->_oArticle->isVisible() )
If true an exception will be thrown and the article wont be ordered.

My problem is the hardcoded parameter true. oxbasketitem has a property 
'_blCheckArticleStock' which is set during creating the object in oxbasket, why 
it is not used in _setArticle?

Regards,
Max

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to