|
|
|
@ -331,7 +331,7 @@ function fulcrm_shoppingcart_buy_eventbookingtype_form( $form, &$form_state, $pe
|
|
|
|
|
|
|
|
|
|
$form[ 'actions' ] = array( '#type' => 'actions' );
|
|
|
|
|
$form[ 'actions' ][ 'save' ] = array( '#type' => 'submit',
|
|
|
|
|
'#value' => t('Add to Basket'),
|
|
|
|
|
'#value' => t('Add to Cart'),
|
|
|
|
|
'#submit' => array( 'fulcrm_shoppingcart_buy_eventbookingtype_form_submit' ),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
@ -391,7 +391,7 @@ function fulcrm_shoppingcart_buy( $product_id, $hmac ) {
|
|
|
|
|
|
|
|
|
|
return 'ok!';
|
|
|
|
|
} else {
|
|
|
|
|
return 'error adding item to shopping basket';
|
|
|
|
|
return 'error adding item to shopping cart';
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
drupal_not_found();
|
|
|
|
@ -469,6 +469,7 @@ function fulcrm_shoppingcart_checkout() {
|
|
|
|
|
|
|
|
|
|
$transaction_data2 = fulcrm_apiv2_PATCH( $transaction_data[ 'data' ][ 'url' ],
|
|
|
|
|
$transaction_push, $query = array( 'expand' => implode( ',', array( 'd',
|
|
|
|
|
'lineitems',
|
|
|
|
|
) ) ) );
|
|
|
|
|
if ( $transaction_data2[ 'success' ] ) {
|
|
|
|
|
return theme( 'fulcrm_shoppingcart_transaction_checkout', array( 'transaction' => $transaction_data2[ 'data' ] ) );
|
|
|
|
|