WIP Snopp Order
This commit is contained in:
@@ -67,6 +67,27 @@ class Order extends mfBaseModel {
|
||||
//var_dump($this->terminations);exit;
|
||||
return $terminations;
|
||||
}
|
||||
|
||||
public function getSnoppProduct() {
|
||||
foreach($this->getProperty("products") as $product) {
|
||||
if($product->snopp_order_id) return $product;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getOaidProduct() {
|
||||
foreach($this->getProperty("products") as $product) {
|
||||
if($product->oaid) return $product;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getPreorderProduct() {
|
||||
foreach($this->getProperty("products") as $product) {
|
||||
if($product->preorder_id) return $product;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getShippingdate() {
|
||||
if(!$this->id) {
|
||||
|
||||
Reference in New Issue
Block a user