Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/units/orders/orders_event_handler.php
| Show First 20 Lines • Show All 2522 Lines • ▼ Show 20 Line(s) | |||||
| $this->UpdateShippingTotal($event); | $this->UpdateShippingTotal($event); | ||||
| $this->RecalculateGift($event); | $this->RecalculateGift($event); | ||||
| // guess fields from "One Step Checkout" form | // guess fields from "One Step Checkout" form | ||||
| if ( $object->GetDBField('PaymentAccount') ) { | if ( $object->GetDBField('PaymentAccount') ) { | ||||
| $order_helper = $this->Application->recallObject('OrderHelper'); | $order_helper = $this->Application->recallObject('OrderHelper'); | ||||
| /* @var $order_helper OrderHelper */ | /* @var $order_helper OrderHelper */ | ||||
| $object->SetDBField('PaymentCardType', $order_helper->getCreditCartType($object->GetDBField('PaymentAccount'))); | $object->SetDBField( | ||||
| 'PaymentCardType', | |||||
| $order_helper->getCreditCardType($object->GetDBField('PaymentAccount')) | |||||
| ); | |||||
| } | } | ||||
| else { | else { | ||||
| $object->SetDBField('PaymentCardType', ''); | $object->SetDBField('PaymentCardType', ''); | ||||
| } | } | ||||
| if ( !$object->GetDBField('PaymentNameOnCard') ) { | if ( !$object->GetDBField('PaymentNameOnCard') ) { | ||||
| $object->SetDBField('PaymentNameOnCard', $object->GetDBField('BillingTo')); | $object->SetDBField('PaymentNameOnCard', $object->GetDBField('BillingTo')); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1565 Lines • Show Last 20 Lines | |||||