Skip to content
Blog tag

#Magewire

Magento 2 & Hyvä articles tagged “Magewire”: hands-on tutorials, fixes, and guides from Kishan Savaliya, an Adobe-certified Magento developer.

5 articles RSS feed

Related tags: #Checkout #Hyvä #Alpine.js #Knockout #Adobe Commerce #B2B

Checkout & Conversion topic art

Posts tagged Magewire

Page 1 of 1, newest first
  • Checkout & Conversion

    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+.

  • Hyvä Theme

    Hyvä Checkout Customization: 5 Real Patterns from Production Stores

    Five Hyvä Checkout customizations that actually shipped on production Magento 2.4.4-2.4.9 stores: what the merchant asked for, what was tricky, and the code shape. Google Places address autocomplete bound to the Magewire shipping component via an Alpine.js bridge. CPF for Brazil / VAT for the EU as reactive Magewire fields with wire:model.live. Runtime carrier filtering through a collectShippingRates plugin. A post-purchase upsell Magewire component on the success page with one-click PayPal Express. Locale-aware date pickers via the Hyvä i18n partial. For each: the trigger, the file shape, the gotcha.

  • Checkout & Conversion

    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.

  • Hyvä Theme

    Hyvä Checkout Custom Field: A Working Delivery-Date Example

    Most Hyvä checkout customization tutorials stop at "render a field" and skip the backend plumbing that actually persists the value to the order. Here is a complete, copy-pasteable delivery_date field for Hyvä Checkout 1.2+ on Magento 2.4.4-2.4.9: the Magewire vs Alpine.js decision tree, the extension_attributes.xml declaration, the Magewire component class, the date input partial with HTML5 min/max constraints, the QuoteRepository save plugin, and the admin sales_order_view.xml display. Plus the gotcha that breaks guest checkouts: the date does not survive submitQuote without a second plugin.

  • Hyvä Theme

    Luma Module Not Working in Hyvä: Diagnose the Symptom, Then Choose a Fix

    A module that worked on Luma is installed and something on the Hyvä storefront is broken: a missing block, script errors, an inert widget or a missing checkout field. This guide matches the symptom to the failing layer on a staging copy, then compares the realistic fixes: an existing compatibility module, your own compatibility module with Alpine.js and Tailwind, a route-level Luma fallback, or replacing the module.

Stuck on this? Share the issue or question Ask about your store