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.
The logic to hide the profile fields if they are to be copied misses a scenario of mine.
I have 2 customer profile types on one checkout page, and then another on a second checkout page.
The profile fields on the second checkout page are not hidden even if the Copy profile checkbox is checked by default.
Attaching a patch that fixes the logic to ensure this scenario is caught too.
Comment | File | Size | Author |
---|---|---|---|
#1 | commerce-customer-hide-copy-fields-2488982-1.patch | 798 bytes | sarvab |
Comments
Comment #1
sarvab CreditAttribution: sarvab commentedComment #2
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 4 year old patch to commerce_customer.checkout_pane.inc applied cleanly to the latest commerce 7.x-1.x-dev, but still needs review.