'message'=>t('It looks like you started the payment process, which locked your cart. Did your payment succeed? If so, please contact customer support. Otherwise, reset your cart to continue.'),
],
'#weight'=>2,
];
}
}
/**
@@ -393,6 +427,24 @@ function erf_commerce_cart_redirect($form, FormStateInterface $form_state) {
$form_state->setRedirect($cart_route);
}
/**
* Submit function to handle the reset of a locked commerce cart for a