Hi, I did not check, but you can try to use this method: oxBasket::setStockCheckMode() and set the stock mode to false, e.g.: $oBasket->setStockCheckMode(false);
Regards, Vilma From: [email protected] [mailto:[email protected]] On Behalf Of Ralf Kronen Sent: Monday, June 18, 2012 5:07 PM To: [email protected] Subject: [oxid-dev-general] ignore stock and stockstatus Hi, in the shop exists orders with the db flag oxorder__offer = 1. This flag cause that a order can be placed back into the basket and edit. The function in a oxcmp_basket modul. public function loadBasketFromOffer() { $offerId = oxConfig::getParameter('offerid'); $oUser = $this->getUser(); $oBasket = $this->getSession()->getBasket(); $oBasket->deleteBasket(); $oBasket->setOrderId($offerId); $oBasket->setBasketUser($oUser); $oOrder = oxNew('oxorder'); $oOrder->load($offerId); $oOrderArticles = $oOrder->getOrderArticles(); $this->getSession()->setBasket($oBasket); foreach($oOrderArticles as $oOrderArticle) { $this->tobasket($oOrderArticle->oxorderarticles__oxartid->value, $oOrderArticle->oxorderarticles__oxamount->value, null, $oOrderArticle->getPersParams()); } //foreach } Now, i have the problem, when the article is not in stock, the tobasket-function doesn't work. it should behave in this case as oxarticles__oxstockflag = 0 (standard). Is it possible to realize that, and how? cheers ralf
_______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
