Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem
Customer address in _commerce_bpost_service_details_build_map_form()
is getting populated from $service_values
varialble.
This works until the moment when:
- You have no Ajax implementation;
- You don't refresh the page;
Proposed solution
As the points "point_details" are submitted to the order data, in case the Customer data can't be retrieved from $service_values
we can fetch from the Order's "data" object.
Comments
Comment #2
hugronaphor CreditAttribution: hugronaphor at Acrosto for Dropsolid commentedComment #3
thierry.beeckmans CreditAttribution: thierry.beeckmans at Dropsolid commentedAfter an ajax refresh the previously submitted point data gets overwritten with the account information. If it is a postpoint or parcel locker the point information should be used instead of the customer data.
Comment #4
thierry.beeckmans CreditAttribution: thierry.beeckmans at Dropsolid commentedThe bpack list did not contain the latest submitted data from the bpack map. Had to fetch the data from the service details after submission to be able to rebuild the pickup list.
Comment #6
thierry.beeckmans CreditAttribution: thierry.beeckmans at Dropsolid commentedComment #7
thierry.beeckmans CreditAttribution: thierry.beeckmans at Dropsolid commented