|
|
@ -7,6 +7,8 @@ function fulcrm_shoppingcart_admin_form_submit( $form, &$form_state ) {
|
|
|
|
variable_set( 'fulcrm_shoppingcart_success_url', $form_state[ 'values' ][ 'success_url' ] );
|
|
|
|
variable_set( 'fulcrm_shoppingcart_success_url', $form_state[ 'values' ][ 'success_url' ] );
|
|
|
|
variable_set( 'fulcrm_shoppingcart_failure_url', $form_state[ 'values' ][ 'failure_url' ] );
|
|
|
|
variable_set( 'fulcrm_shoppingcart_failure_url', $form_state[ 'values' ][ 'failure_url' ] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variable_set( 'fulcrm_shoppingcart_experience', $form_state[ 'values' ][ 'experience' ] );
|
|
|
|
|
|
|
|
|
|
|
|
drupal_set_message( t('Settings saved.'), 'status' );
|
|
|
|
drupal_set_message( t('Settings saved.'), 'status' );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -27,6 +29,16 @@ function fulcrm_shoppingcart_admin_form( $form, &$form_state ) {
|
|
|
|
'#default_value' => variable_get( 'fulcrm_shoppingcart_proceed_url', url( '<front>', array( 'absolute' => true ) ) ),
|
|
|
|
'#default_value' => variable_get( 'fulcrm_shoppingcart_proceed_url', url( '<front>', array( 'absolute' => true ) ) ),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$form[ 'experience' ] = array( '#type' => 'select',
|
|
|
|
|
|
|
|
'#title' => t('Shopping Experience'),
|
|
|
|
|
|
|
|
'#options' => array( 'nouser' => t('Only Guests can "Checkout"'),
|
|
|
|
|
|
|
|
'guest' => t('Allow Guests to "Checkout"'),
|
|
|
|
|
|
|
|
'user' => t('Must Login to "Checkout"'),
|
|
|
|
|
|
|
|
'force' => t('Must Login to "Add to Cart"'),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
'#default_value' => variable_get( 'fulcrm_shoppingcart_experience', 'force' ),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
$form[ 'fulcrm_url' ] = array( '#type' => 'fieldset',
|
|
|
|
$form[ 'fulcrm_url' ] = array( '#type' => 'fieldset',
|
|
|
|
'#title' => 'Return URLs',
|
|
|
|
'#title' => 'Return URLs',
|
|
|
|
);
|
|
|
|
);
|
|
|
|