View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005099 | OXID eShop (all versions) | 1.03. Basket, checkout process | public | 2013-05-02 13:08 | 2013-07-30 14:25 |
Reporter | torsten.dix | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.7.5 / 5.0.5 | ||||
Fixed in Version | 4.7.7 / 5.0.7 | ||||
Summary | 0005099: Vouchertimeout not adjustable | ||||
Description | The timeout for vouchers is set to 3 hours in the code of oxvoucher.php Im many cases this is to long, for example, is a user has lost his session and will try to start his order again. So this time should be configurable in the config.inc.php. | ||||
Steps To Reproduce | Can be always reproduced, when a voucher has been put to the basket and the browser is restarted after this. | ||||
Additional Information | We have made the following core-Patch to solve this problem: config.inc.php: $this->iVoucherTimeout = 900; oxvoucher.php: New method: protected function _getVoucherTimeout() { return intval(oxRegistry::getConfig()->getConfigParam( 'iVoucherTimeout' )) ? intval(oxRegistry::getConfig()->getConfigParam( 'iVoucherTimeout' )) : 3 *3600; } Replacement of (3 * 3600) in getVoucherByNr(..) and _isNotReserved() by $this->_getVoucherTimeout() | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||