Skip to main content

Add content to your emails based on the questions the customer answered, and the answer they gave.

Project description

This is a plugin for pretix.

Add content to your emails based on the questions the customer answered, and the answer they gave.

You can create multiple new placeholders, and can add several rules for each of them, with fallback texts for other answers or unanswered questions.

Development setup

  1. Make sure that you have a working pretix development setup.

  2. Clone this repository.

  3. Activate the virtual environment you use for pretix development.

  4. Execute python setup.py develop within this directory to register this application with pretix’s plugin registry.

  5. Execute make within this directory to compile translations.

  6. Restart your local pretix server. You can now use the plugin from this repository for your events by enabling it in the ‘plugins’ tab in the settings.

This plugin has CI set up to enforce a few code style rules. To check locally, you need these packages installed:

pip install flake8 isort black docformatter

To check your plugin for rule violations, run:

docformatter –check -r . black –check . isort -c . flake8 .

You can auto-fix some of these issues by running:

docformatter -r . isort . black .

To automatically check for these issues before you commit, you can run .install-hooks.

License

Copyright 2021 Tobias Kunze

Released under the terms of the Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pretix_question_placeholders-0.7.0.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pretix_question_placeholders-0.7.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file pretix_question_placeholders-0.7.0.tar.gz.

File metadata

File hashes

Hashes for pretix_question_placeholders-0.7.0.tar.gz
Algorithm Hash digest
SHA256 52a176750c39364c92320b6296eaf0e4f68655edfdfcc09a87b0e0eee73a3688
MD5 8fc2388a48b488913bf045894d776809
BLAKE2b-256 ca6e6d74a1155f56414d09ddd04bd5469973083c90173ea2c5918a3fc17563f6

See more details on using hashes here.

File details

Details for the file pretix_question_placeholders-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pretix_question_placeholders-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5a321f8317478c89d533e16fafd726cbabf929d584e2ba81a942c559550b329
MD5 e1cdae39114a236fa7e03f2a853bd5ae
BLAKE2b-256 5c833e286207f25ff0fe3e2525e2ab80722d6166432415f9ed267551e6687a3c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page