arrow_back_ios

How can I show the remaining quantity when a client selects a time?

Open the resource settings and enable the Show remaining quantity checkbox.
For a resource of the Rental type, it will appear as follows:
For a resource of the Event type, it will look like this:
You can also customize the text for the remaining quantity, for example: "7 spots of 20".
To do this, set a template for the text displaying the remaining places. Go to the Localization panel in the widget settings.
Add a new translation with the key SHARES_PATTERN and a value, for example, {0} spots of {1}. Here, {0} will be replaced with the remaining quantity, and {1} will be replaced with the total number.
How do you handle plural forms?
You can specify different text for different quantities. To do this, add the following translation keys:
  • SHARES_PATTERN_ONE = {0} spot. Used for the singular form (relevant for English and some European languages).
  • SHARES_PATTERN_OTHER = {0} spots. General plural form (used in English and most other languages such as Japanese, Chinese, Thai).
  • SHARES_PATTERN_FEW = {0} spots. Used for the "few" form (e.g., 3, 23, 104) (relevant for Slavic and some other languages).
  • SHARES_PATTERN_MANY = {0} spots. Used for the "many" form (e.g., 5, 11, 120, 107) (relevant for Slavic and some other languages).
See this example in action.