Simply run cd /projects/{project name}
Simply run composer require "pvtl/mct-lead-form": "^1.1"
.
Simply run cp .env.example .env
# MCT Lead Form
MCT_API_HOST='{API HOST URL}'
MCT_API_TOKEN='{API TOKEN}'
MCT_API_BUSINESS_ID={API BUSINESS ID}
MCT_LEAD_FORM_REDIRECT='{WP SLUG THANK YOU PAGE}' ///valuation-thank-you/
5.1 Run cd /projects/{project name}/web/app
5.2 Run mkdir mct-lead-form-logs
to create new folder for mct logs
You can copy templates folder and paste it into themes/{theme name}/mct/
. If mct
folder is missing you need to create one.
You can copy multisteps form implementation from https://github.com/pvtl/buyyourcar.git
.
Important Notes: If ever you are implementing multistep form you need to include the script to the main script. Or if you are having issue with mainmultistep.js file not updating, kindly copy gulp.js line 120 - 139 adjust the code accordingly.
Update the version number of this plugin from mct-lead-form.php
.
Create a new tag here https://github.com/pvtl/mct-lead-form/releases/new
.
The composer.json
should use the new version number of this plugin.
Run composer update pvtl/mct-lead-form
then push your composer lock file.