Chat on WhatsApp
TAG

#Knockout

2 articles
Checkout & Conversion Checkout Conditional Checkout Fields in Magento 2 — Show Field A Only When B Is True

Conditional Checkout Fields in Magento 2 — Show Field A Only When B Is True

Conditional checkout fields are the rule set that says "only show field A when condition B is true" — and they look identical on Luma and Hyvä until you try to ship one. This is the production recipe for three real rules on both stacks: a Knockout subscribe on Luma, a Magewire $reactive plus Alpine x-show on Hyvä, plus the quote_extension_attributes wiring that keeps the value alive across page reload and 3DS redirect. The three rules ship together in roughly 38 hours on Magento 2.4.4 — 2.4.9 with Hyvä Checkout 1.1+.

Kishan Savaliya 12 min read
Checkout & Conversion Checkout Magento Checkout Step Customization — Splitting Payment Into Multi-Step

Magento Checkout Step Customization — Splitting Payment Into Multi-Step

Surfacing BNPL options (Klarna, Affirm, Sezzle) in Magento checkout is not just a payment-method toggle — those gateways need the shipping country and cart total to decide eligibility, which means payment must become its own step that boots only after shipping is set. Here is the full Luma path (Knockout subscribe on setShippingInformation) and the Hyvä path (Magewire listener on shipping.updated), with server-side guards via Magento\Quote\Model\QuoteValidator and the gateway-eligibility cache layer that keeps the step responsive.

Kishan Savaliya 12 min read