1
|
|
|
<?php |
2
|
|
|
/* |
3
|
|
|
* This file is part of EC-CUBE |
4
|
|
|
* |
5
|
|
|
* Copyright(c) 2000-2017 LOCKON CO.,LTD. All Rights Reserved. |
6
|
|
|
* |
7
|
|
|
* http://www.lockon.co.jp/ |
8
|
|
|
* |
9
|
|
|
* This program is free software; you can redistribute it and/or |
10
|
|
|
* modify it under the terms of the GNU General Public License |
11
|
|
|
* as published by the Free Software Foundation; either version 2 |
12
|
|
|
* of the License, or (at your option) any later version. |
13
|
|
|
* |
14
|
|
|
* This program is distributed in the hope that it will be useful, |
15
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
16
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17
|
|
|
* GNU General Public License for more details. |
18
|
|
|
* |
19
|
|
|
* You should have received a copy of the GNU General Public License |
20
|
|
|
* along with this program; if not, write to the Free Software |
21
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
22
|
|
|
*/ |
23
|
|
|
|
24
|
|
|
namespace Page\Front; |
25
|
|
|
|
26
|
|
|
|
27
|
|
|
class ShoppingNonmemberPage extends AbstractFrontPage |
|
|
|
|
28
|
|
|
{ |
29
|
|
|
public static function at($I) |
30
|
|
|
{ |
31
|
|
|
$page = new self($I); |
32
|
|
|
$page->tester->see('お客様情報の入力', 'div.ec-pageHeader h1'); |
33
|
|
|
return $page; |
|
|
|
|
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
|
37
|
|
|
public function 入力_姓($value) |
|
|
|
|
38
|
|
|
{ |
39
|
|
|
$this->tester->fillField(['id' => 'nonmember_name_name01'], $value); |
40
|
|
|
return $this; |
|
|
|
|
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
public function 入力_名($value) |
|
|
|
|
44
|
|
|
{ |
45
|
|
|
$this->tester->fillField(['id' => 'nonmember_name_name02'], $value); |
46
|
|
|
return $this; |
|
|
|
|
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
public function 入力_セイ($value) |
|
|
|
|
50
|
|
|
{ |
51
|
|
|
$this->tester->fillField(['id' => 'nonmember_kana_kana01'], $value); |
52
|
|
|
return $this; |
|
|
|
|
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
public function 入力_メイ($value) |
|
|
|
|
56
|
|
|
{ |
57
|
|
|
$this->tester->fillField(['id' => 'nonmember_kana_kana02'], $value); |
58
|
|
|
return $this; |
|
|
|
|
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
public function 入力_郵便番号($value) |
|
|
|
|
62
|
|
|
{ |
63
|
|
|
$this->tester->fillField(['id' => 'nonmember_postal_code'], $value); |
64
|
|
|
|
65
|
|
|
return $this; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
public function 入力_都道府県($value) |
|
|
|
|
69
|
|
|
{ |
70
|
|
|
$this->tester->selectOption(['id' => 'nonmember_address_pref'], $value); |
71
|
|
|
return $this; |
|
|
|
|
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
public function 入力_市区町村名($value) |
|
|
|
|
75
|
|
|
{ |
76
|
|
|
$this->tester->fillField(['id' => 'nonmember_address_addr01'], $value); |
77
|
|
|
return $this; |
|
|
|
|
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
public function 入力_番地_ビル名($value) |
|
|
|
|
81
|
|
|
{ |
82
|
|
|
$this->tester->fillField(['id' => 'nonmember_address_addr02'], $value); |
83
|
|
|
return $this; |
|
|
|
|
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
public function 入力_Eメール($value) |
|
|
|
|
87
|
|
|
{ |
88
|
|
|
$this->tester->fillField(['id' => 'nonmember_email_first'], $value); |
89
|
|
|
return $this; |
|
|
|
|
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
public function 入力_Eメール確認($value) |
|
|
|
|
93
|
|
|
{ |
94
|
|
|
$this->tester->fillField(['id' => 'nonmember_email_second'], $value); |
95
|
|
|
return $this; |
|
|
|
|
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
public function 入力_電話番号($value) |
|
|
|
|
99
|
|
|
{ |
100
|
|
|
$this->tester->fillField(['id' => 'nonmember_phone_number'], $value); |
101
|
|
|
return $this; |
|
|
|
|
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
public function 次へ() |
|
|
|
|
105
|
|
|
{ |
106
|
|
|
$this->tester->click('div.ec-RegisterRole__actions button.ec-blockBtn--action'); |
107
|
|
|
return $this; |
|
|
|
|
108
|
|
|
} |
109
|
|
|
} |