Getting started for developers
The short answer
EasyQuote is one Magento module, MageMe_EasyQuote, plus optional theme companions for Hyvä and Breeze. Extend it the Magento way: call the @api service contracts, add plugins and observers, and override templates in your theme. Don't edit the module's files, because an update replaces them.
How it works
The modules
| Module | Composer package | Version | Depends on | What it holds |
|---|---|---|---|---|
MageMe_EasyQuote | mageme/module-easyquote | 1.7.5 | mageme/module-core ^2.0, mpdf/mpdf ^8.0; module sequence MageMe_Core, Magento_GraphQl | Everything: admin, storefront for Luma, REST, GraphQL, emails, PDF, cron |
Hyva_MageMeEasyQuote | mageme/module-easyquote-hyva | 1.4.11 | mageme/module-easyquote >=1.7.5, hyva-themes/magento2-theme-module ^1.3.11; sequence Hyva_CompatModuleFallback | Alpine.js and Tailwind templates for Hyvä themes, Hyvä Checkout support |
MageMe_EasyQuoteBreeze | mageme/module-easyquote-breeze | 1.0.3 | mageme/module-easyquote >=1.7.4 | A breeze_default.xml layout file plus Breeze-compatible versions of EasyQuote's JavaScript: date picker, file dropzone, phone input, form prefill, dialog and validation |
The base module suggests the two companions in its composer.json but doesn't require them. It declares a conflict with the Hyvä companion below 1.4.10 and the Breeze companion below 1.0.3. Install steps are on Installation and compatibility.
Inside MageMe_EasyQuote, the code is grouped the usual Magento way:
| Path | What's there |
|---|---|
Api/, Api/Data/ | Service contracts and data interfaces, all @api except one internal compatibility helper in Api/Utility/ |
Model/Service/ | The five action services |
Model/Quote/ | Policy classes such as CreateOrderPolicy, CustomerVisibility and the HidePrice Pro checker |
Model/Repository/, Model/Management/ | Repositories, the customer REST methods and the request submit classes |
Controller/, Block/, view/ | Admin and storefront pages, layouts, templates, email templates |
Mail/ | One class per email |
Cron/ | The two cron jobs |
Observer/, Plugin/ | Hooks into Magento's cart, checkout, order and admin |
etc/ | webapi.xml, schema.graphqls, acl.xml, crontab.xml, email_templates.xml, di.xml per area |
The database tables start with mm_easyquote_. A quote is its own entity, mm_easyquote_quote, not a Magento cart. It becomes a cart only when the customer adds it to the cart or checks out.
Supported ways to extend
| You want to | Use |
|---|---|
| Run a quote action from your code | The services on Service contracts |
| Read or submit data over HTTP | REST API or GraphQL |
| React to an EasyQuote step or change a rule | The events and extension points on Events, plugins and extension points, or a plugin on a public method |
| Change the storefront markup | A template override in your theme, see Luma or Hyvä |
| Change email or PDF text | Email templates in the admin, see Email and PDF template variables |
Areas matter for plugins and observers. The editor slot observers run only in adminhtml. The request form CSS observer runs only in frontend. Cart, order and price hooks are global, so they also act on REST and GraphQL calls.
What this means for you
- Inject interfaces from
Api/, not the classes inModel/. The interfaces are what EasyQuote keeps stable. - Quote actions belong to the services. Saving a quote through the repository skips the status checks and the emails.
- Put template changes in your theme. An EasyQuote update replaces its own templates.
- With Hyvä, the companion's templates win over the base module's. Override the template path the Hyvä theme actually renders.
What's next
- Service contracts: the five action services and their exceptions.
- REST API: the 11 routes, tokens and response shapes.
- Events, plugins and extension points: the events and the policy classes you can hook into.