0

As described, in the docs Checkout Form Builder. This is how you modify the checkout flow. Is it possible to have different checkout flows based on role or user?

For example;

  • If a teller is logged in. There is no need to collect show account information, or billing.
  • If a customer is logged in. It will display those panes.

2 Answers 2

1

i think something along the lines of this should work. If you have a whole load of these I'd put them in custom module. Otherwise template.php

/***
* Implements hook_form_FORM_ID_alter
*/

function myform_form_theformid_form_alter(&$form, &$form_state, $form_id){
  global $user;
  if (in_array('teller', $user->roles)) {
  unset($form['account_information']);
  }
 }
0

Probably by implementing hook_form_alter(), you could check for the currently logged-in user's role and make form changes depending on what role.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.