Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By ETENTION on
Hi
I ran into problem where custom Line Item's Address field is being validated when product/line item is removed from the cart.
This is unnecessary since Line Item is being removed so there's no need for validation of the removed line item nor for the line items that stay on cart.
The form id is views_form_commerce_cart_form_default
and the validation is called from views_form_views_form_validate
.
How could I remove validation from this field only on "remove event"?
Comments
Solved
Solution found: https://www.drupal.org/node/1895682