View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002439 | OXID eShop (all versions) | 1.03. Basket, checkout process | public | 2011-01-24 18:20 | 2012-12-07 15:17 |
Reporter | Moehlis | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.4.5 revision 31315 | ||||
Fixed in Version | 4.5.4 revision 39463 | ||||
Summary | 0002439: wrong oxuserpayment entry in checkout | ||||
Description | If you change your payment data (dynvalues) and order again (so there will be two entries in oxuserpayments), the next checkout will use the outdated payment values for default dynvalues. Bug lies in oxuserpayment.php:217 getPaymentByPaymentType EE 4.4.5 31315 Wrong: $sSelect = 'select oxid from oxuserpayments where oxpaymentsid=' . oxDb::getDb()->quote( $sPaymentType ) . ' and oxuserid="' . $oUser->getId() . '" '; Fix: $sSelect = 'select oxpaymentid from oxorder where oxuserid = "' . $oUser->getId() . '" and oxpaymenttype = ' . oxDb::getDb()->quote( $sPaymentType ) . ' order by oxorderdate desc'; Bug also exists in the 4.5.0_beta1 | ||||
Tags | Payment | ||||
Theme | |||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
related to | 0003308 | resolved | arvydas_vapsva | Payment info is lost if user makes the second order with the same payment type |