This commit is contained in:
Kevin Adametz 2021-02-10 10:56:40 +01:00
parent 32595ab5a1
commit 13fb2cfe98
70 changed files with 3614 additions and 401 deletions

View file

@ -176,6 +176,8 @@ class ShoppingUser extends Model
'wp_order_number' => 'int',
];
//can null
public function member()
{
@ -243,4 +245,11 @@ class ShoppingUser extends Model
}
return $this;
}
public function getAPIShippedType() {
if($this->shopping_order){
return $this->shopping_order->getAPIShippedType();
}
return "free";
}
}