rkw / rkw-outcome
Extension for processing outcome surveys
Installs: 87
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: >=7.4
- ext-json: *
- madj2k/t3-accelerator: ~10.4.0 || ~11.5.0 || ~12.4.0
- madj2k/t3-core-extended: ~10.4.0 || ~11.5.0 || ~12.4.0
- madj2k/t3-fe-register: ~10.4.0 || ~11.5.0 || ~12.4.0
- madj2k/t3-postmaster: ~10.4.0 || ~11.5.0 || ~12.4.0
- rkw/rkw-events: ~10.4.0 || ~11.5.0 || ~12.4.0
- rkw/rkw-shop: ~10.4.0 || ~11.5.0 || ~12.4.0
- rkw/rkw-survey: ~10.4.0 || ~11.5.0 || ~12.4.0
- typo3/cms-core: ~10.4.0
Requires (Dev)
- nesbot/carbon: ~2.66.0
- dev-master
- v10.4.2-stable
- v10.4.1-stable
- v10.4.0-stable
- v9.5.1002-stable
- v9.5.1001-stable
- v9.5.1000-stable
- v9.5.10-stable
- v9.5.9-stable
- v9.5.8-stable
- v9.5.7-stable
- v9.5.6-stable
- v9.5.5-stable
- v9.5.4-stable
- v9.5.3-stable
- v9.5.2-stable
- v9.5.1-stable
- v9.5.0-stable
- v8.7.3-beta
- v8.7.2-beta
- v8.7.1-beta
- v8.7.0-beta
- dev-development
- dev-master9.5
- dev-feature/backendModule
- dev-master8.7
- dev-feature/addOrderInfoToSurveyRequestMail
- dev-feature/review2
- dev-feature/review
This package is auto-updated.
Last update: 2024-11-07 12:44:33 UTC
README
Features
Extension for processing outcome surveys.
Structure and process
If a event reservation or an order is confirmed, the fired signal will eventually initiate the process of creating a survey request associated with the corrsponding reservation or order.
The survey request will be created only, if a the event reservation or order fits to an existing survey configuration, which is set in the backend. The following parameters must match:
- targetGroup
- product or event
If these parameters do match the survey request is created immediately. A scheduled task will take care of processing these pending survey requests. Therefore a corresponding task SurveyRequestCommandController->processSurveyRequestsCommand()
has to be set in the scheduler. It takes the following parameters:
checkPeriod
(range of time containing the potentially processable event reservations or orders - in seconds)maxSurveysPerPeriodAndFrontendUser
(max number of request notifications to be sent to a user within thecheckPeriod
)surveyWaitingTime
(select only survey requests, which have been shipped at least this amount of time ago)
If there are pending survey requests they will be processed. In case there are multiple requests pending, meaning there are at least two products or events associated with survey configuration, the process will randomly select one out of these and store it to the containing survey request. Each of the matching survey requests will get a timestamp to mark them as notified.
In the same time a notification to the corresponding frontenduser will be sent to provide them a link to the selected survey. This link will sent them to a page containing a regular survey plugin, but using the uid of the selected survey in combination with an enhanced real url configuration, the frontenduser will get the corresponding survey and can go along.
Setup
You should create a backend folder to store the outcome records. The uid of this folder should be set as constant storagePid
.
The extension relies on the extensions rkw_events and rkw_shop. Both extensions provide an additional constant targetGroupsPid
. This constant should be used to restrict the selection of targetgroups in the order or reservation form to the selected uid of the parent sys_category
.
Furthermore you should set the constant surveyShowPid
to the page uid containing your survey plugin. This will be used in rendering the link to the corresponding survey within the notification mail.
Necessary enhancement of the real url configuration:
//=============================================== // Survey 'tx-rkw-survey' => array ( array( 'GETvar' => 'tx_rkwsurvey_survey[controller]', 'valueMap' => array( 'survey' => 'Survey', ), ), array( 'GETvar' => 'tx_rkwsurvey_survey[action]' , ), // look-up table - param has to be set in cHash-ignore in Install-Tool! array( 'GETvar' => 'tx_rkwsurvey_survey[survey]' , 'lookUpTable' => [ 'table' => 'tx_rkwsurvey_domain_model_survey', 'id_field' => 'uid', 'alias_field' => 'CONCAT(name, "-", uid)', 'addWhereClause' => ' AND NOT deleted AND NOT hidden', 'useUniqueCache' => 1, 'useUniqueCache_conf' => [ 'strtolower' => 1, 'spaceCharacter' => '-', ], ], ), array( 'GETvar' => 'tx_rkwsurvey_survey[surveyResult]', ), ),
Testing
Some of the tests rely on setting the environment time to correspond to different time-based scenarios. So please make sure to install the following package in your root folder by running:
composer require nesbot/carbon --dev
Status of editing: 2023-04-20