Skip to content

Fix: missing OPC checkout templates #41

Open
ThbPS wants to merge 1 commit into
improvement/decouple-hummingbirdfrom
spe-125/fix/missing-templates
Open

Fix: missing OPC checkout templates #41
ThbPS wants to merge 1 commit into
improvement/decouple-hummingbirdfrom
spe-125/fix/missing-templates

Conversation

@ThbPS
Copy link
Copy Markdown
Collaborator

@ThbPS ThbPS commented May 5, 2026

Questions Answers
Description? Restores OPC-owned checkout templates and partials that were missing from the module, including connected account information and grouped form fields. Also generates OPC authentication/registration URLs from the module context and keeps carrier selection compatible with existing theme behavior by emitting updatedDeliveryForm.
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes SPE-125.
How to test? Enable ps_onepagecheckout with the Hummingbird theme, open the checkout page, verify that contact/account sections render correctly for guest and logged-in customers, select a carrier, and complete an order.

Related PRs:

…arrierExtraContent hook properly to avoid BC in themes
@github-project-automation github-project-automation Bot moved this to Ready for review in PR Dashboard May 5, 2026
@ThbPS ThbPS requested a review from kpodemski May 5, 2026 09:53
* (2 or 3 items — matches CSS modifiers --2 and --3)
*}

<div class="form-fields-row form-fields-row--{$fields|count}">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please consider prefixing the class. A rule of thumb is that modules should be more specific in class naming. Why? Because you cannot risk that adding a module would overwrite the style for some other class provided by a theme, etc.

Suggested change
<div class="form-fields-row form-fields-row--{$fields|count}">
<div class="psonepagecheckout-form-fields-row psonepagecheckout-form-fields-row--{$fields|count}">

please adjust the naming to your preference

* For the full copyright and license information, please view the
* LICENSE.md file that was distributed with this source code.
*/
.form-fields-row {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

See the comment below that tacles on naming of the class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready for review

Development

Successfully merging this pull request may close these issues.

3 participants