Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tomkalon
Copy link
Contributor

@tomkalon tomkalon commented Oct 3, 2025

Q A
Branch? 2.2
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? yes
Related tickets #17906
License MIT

This PR introduces a new mechanism for extending the checkout address FormComponent via tagged services implementing AddressFormValuesModifierInterface.

This approach uses dependency injection and a tagged_iterator with the tag sylius_shop.modifier.address_form_values. These modifiers allow plugins and applications to dynamically transform or enrich the address data.

@tomkalon tomkalon requested review from a team as code owners October 3, 2025 10:48
@probot-autolabeler probot-autolabeler bot added Maintenance CI configurations, READMEs, releases, etc. Shop ShopBundle related issues and PRs. labels Oct 3, 2025
@coderabbitai
Copy link

coderabbitai bot commented Oct 3, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@tomkalon tomkalon force-pushed the feature/checkout-address-form branch from bc126d0 to f35dda5 Compare October 3, 2025 11:05
… update UPGRADE guide for 2.2 transition.
@tomkalon tomkalon force-pushed the feature/checkout-address-form branch from f35dda5 to 8d66168 Compare October 3, 2025 11:16
@github-actions
Copy link

github-actions bot commented Oct 3, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands:

  • 🚀 /bns:deploy to redeploy the environment

Comment on lines 84 to 97
$newAddress['firstName'] = $address->getFirstName();
$newAddress['lastName'] = $address->getLastName();
$newAddress['phoneNumber'] = $address->getPhoneNumber();
$newAddress['company'] = $address->getCompany();
$newAddress['countryCode'] = $address->getCountryCode();
if ($address->getProvinceCode() !== null) {
$newAddress['provinceCode'] = $address->getProvinceCode();
}
if ($address->getProvinceName() !== null) {
$newAddress['provinceName'] = $address->getProvinceName();
}
$newAddress['street'] = $address->getStreet();
$newAddress['city'] = $address->getCity();
$newAddress['postcode'] = $address->getPostcode();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed if the DefaultAddressFormValuesModifier is declared as a service.

@tomkalon tomkalon force-pushed the feature/checkout-address-form branch 4 times, most recently from b38ac6c to e9b11d3 Compare October 7, 2025 08:52
@tomkalon tomkalon force-pushed the feature/checkout-address-form branch from e9b11d3 to 5e78b96 Compare October 7, 2025 08:57
@Rafikooo Rafikooo merged commit dbbe353 into Sylius:2.2 Oct 9, 2025
30 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance CI configurations, READMEs, releases, etc. Shop ShopBundle related issues and PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2.0] Easy to add custom fields to the checkout address form

3 participants