Added accept_digging to preorder
This commit is contained in:
@@ -508,6 +508,9 @@ class PreorderApicontroller extends mfBaseApicontroller {
|
||||
if($this->post['acceptWithdrawal'] === true) {
|
||||
$preorder_data['accept_withdrawal'] = 1;
|
||||
}
|
||||
if($this->post['acceptDigging'] === true) {
|
||||
$preorder_data['accept_digging'] = 1;
|
||||
}
|
||||
|
||||
if($is_additional_order) {
|
||||
$preorder_data['is_additional_order'] = 1;
|
||||
|
||||
@@ -61,6 +61,7 @@ class Preorder extends mfBaseModel {
|
||||
$a['acceptAgb'] = ($this->accept_agb) ? true : false;
|
||||
$a['acceptDsgvo'] = ($this->accept_dsgvo) ? true : false;
|
||||
$a['acceptWithdrawal'] = ($this->accept_withdrawal) ? true : false;
|
||||
$a['acceptDigging'] = ($this->accept_digging) ? true : false;
|
||||
$a['address_info'] = ($this->address_info) ? $this->address_info : null;
|
||||
|
||||
$address = [];
|
||||
|
||||
@@ -315,6 +315,10 @@ class PreorderController extends mfBaseController {
|
||||
if($r->accept_marketing == 1) {
|
||||
$data['accept_marketing'] = 1;
|
||||
}
|
||||
$data['accept_digging'] = 0;
|
||||
if($r->accept_digging== 1) {
|
||||
$data['accept_digging'] = 1;
|
||||
}
|
||||
|
||||
$data['price'] = ($r->price) ? Layout::commaToDot($r->price) : 0;
|
||||
$data['price_setup'] = ($r->price_setup) ? Layout::commaToDot($r->price_setup) : 0;
|
||||
|
||||
@@ -29,6 +29,7 @@ class PreorderModel {
|
||||
public $accept_dsgvo;
|
||||
public $accept_marketing;
|
||||
public $accept_withdrawal;
|
||||
public $accept_digging;
|
||||
public $contact_type;
|
||||
public $company;
|
||||
public $uid;
|
||||
|
||||
Reference in New Issue
Block a user