Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field Order #97

Open
pprignesh opened this issue Nov 15, 2024 · 1 comment
Open

Field Order #97

pprignesh opened this issue Nov 15, 2024 · 1 comment

Comments

@pprignesh
Copy link

Hello;

We are using Mageplaza's One Step Checkout (OSC), and the postcode and address fields are currently displayed at the end of the billing/shipping form. Could you please guide us on how to adjust the field order so that these fields appear below the first name and last name fields?

Thanks

@JerrySmidt
Copy link
Contributor

Hello,

Our module should be able to change the order of address fields using the option "Change address fields position", so make sure that is enabled.

If that is not working then there may be a compatibility issue with the current version of Mageplaza's checkout. Or some other logic is changing the sort order.

Could you check the sort order for some address fields to see if you get the correct numbers?

On your checkout page, use the following in your browser console to get sort order:

// Single autocomplete field:
require('uiRegistry').get('checkout.steps.shipping-step.billingAddress.billing-address-fieldset.address_autofill_intl').sortOrder; // Should be 910

// Dutch postcode / house number component:
require('uiRegistry').get('checkout.steps.shipping-step.billingAddress.billing-address-fieldset.address_autofill_nl').sortOrder; // Should be 920

// Street fields group:
require('uiRegistry').get('checkout.steps.shipping-step.billingAddress.billing-address-fieldset.street').sortOrder; // Should be 940

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants