Differential D160 Diff 408 modules/in-commerce/units/shipping_quote_engines/shipping_quote_engine_event_handler.php
Changeset View
Changeset View
Standalone View
Standalone View
modules/in-commerce/units/shipping_quote_engines/shipping_quote_engine_event_handler.php
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | |||||
$object->SetError('Status', 'curl_not_present'); | $object->SetError('Status', 'curl_not_present'); | ||||
} | } | ||||
elseif ( ($object->GetDBField('Status') == STATUS_ACTIVE) && !$valid_address ) { | elseif ( ($object->GetDBField('Status') == STATUS_ACTIVE) && !$valid_address ) { | ||||
$object->SetError('Status', 'from_info_not_filled_in'); | $object->SetError('Status', 'from_info_not_filled_in'); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Apply same processing to each item being selected in grid | |||||
* | |||||
* @param kEvent $event | |||||
* @return void | |||||
* @access protected | |||||
*/ | |||||
protected function iterateItems(kEvent $event) | |||||
{ | |||||
parent::iterateItems($event); | |||||
if ( $event->Name == 'OnMassApprove' ) { | |||||
$event->status = kEvent::erSUCCESS; | |||||
$event->redirect = true; | |||||
} | |||||
} | |||||
/** | |||||
* Sets virtual fields from serialized properties array | * Sets virtual fields from serialized properties array | ||||
* | * | ||||
* @param kEvent $event | * @param kEvent $event | ||||
* @return void | * @return void | ||||
* @access protected | * @access protected | ||||
*/ | */ | ||||
protected function OnAfterItemLoad(kEvent $event) | protected function OnAfterItemLoad(kEvent $event) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
* | * | ||||
*/ | */ | ||||
function _deleteQuoteCache() | function _deleteQuoteCache() | ||||
{ | { | ||||
$sql = 'DELETE FROM ' . TABLE_PREFIX . 'SystemCache | $sql = 'DELETE FROM ' . TABLE_PREFIX . 'SystemCache | ||||
WHERE VarName LIKE "ShippingQuotes%"'; | WHERE VarName LIKE "ShippingQuotes%"'; | ||||
$this->Conn->Query($sql); | $this->Conn->Query($sql); | ||||
} | } | ||||
} | } | ||||
No newline at end of file |