View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003536 | OXID eShop (all versions) | 1.03. Basket, checkout process | public | 2012-02-02 12:51 | 2012-12-10 13:22 |
Reporter | ksgerber | Assigned To | |||
Priority | urgent | Severity | major | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 4.5.6 revision 40808 | ||||
Summary | 0003536: Article Not Buyable (After Order Creation) | ||||
Description | After a basket is converted into an Order, the Order will reduce the stock and if this reaches 0 and the article is defined as not buyable when stock is equal zero the basket will throw an error. Normally this would not happen because the conversion from basket to order is done in one step, but if you integrate a third party payment gateway they all would require to override the GetArticle function in the basketitem. | ||||
Steps To Reproduce | Use the DataTrans or oxid2ipayment Payment modules and remove the basketitem module extension. | ||||
Additional Information | The following code would solve it, so this could be integrated into the standard basketitem. public function getArticle($blCheckProduct = true, $sProductId = null, $blDisableLazyLoading = false) { $oBasket = $this->getSession()->getBasket(); if($oBasket->getOrderId() == "") { return parent::getArticle($blCheckProduct, $sProductId, $blDisableLazyLoading); } else { return parent::getArticle(false, $sProductId, $blDisableLazyLoading); } } | ||||
Tags | Order | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||