You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem is on some countries (Switzerland is where I got the bug but there may be more), that field is required. So if the line 2 is empty, we're getting this back from sendcloud:
And actually, there is a field for addressLine2 which currently is sending as blank:
A solution could be to extract the house number from the address Craft-side, and use that instead, + send address line 2 where it should be. Only thing is I feel like the extraction logic could potentially be quite tricky...
Steps to reproduce
Additional info
Craft version: 4.4.14
PHP version: 2.2.1
Database driver & version:
Plugins & versions: Commerce 4.2.11
The text was updated successfully, but these errors were encountered:
Hi @bleepsandblops,
Thanks for reporting, we're going to look how we can best change this, to minimize braking changes.
Probably in combination with Webador/sendcloud#23
Description
This line is sending the addressLine2 field instead of the Sendcloud 'house_number'
https://github.com/white-nl/commerce-sendcloud/blob/71754d24f57162d732c0c1ab30af05bebc4f3247/src/client/JouwWebSendcloudAdapter.php#L245C32-L245C32
Problem is on some countries (Switzerland is where I got the bug but there may be more), that field is required. So if the line 2 is empty, we're getting this back from sendcloud:

And actually, there is a field for addressLine2 which currently is sending as blank:
commerce-sendcloud/src/client/JouwWebSendcloudAdapter.php
Line 251 in 71754d2
A solution could be to extract the house number from the address Craft-side, and use that instead, + send address line 2 where it should be. Only thing is I feel like the extraction logic could potentially be quite tricky...
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: