Skip to content

Add flat-rate and free-shipping options to table-rate shipping method drivers (#2617) - #2658

Open
wakqasahmed wants to merge 2 commits into
lunarphp:1.xfrom
wakqasahmed:fix/shipping-method-drivers
Open

Add flat-rate and free-shipping options to table-rate shipping method drivers (#2617)#2658
wakqasahmed wants to merge 2 commits into
lunarphp:1.xfrom
wakqasahmed:fix/shipping-method-drivers

Conversation

@wakqasahmed

Copy link
Copy Markdown
Contributor

The table-rate-shipping method picker in Filament only listed two of the four registered shipping drivers (ShipBy and Collection), so FlatRate and FreeShipping weren't selectable even though both drivers exist and work fine once assigned some other way. Closes #2617.

The Filament resource now builds its options from Shipping::getSupportedDrivers() instead of a hardcoded list, so any driver registered via Shipping::extend() shows up automatically going forward. Added translations for flat-rate/free-shipping across all 14 shipped locales (a few had been missed in an earlier pass), and a test that asserts every locale's shippingmethod.php exposes the same driver-option keys, so a future locale gap fails CI instead of silently falling back to English.

Couldn't run the suite locally (no PHP in this environment), so I read through ShippingManager and the built-in drivers carefully to confirm none of them have side effects on instantiation before switching the form options to build from the manager dynamically.

… options for shipping methods (lunarphp#2617)

- add flat-rate/free-shipping translations to remaining locales (ar, bg, fa, hr, mn)
- source shipping method driver select options from Shipping::getSupportedDrivers() instead of a hardcoded list, so extended drivers become selectable automatically
- add a locale-parity test asserting every shippingmethod.php locale file exposes the same driver option keys
@github-project-automation github-project-automation Bot moved this to Todo in Roadmap Aug 27, 2026
@glennjacobs
glennjacobs marked this pull request as draft August 27, 2026 13:47
@glennjacobs
glennjacobs marked this pull request as ready for review August 27, 2026 13:47
@glennjacobs
glennjacobs marked this pull request as draft August 27, 2026 13:53
@glennjacobs
glennjacobs marked this pull request as ready for review August 27, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Bug: "flat-rate" and "free-shipping" drivers cannot be selected in the Shipping Method admin form, and their labels are untranslated in every locale

2 participants