Skip to main content

MageMe EasyQuote Magento 2 Module | Hyvä Compatibility

This guide provides detailed instructions on installing the Hyva_MageMeEasyQuote compatibility module, which integrates EasyQuote functionalities seamlessly with Hyva Themes.

Prerequisites​

  • Magento 2: Ensure Magento 2 is installed on your server.
  • Server Access: You must have administrative access to your server's command line.
  • Composer: Confirm that Composer is installed for managing Magento 2 components.
  • Hyvä Themes: Hyvä Themes must be installed in your Magento 2 environment.

Install the Hyva_MageMeEasyQuote Compatibility Module​

Install the compatibility module to integrate EasyQuote with Hyva Themes. The Hyva Compatibility Module Fallback it depends on comes from your Hyvä Composer repository and is installed automatically.

  1. Install the module using Composer:
    composer require mageme/module-easyquote-hyva
  2. Enable the module:
    php bin/magento module:enable Hyva_MageMeEasyQuote
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento cache:clean

Hyvä Theme Developer Configuration​

After installation, configure the module settings located in the EasyQuote Configuration under the Quote Request Form section of your Magento admin panel. These settings allow you to tailor the visual aspects of EasyQuote within your Hyva theme:

  • Field Block CSS Class: Define custom CSS classes for the blocks surrounding each field.
  • Field Label CSS Class: Set CSS classes for the labels of each field to ensure they match your theme’s design.
  • Field Comment CSS Class: Customize the appearance of field comments with specific CSS classes.
  • Text Input CSS Class: Apply custom styles to text input fields to maintain consistency with your theme.
  • Message Textarea CSS Class: Style the message textarea to align with the overall form aesthetics.
  • Dropdown CSS Class: Ensure dropdown menus fit seamlessly within the form’s styling.
  • Radio Button CSS Class: Customize the radio buttons for better visual integration.
  • Radio Label CSS Class: Define styles for the labels associated with radio buttons.
  • Checkbox CSS Class: Customize checkbox elements to match your theme’s design.
  • Checkbox Label CSS Class: Style the labels of checkboxes consistently with other form elements.
  • Validation Message CSS Class: Style validation messages to make them clear and coherent with the theme.

Quote Request and Quote Pages on Hyvä​

  • Button style: while Custom Button CSS Classes keeps its default value, the Request a Quote buttons on the cart page and in the mini cart use your Hyvä theme's secondary button style, so Checkout stays the main action, and are as wide as the checkout button next to them. Enter your own classes in that setting to style the buttons differently.
  • From the mini cart: the mini cart closes first and the quote request form opens on top of the page, ready to fill in.
  • Keyboard and screen readers: the form opens with the cursor in its first field, the Tab key stays inside the form, and Esc or the close button in the form header closes it and returns the cursor to where it was. Attachments can be added with Enter or Space as well as by click or drag and drop.
  • Quote page on phones: each quote line and its quantity tiers are shown as compact cards, so every price stays on screen without scrolling sideways.
  • Choosing a quantity tier: click anywhere on a tier row on the quote page to select that tier.

Content Security Policy (CSP) Compliance​

Starting with version 1.4, the Hyvä compatibility module for EasyQuote is fully compliant with Content Security Policy (CSP) standards. This is important for stores running Hyvä Theme 1.4 and later, which enforces strict CSP rules to prevent cross-site scripting (XSS) attacks.

What This Means​

  • All inline scripts have been removed and replaced with CSP-compliant alternatives.
  • Event handling has been restructured to comply with strict CSP directives.
  • The module passes CSP validation without requiring any unsafe-inline or unsafe-eval exceptions.

Why CSP Matters​

CSP compliance helps protect your store against security vulnerabilities such as XSS attacks, which can compromise customer payment data and personal information. It also supports compliance requirements including PCI DSS 4.0, GDPR Article 32, and SOC 2 Type II.

tip

If you are upgrading from an earlier version of the Hyvä compatibility module, update to version 1.4 or later to ensure CSP compliance. No additional configuration is required — CSP support is built in.

Verify Installation​

  1. Check module status:

    php bin/magento module:status

    Ensure Hyva_CompatModuleFallback and Hyva_MageMeEasyQuote are listed as enabled.

  2. Test the integration on your website to confirm that EasyQuote features adapt well to your Hyva theme.