"Billing same as shipping" does not respect the "Supported billing countries" setting

Created on 24 February 2020, about 5 years ago
Updated 18 December 2023, over 1 year ago

This is a followup to #2852207: Billing same as shipping .

The current code will copy over the shipping fields even if the shipping country_code is not allowed (not in $store->getBillingCountries()).

We need to define what the expected behavior is in this case. I can think of two possible options:
1) Hide the "Billing same as shipping" checkbox as long as the shipping country_code is not allowed.
2) Show the "Billing same as shipping" checkbox, but show a validation error on submit, asking the user to select a different address/country_code.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇷🇸Serbia bojanz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024