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