trinos-nl / magento2-postcode-nl

Hyvä Checkout integration for Postcode.nl to validate Dutch addresses at Checkout
MIT License
1 stars 5 forks source link

Extend feature to address book #21

Open JHFruitcake opened 3 months ago

JHFruitcake commented 3 months ago

Hi, is it possible to extend the postcode validation to the address book on the user account page?

The module works well when the address needs to be entered manually at checkout; however, it is still possible to enter any random value in the address book and then use that pre-filled in field in the checkout.

thijsdewitt commented 3 months ago

I think this would be a good addition. I don't believe there is an easy way to extend the address form, without overriding the whole template. So I have to look into that.

In addition to the address book on the user account page, we should also add it to the customer registration form, when 'show_address_fields' is set to true.