FAQ Q376: What are permatags and how to use them to get detailed information about specific pricing manager rules?

Absatz: Setting up your pricing and invoicing

What are permatags

Permatags are fixed rule identifiers which never change, even when changing the ordering of pricing manager rules. You can read the permatag ID of each rule by going to Pricing Manager and clicking on the Reorder button. Here you can reorder the rules and read the permatag ID of each rule. Note that if you frequently need to access the permatags, you can use this special link in order to make them permanently visible in Pricing Manager.

How to use permatags in templates

Permatags can be used in the $(applied_rule...) tags (see Q204 in the FAQ). These tags give specific information about each rule used in price calculation for given reservation. Note that without permatags, you could only identify rules in these tags by their number (e.g. rule #2 or #3) but this number is dynamic and changes whenever you reorder your rules.

Below are some commonly used tag snippets:
TagDescription
$(if) $(is_applied_rule_number:$(get_applied_rule_number:PERMATAG)) $(then)
--rule was used--
$(endif)
This code will display the text only if the pricing manager rule identified by PERMATAG was applied for given reservation. This means that the rule's condition (and any optional advanced conditions) was met.
$(applied_rule_price_diff:$(get_applied_rule_number:PERMATAG))This will show by how much the price was increased as a result of given rule (the value will be negative for a price decrease or 0 if the rule didn't change the price).


FAQ