Hyvä, Hyvä Checkout and Breeze
What it does
Makes the quote request form, the cart buttons and the customer's quote pages work on a Hyvä or Breeze storefront. Luma and Blank need nothing extra. For Hyvä and Breeze you install a small companion package, and the Hyvä one also supports Hyvä Checkout. Once installed, the package shows in the panel at the top of Stores → Configuration → MageMe Extensions → EasyQuote.
Before you start
- EasyQuote is installed. See Installation and compatibility.
- Someone with command-line access to the store server, usually your developer, installs the package.
- For Hyvä: the Hyvä theme module 1.3.11 or later. Hyvä companion 1.4.11 needs EasyQuote 1.7.5 or later. Breeze companion 1.0.3 needs EasyQuote 1.7.4 or later. Update the companion together with EasyQuote.
Steps
Hyvä
- Ask your developer to install the Hyvä companion. The commands are in Install the Hyvä companion.
- Have the theme styles rebuilt, as described in the next section.
- Open the cart on the storefront and click Get Quote. The request form opens with its styles.
The Hyvä companion gives these parts their Hyvä look and behavior:
- The Get Quote buttons on the cart page and in the mini cart, and the request form that opens from them.
- The quote number and item comments on the cart page, and the page the customer sees after sending a request.
- My Quotes in the customer account, the quote page with its Accept (or Accept & Checkout), Decline, Add To Cart and Quick Checkout buttons, the quantity tiers and the page for the decline reason.
- The quote comments on the customer's order page.
The companion adds the Hyvä Theme Developer group under Quote Request Form in the EasyQuote settings. There a developer sets the CSS classes of the request form fields. See Settings: Developer and Hyvä Theme Developer.
Hyvä themes can run with a strict Content Security Policy (CSP), which blocks scripts the store hasn't approved. The companion registers its scripts with Hyvä's CSP support. Since companion 1.4.8, Accept and Decline on the quote page work on Hyvä themes with CSP turned on. Since companion 1.4.11, so do Confirm and Back on the page for the decline reason and the calendar icon next to a date field on the request form. The companion also allows the phone field's country lookup to reach ipinfo.io. See Personal data in requests and quotes.
Rebuild the Hyvä theme CSS
A Hyvä theme builds its styles (Tailwind CSS) from the files it knows about. After you install or update the Hyvä companion, your developer rebuilds the theme's styles, the way they do after installing any module for Hyvä. The companion registers itself with Hyvä's build tools, so the rebuild picks up its templates.
Rebuild again in these cases:
- After every update of the companion. The release notes of companion 1.4.7 and 1.4.9 ask for it.
- After you enter your own classes in Hyvä Theme Developer. Those classes live in the settings, where the build can't see them, so your developer adds them to the theme's sources first.
Without the rebuild, the button, the request form or the quote page show without their styles. The developer details are in Keep Tailwind in step.
Hyvä Checkout
Hyvä Checkout support comes with the Hyvä companion. There is nothing to turn on. It changes two things:
- The shipping method. If a quote in the cart has a fixed shipping method and Allow Shipping Modification on Checkout is No for it, the customer buys with the shipping on the quote. With the Hyvä Default checkout the shipping step is skipped. With Hyvä One Page the shipping block shows only the quote's method. Since companion 1.4.11, a cart that holds such a quote with the Custom method together with other products doesn't open either checkout: the customer goes back to the cart with "Your cart contains both quote and non-quote items. Please remove the non-quote items before proceeding with the order.", as on Luma. If modification is allowed, the shipping step shows and the customer can pick another method. See Shipping method and custom shipping.
- The addresses. When checkout opens, the billing and shipping addresses that came with the quote are already filled in. So is the choice whether billing uses the shipping address.
Breeze
- Ask your developer to install the Breeze companion. The commands are in Install the Breeze companion.
- Open the cart on the storefront and click Get Quote. The request form opens in its popup.
Breeze replaces Magento's standard storefront scripts with its own. The Breeze companion brings Breeze versions of the scripts EasyQuote's request form uses: the popup, field checks, filling in a signed-in customer's details, the phone number field, file attachments and the date picker. The pages keep EasyQuote's standard templates. Since companion 1.0.3, the request form's attachments and a WebForms file upload on the same page each keep their own uploader.
What you should see
- The EasyQuote panel in Stores → Configuration → MageMe Extensions → EasyQuote lists Hyvä: EasyQuote Storefront or Breeze: EasyQuote Storefront, whichever your developer installed, marked Installed.
- On the storefront, Get Quote opens the request form with its styles, and the request reaches Sales → EasyQuote → Requests.
- On Hyvä Checkout, a quote with fixed shipping that may not be changed goes through the Hyvä Default checkout without the shipping step, and Hyvä One Page shows only the quote's method.
Limits
- The Hyvä companion has no settings besides Hyvä Theme Developer. The Breeze companion has none.
- Hyvä companion 1.4.11 needs EasyQuote 1.7.5. See Compatibility.
- The Breeze companion ships no templates of its own. The request form and the quote pages on Breeze use EasyQuote's standard templates.
Troubleshooting
- On Hyvä, the request form or the quote page has no styles. Rebuild the theme's styles. See Rebuild the Hyvä theme CSS.
- The request form looks broken after an update. Check that the companion was updated together with EasyQuote. EasyQuote 1.7.5 doesn't install next to a Hyvä companion below 1.4.10 or a Breeze companion below 1.0.3. See Installation and compatibility.
- On Hyvä Checkout, the customer can still change the shipping. Check Allow Shipping Modification on Checkout on the quote and in Quote Shipping Options. See Settings: Quote Shipping Options.
What's next
- Installation and compatibility: install the companion package for your theme.
- Hyvä templates and Tailwind: for developers, override templates and keep Tailwind in step.
- Settings: Developer and Hyvä Theme Developer: set the CSS classes of the button and the form.
- Shipping method and custom shipping: set fixed shipping on a quote.