# Text Templates for Requests

To display different text for various states of a request on the exchange page, you can use templates.

## General Templates

To create templates, go to the "**Exchange Directions**" section -> "**Currency Exchange Direction Templates**."

In this section, select the desired item and proceed to edit it. Please note that the set of fields available for editing varies for different items in the dropdown list.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/image%20(152)_eng.png" alt=""><figcaption></figcaption></figure>

Let's take a look at the template settings for the status "**New Request**":

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/image%20(40)_eng.png" alt=""><figcaption></figcaption></figure>

**Website Title** - This is the header for the status that will be displayed on the page (for multilingual exchanges, you need to set up different language versions of the text by clicking on the flag above the field and filling in the opened field).

**Brief Status Description** - This describes the current state of the request (for multilingual exchanges, you need to set up different language versions of the text by clicking on the flag above the field and filling in the opened field).

**Page Refresh:**\
• **No** - The user will need to manually refresh the request page.\
• **Auto-refresh** - The page will automatically refresh at a specified interval (the user can disable auto-refresh by clicking the "**Turn Off Refresh**" button).\
![](https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20\(164\)_eng.png)\
• **On Button Click** - A button will be displayed on the request page to enable "**Auto-refresh**" mode.\
![](https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20\(58\)_eng.png)

**Automatically refresh the page every (sec.)** - This is the interval at which the page will refresh.

**How to display the description from the form below:**\
• **Show only the relevant description from the exchange direction** - The text from the exchange direction will always be displayed on the request page for the corresponding status (if no text is provided, an empty field will be shown).\
• **If no description is provided in the exchange direction, show it from the form below** - If text is provided in the "**User Information**" section of the exchange direction (in any language version), it will be displayed; otherwise, the text from the template below will be shown.\
• **Always show the description from the form below** - The text from the template below will always be displayed on the request page for the corresponding status.

**Text** - This is the text that will be displayed on the request page for the corresponding status. Use shortcodes to include variables in the text.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(95)_eng.png" alt=""><figcaption></figcaption></figure>

## Individual Templates

For different directions, you can also use custom text. To do this, in the exchange direction settings, on the "**User Information**" tab, fill in the corresponding templates with text (for multilingual exchanges, you need to set up different language versions of the text by clicking on the flag above the field and filling in the opened field).

{% hint style="info" %}
If both general and individual templates are filled out for a single status, to ensure that the text from the exchange direction is displayed, set the option as shown in the screenshot in the "**Exchange Directions**" -> "**Currency Exchange Direction Templates**" section:\
![](https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20\(155\)_eng.png)
{% endhint %}

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(27)_eng.png" alt=""><figcaption></figcaption></figure>

## **Bulk User Information Editor**

Starting from version 2.6, a module has been added to the script that allows you to edit text for each type of template for multiple directions on a single page.

The module settings can be found in the "**Exchange Directions**" -> "**Bulk User Information Editor**" section.

In the dropdown list, select the currency and/or payment system to display only the relevant templates from the exchange directions.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-c06d4f6e3998c1f3eada573b26874b31fdbe62f1%2Fimage%20(1673)_eng.png?alt=media" alt="" width="466"><figcaption></figcaption></figure>

You can apply from 1 to 4 filters or choose not to use any filters (but in this case, there is a high likelihood of the page freezing if a large number of directions are displayed on it (more than 50)).

<div><figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-88c53d67904683eb61fa6cee93d240d100979ab2%2Fimage%20(1674)_eng.png?alt=media" alt="" width="473"><figcaption></figcaption></figure> <figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-200280c43d3163b44a6c47966276b1e496826637%2Fimage%20(1676)_eng.png?alt=media" alt="" width="420"><figcaption></figcaption></figure></div>

After filtering by currencies and payment systems, select the template you want to edit for the remaining exchange directions on the page and click the "**Filter**" button.

{% hint style="info" %}
You can also filter exchange directions by their status **after filtering** using the "**Filter**" button.

<img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-c512b464ea0b663d941dcf8ceeeee3c2914a7b52%2Fimage%20(1680)_eng.png?alt=media" alt="" data-size="original">
{% endhint %}

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-617808c66f969299f72bd3cfc7807421f6796264%2Fimage%20(1677)_eng.png?alt=media" alt="" width="521"><figcaption></figcaption></figure>

After clicking the "**Filter**" button, the templates will be displayed in edit mode on the page — you can edit them as you wish (including using shortcodes):

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-cf15ffd9997202f1030d4e3a490d59dcd1087c41%2Fimage%20(1678)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

Then click the "**Save**" button to apply the changes.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-bd11faec99a8a81125b21c74b88c8067c079867d%2Fimage%20(1679)_eng.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

After these actions, the new/edited texts will be used on the request pages for these exchange directions.
