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.
I am wondering if it would be at all possible to create both billing and shipping address fields at user register. If the shipping is the same as billing it would auto populate.
Thanks
Comments
Comment #1
sean3z CreditAttribution: sean3z commentedYes, you would need to create and load a modified version of the addresses.js though (to support all fields). Below is an example; obviously, you'll need to substitute ID/array index information. As far as auto-population, you'd need to create a javascript listener for a 'Same As' checkbox or something to carry over data or disable the fields etc.
example_module.module
example_module_addresses.js
Comment #2
ColinMctavish CreditAttribution: ColinMctavish commentedHey sean3z
Thanks for responding. However, I am one of those annoying non coders using Drupal. Finding my way in the dark. I would be unsure on how to implement this into the address module or user module. I was looking for more of a turnkey solution. But thank you