Skip to content

Installing the module

Doxtly Forms adds two widgets and a tag to Magento, so a form you built in Doxtly can sit on any page of your store. This page takes you from download to a published form, and covers updating and removing the module.

You need Details
Magento Open Source 2.4.8 or a later 2.4 release
PHP 8.3 or newer, with the sodium extension
Access to the store’s server Magento installs modules from the command line, so someone has to run bin/magento. Your developer or host can do it.
A Doxtly form set to Active See Forms. A form that is not active shows Form not found on the page.

API access, which the optional access key uses, is part of every plan. The module is translated into Polish, Spanish, German, Portuguese, French, Ukrainian, Thai, Chinese (simplified), Hindi, Arabic, Japanese, Turkish and Italian: admin users with one of these as their Interface Locale see its screens in it, and everyone else sees English.

Get the module from the module’s page of the Doxtly website. The file is always the latest version, and the page shows its checksum if your company verifies downloads.

The archive holds the module’s files directly, with no folder around them, so it unzips into app/code/Doxtly/Forms. Run these in the folder where Magento is installed:

  1. Download doxtly-forms-magento.zip and copy it to the server.

  2. Unzip it into its folder:

    Terminal window
    mkdir -p app/code/Doxtly/Forms
    unzip doxtly-forms-magento.zip -d app/code/Doxtly/Forms
  3. Enable the module and bring the store up to date:

    Terminal window
    bin/magento module:enable Doxtly_Forms
    bin/magento setup:upgrade
    bin/magento cache:flush
  4. If the store runs in production mode, finish with the two commands any new module needs:

    Terminal window
    bin/magento setup:di:compile
    bin/magento setup:static-content:deploy -f en_US pl_PL

    List every language your admin users and your store use. An admin language left out of this command has no styles or scripts in production mode.

bin/magento module:status Doxtly_Forms now answers Doxtly_Forms : Module is enabled, and Doxtly Forms appears under Content → Elements.

If you keep the store’s code in Composer, the same file works as a package. Put it in a folder of its own and require it:

Terminal window
mkdir -p artifacts
cp doxtly-forms-magento.zip artifacts/
composer config repositories.doxtly artifact "$PWD/artifacts"
composer require doxtly/module-forms:0.1.0
bin/magento setup:upgrade

Then go on as in step 4.

This is the shortest way to a live form. You can add the access key later.

  1. If your organization has its own subdomain, open Content → Elements → Doxtly Forms, enter your address as the Application URL and click Save changes. Everyone else can skip this: the module starts with https://app.doxtly.com.

  2. In Doxtly, open the form’s Share dialog and copy its Public link. The ID the plugin asks for is the last part of that link, after /f/: the form’s public token.

  3. In Magento, go to Content → Elements → Pages, open a page and expand Content. Click Edit with Page Builder, then open the page’s HTML Code element, or add one from Elements.

  4. Click Insert Widget….

    The Edit HTML Code panel of Page Builder with the Insert Widget, Insert Image and Insert Variable buttons above the code
  5. Under Widget Type, choose Doxtly Form. Paste the ID into Form and click Insert Widget.

  6. Save the element, leave Page Builder, and Save the page. Open it in the store. The form is there, ready to use.

The editor shows a placeholder or a line of code, not the form itself. Open the page in the store to see the real thing.

Magento does not offer updates for this module on its own, so look at the module’s page from time to time. It shows the current version, and the settings page shows yours in its top right corner.

  1. Download the new doxtly-forms-magento.zip.

  2. Unzip it over the old files, which -o allows without asking:

    Terminal window
    unzip -o doxtly-forms-magento.zip -d app/code/Doxtly/Forms
  3. Run the commands of the install again:

    Terminal window
    bin/magento setup:upgrade
    bin/magento cache:flush

    In production mode, follow with setup:di:compile and setup:static-content:deploy.

With Composer, replace the file in artifacts/, run composer require doxtly/module-forms: followed by the new version, and then bin/magento setup:upgrade.

Your settings, the access key and the forms on your pages all stay as they were.

What stays behind depends on how far you go.

What you do Your pages Settings and access key
Remove the saved access key in the settings Forms keep working. Editors enter IDs by hand again. The key is deleted from Magento. The addresses stay.
Disable the module with bin/magento module:disable Doxtly_Forms Forms placed with Insert Widget show nothing. A tag appears on the page as plain text, such as [doxtly_form id="…"]. A page with a widget instance stops working: delete the instance first. Kept, so enabling it again restores everything.
Remove the module, as below The same for widgets and tags. Links stay and keep working. Deleted, including the encrypted access key and the cached lists.

To remove a module that you unzipped into app/code:

Terminal window
bin/magento doxtly:forms:remove-data
bin/magento module:disable Doxtly_Forms
rm -rf app/code/Doxtly/Forms
bin/magento setup:upgrade
bin/magento cache:flush

To remove a module that you installed with Composer:

Terminal window
bin/magento module:uninstall --remove-data Doxtly_Forms

Magento’s module:uninstall works only for modules that came through Composer, which is why the first way has a command of its own. Both delete the settings, the access key, the cached lists and every widget instance of the module, which would otherwise break the pages they are on.

Removing the module leaves two things alone:

  • Your pages. Widgets and tags stay in their content. If you install the module again they work again, and only a widget instance has to be added once more. Any settings you had need entering once more too.
  • Your Doxtly account. Forms and submissions are untouched, and the access key is still valid. If you no longer need the key, disable or delete it in Doxtly.