|
|
|
@ -146,6 +146,14 @@ function fulcrm_shoppingcart_remove_url( $shoppingitem_id ) {
|
|
|
|
|
return url( 'fulcrm/cart/remove/' . $shoppingitem_id . '/' . $hmac );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fulcrm_shoppingcart_buy_eventobokingtype_person_form_submit( $form, &$form_state ) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fulcrm_shoppingcart_buy_eventobokingtype_person_form( $form, &$form_state ) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fulcrm_shoppingcart_buy_eventbookingtype_form_submit( $form, &$form_state ) {
|
|
|
|
|
// $person_d = fulcrm_collection_form_values_to_d( 'person', $form_state[ 'values' ] );
|
|
|
|
|
|
|
|
|
@ -177,6 +185,7 @@ function fulcrm_shoppingcart_buy_eventbookingtype_form_submit( $form, &$form_sta
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach ( $form_state[ 'values' ][ 'ticket_for_persons' ] as $ticket_for_person ) {
|
|
|
|
|
$person_name = 'unnamed person';
|
|
|
|
|
if ( $ticket_for_person === 'myself' ) {
|
|
|
|
|
$person_uuid = $form_state[ 'fulcrm_shoppingcart' ][ 'person' ][ 'uuid' ];
|
|
|
|
|
$person_name = $form_state[ 'fulcrm_shoppingcart' ][ 'person' ][ 'name' ];
|
|
|
|
@ -274,13 +283,13 @@ function fulcrm_shoppingcart_buy_eventbookingtype_form( $form, &$form_state, $pe
|
|
|
|
|
'#options' => $persons,
|
|
|
|
|
);
|
|
|
|
|
$form[ 'tickets_for_others' ] = array( '#type' => 'select',
|
|
|
|
|
'#title' => 'How many tickets would you like for other people?',
|
|
|
|
|
'#description' => 'Choose how many tickets you are getting for other people. You\'ll be asked their names soon.',
|
|
|
|
|
'#options' => array( 0 => 'just the named people above',
|
|
|
|
|
1 => '1 more',
|
|
|
|
|
2 => '2 more',
|
|
|
|
|
3 => '3 more',
|
|
|
|
|
4 => '4 more',
|
|
|
|
|
'#title' => 'Do you need extra tickets for any other people?',
|
|
|
|
|
'#description' => 'Choose how many tickets you are getting for other people. You\'ll be asked their details in the next step.',
|
|
|
|
|
'#options' => array( 0 => 'No thanks, just the people I\'ve chosen above.',
|
|
|
|
|
1 => 'Yes, 1 more!',
|
|
|
|
|
2 => 'Yes, 2 more!',
|
|
|
|
|
3 => 'Yes, 3 more!',
|
|
|
|
|
4 => 'Yes, 4 more!',
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|