View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003771 | OXID eShop (all versions) | 1.02. Price calculations (discounts, coupons, additional costs etc.) | public | 2012-03-27 08:43 | 2015-05-04 14:15 |
Reporter | [email protected] | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.4 revision 39463 | ||||
Fixed in Version | 4.5.10 revision 44222 | ||||
Summary | 0003771: if u set the coupons valid date from but don't set until date it will let u use coupons no matter what date from was setted | ||||
Description | bug in oxvoucher::_isValidDate if ( ( strtotime( $oSerie->oxvoucherseries__oxbegindate->value ) < time() && strtotime( $oSerie->oxvoucherseries__oxenddate->value ) > time() ) || !$oSerie->oxvoucherseries__oxenddate->value || $oSerie->oxvoucherseries__oxenddate->value == $sDefTimeStamp ) { return true; } This if return true if begindate set to tomorows date and enddate is set to 0, so it will let u use the coupons, if you set the enddate to next month it will work corretly as i see where is a bug in if. unles it intended to be so. | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||