mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-10 23:07:47 +00:00
When using a "pick up" shipping method, with a user who doesn't have a shipping address it was impossible to proceed to the payment step because shipping address was invalid. To fix this, we ensure that "ship_address_same_as_billing" parameter is set to true when using a "pick up" shipping method. use distributor address when shipping method doesn't require a ship address ; in doing this we follow the same logic as the legacy checkout