function _commerce_webform_validate_order in Commerce Webform 8
Same name and namespace in other branches
- 7.2 commerce_webform.checkout_pane.inc \_commerce_webform_validate_order()
- 7 commerce_webform.checkout_pane.inc \_commerce_webform_validate_order()
This is a check to make sure the given order still has webform specified mandatory products in it.
1 call to _commerce_webform_validate_order()
- commerce_webform_pane_checkout_form in ./
commerce_webform.checkout_pane.inc - Checkout pane callback Validate the order to check all mandatory items are still in the order at checkout.
File
- ./
commerce_webform.checkout_pane.inc, line 23 - Checkout pane for commerce_webform module This validates an order to ensure webform mandatory productfields are still in the order.
Code
function _commerce_webform_validate_order($order) {
// Check order is a commerce_webform order.
if (commerce_webform_is_commerce_webform_order($order)) {
// Loop through productfields check for mandatory status.
}
}