checkout, register, payment,
checkout correction, register wizard, payment packege,
This commit is contained in:
parent
6e3adac4d7
commit
446bc4561b
48 changed files with 2580 additions and 1493 deletions
|
|
@ -18,7 +18,7 @@ class UserRepository extends BaseRepository {
|
|||
public function update($data)
|
||||
{
|
||||
|
||||
if($data['user_id'] == "new"){
|
||||
if($data['user_id'] == "new" || $data['user_id'] == 0){
|
||||
|
||||
$this->model = User::create([
|
||||
'email' => $data['email'],
|
||||
|
|
@ -35,44 +35,9 @@ class UserRepository extends BaseRepository {
|
|||
$account = $this->model->account;
|
||||
}
|
||||
|
||||
$account->company = $data['company'];
|
||||
$data['same_as_billing'] = !isset($data['same_as_billing']) ? 0 : 1;
|
||||
|
||||
$account->company_name = $data['company_name'];
|
||||
|
||||
$account->company_street = $data['company_street'];
|
||||
$account->company_postal_code = $data['company_postal_code'];
|
||||
$account->company_city = $data['company_city'];
|
||||
$account->company_country_id = isset($data['company_country_id']) ? $data['company_country_id'] : null;
|
||||
$account->company_pre_phone_id = isset($data['company_pre_phone_id']) ? $data['company_pre_phone_id']: null;
|
||||
$account->company_phone = $data['company_phone'];
|
||||
$account->company_homepage = $data['company_homepage'];
|
||||
|
||||
$account->salutation = $data['salutation'];
|
||||
$account->title = $data['title'];
|
||||
$account->first_name = $data['first_name'];
|
||||
$account->last_name = $data['last_name'];
|
||||
|
||||
$account->street = $data['street'];
|
||||
$account->postal_code = $data['postal_code'];
|
||||
$account->city = $data['city'];
|
||||
$account->country_id = isset($data['country_id']) ? $data['country_id'] : null;
|
||||
|
||||
$account->pre_phone_id = isset($data['pre_phone_id']) ? $data['pre_phone_id']: null;
|
||||
$account->phone = $data['phone'];
|
||||
|
||||
$account->pre_mobil_id = isset($data['pre_mobil_id']) ? $data['pre_mobil_id']: null;
|
||||
$account->mobil = $data['mobil'];
|
||||
|
||||
$account->birthday = $data['birthday'];
|
||||
$account->website = $data['website'];
|
||||
$account->instagram = $data['instagram'];
|
||||
$account->facebook = $data['facebook'];
|
||||
$account->facebook_fanpage = $data['facebook_fanpage'];
|
||||
|
||||
//data_protection
|
||||
//active_date
|
||||
//active
|
||||
$account->save();
|
||||
$account->fill($data)->save();
|
||||
|
||||
if(!$this->model->account_id){
|
||||
$this->model->account_id = $account->id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue