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
My version of the plugin is v4.0.0-beta.0 or above.
MyParcelNL version
v4.0.0-beta.3
PrestaShop version
8.1.7
PHP version
8.1
What went wrong?
When sending data to MyParcelNL, in myparcelnl/src/Pdk/Base/Adapter/PsAddressAdapter.php "person" is created twice, in createFromAddress() from an address, and in createFromCustomer() from a customer account. Both those methods are combined to a single result in fromOrder() method, and "person" information from account is being used.
In a situations when customers account have different personal information than adress this means that wrong data is being send, and later wrong labels are being printed.
Reproduction steps
Create an account.
Create an address with different name and last name.
EdieLemoine
changed the title
[BETA]: Module uses customer information from account rather than from address
Module uses customer information from account rather than from address
Oct 16, 2024
Version check
MyParcelNL version
v4.0.0-beta.3
PrestaShop version
8.1.7
PHP version
8.1
What went wrong?
When sending data to MyParcelNL, in myparcelnl/src/Pdk/Base/Adapter/PsAddressAdapter.php "person" is created twice, in createFromAddress() from an address, and in createFromCustomer() from a customer account. Both those methods are combined to a single result in fromOrder() method, and "person" information from account is being used.
In a situations when customers account have different personal information than adress this means that wrong data is being send, and later wrong labels are being printed.
Reproduction steps
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: