1 | <?php |
||
13 | class Checkout |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * The class selector for the next step button in the checkout. |
||
18 | * @var string |
||
19 | */ |
||
20 | const NEXT_STEP_BUTTON_SELECTOR = '.spco-next-step-btn'; |
||
21 | |||
22 | |||
23 | const PAYMENT_METHOD_STEP_FORM = '#ee-spco-payment_options-reg-step-form'; |
||
24 | |||
25 | |||
26 | const SELECTOR_PAYMENT_OPTIONS_CONTAINER = '#spco-available-methods-of-payment-dv'; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * @param int $attendee_number |
||
31 | * @param bool $admin Used to indicate whether we're retrieving the selector from the context of the admin or not. |
||
32 | * @return string |
||
33 | */ |
||
34 | public static function firstNameFieldSelectorForAttendeeNumber($attendee_number = 1, $admin = false) |
||
38 | |||
39 | |||
40 | /** |
||
41 | * @param int $attendee_number |
||
42 | * @param bool $admin Used to indicate whether we're retrieving the selector from the context of the admin or not. |
||
43 | * @return string |
||
44 | */ |
||
45 | public static function lastNameFieldSelectorForAttendeeNumber($attendee_number = 1, $admin = false) |
||
49 | |||
50 | |||
51 | /** |
||
52 | * @param int $attendee_number |
||
53 | * @param bool $admin Used to indicate whether we're retrieving the selector from the context of the admin or not. |
||
54 | * @return string |
||
55 | */ |
||
56 | public static function emailFieldSelectorForAttendeeNumber($attendee_number = 1, $admin = false) |
||
60 | |||
61 | /** |
||
62 | * @param string $field_name |
||
63 | * @param int $attendee_number |
||
64 | * @param bool $admin Used to indicate whether we're retrieving the selector from the context of the admin or not. |
||
65 | * @return string |
||
66 | */ |
||
67 | public static function fieldSelectorForAttendeeNumber($field_name, $attendee_number = 1, $admin = false) |
||
73 | |||
74 | |||
75 | /** |
||
76 | * @param string $payment_method_slug Slug for the payment method. |
||
77 | * @return string |
||
78 | */ |
||
79 | public static function fieldSelectorForPaymentOption($payment_method_slug) |
||
83 | } |
||
84 |