DQE Core Module Overview
Multistore Configuration
- The DQE module supports multistore configurations.
- It can be enabled/disabled at both website and store levels using the enable/disable field in
Stores > Configuration > DQE > DQE Core
. - Configuration for DQE services like Address, Email, Gender, B2B, or Phone can also be managed by scope.
Controller
- The DQE Core module includes controllers that handle requests to the DQE API and return formatted responses.
- Controllers are located in the
controller
folder and include:- Index Controller: Used for customer account login, create, and edit forms.
- Checkout Controller: Used for checkout shipping and billing forms.
Model
- The DQE Core module uses the
DqeDataModel
, which maps to thedqe_core_data
table in the database. - Controller responses are stored in this table, with each response containing:
- A
type
and amapping_entity_id
(e.g., the customer ID in thecustomer_entity
table).
- A
- Response Types:
TEMP
: Temporary data until the form is submitted.ADDRESS
: Address-related responses.ADDRESS_COMPL
: Address completion responses.PHONE
: Phone-related responses.EMAIL
: Email-related responses.
JavaScript Integration
- When a response is sent by the controller:
- JavaScript files retrieve the parameters and insert a hidden input field with a random ID into the Magento form.
- This random ID is temporarily stored in the database.
Observer
- Observers ensure that responses are definitively saved in the database when the form is submitted.
- They retrieve the proper
entity_id
andmapping_entity_id
, which are inserted into the DOM by JavaScript. - Important Note: Once submitted, the
TEMP
type transitions to its final type (e.g.,ADDRESS
orEMAIL
).
Cron Jobs
- If a form is not submitted, responses marked as
TEMP
are automatically removed later by a scheduled Cron job.
DQE Core Features
- The DQE Core module contains the primary operations organized into:
- Model folder.
- Controller folder.
- It also manages the license parameter, which is critical for all other DQE modules.
Related to