Skip to content

DGS-425 Fix chosen select width on carrier switch in checkout#166

Merged
rokaszygmantas merged 4 commits into
DPDBaltics:release-3.3.1from
TLabutis:DGS-425/fix-chosen-width-on-carrier-switch
May 25, 2026
Merged

DGS-425 Fix chosen select width on carrier switch in checkout#166
rokaszygmantas merged 4 commits into
DPDBaltics:release-3.3.1from
TLabutis:DGS-425/fix-chosen-width-on-carrier-switch

Conversation

@TLabutis

Copy link
Copy Markdown
Contributor

Summary

  • Phone area code, city and street selects rendered with 0px width when switching carriers via AJAX in checkout (PS9 default checkout and steasycheckout). Fields displayed correctly only after a full page refresh.
  • Root cause: Chosen widgets were initialized while the parent .carrier-extra-content was still hidden, so they calculated the wrong width. PrestaShop 9 hides all carrier extra content blocks and slides down only the selected one.
  • Fix: Re-initialize Chosen widgets (destroy + re-init) once the carrier extra content is actually visible. Uses the slideDown completion callback for default checkout and a short polling loop for OPC modules and theme animations.

Test plan

  • PS 9.0.0 / 9.0.3 default checkout: switch between DPD carriers and verify phone area code, city and street selects render with full width
  • PS 9 with steasycheckout: switch between DPD carriers and verify the same
  • PS 8.x regression: confirm carrier switching still works and selects render correctly
  • Verify city change still updates streets and PUDO points (no regression in pudo-search.js flow)

@rokaszygmantas rokaszygmantas merged commit 0a2cc19 into DPDBaltics:release-3.3.1 May 25, 2026
1 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants