Comparing numbers
Six range tags compare numeric values. All arguments support tag-in-tag, so usually two tag results or a tag result and a fixed value are compared.The negative bracketing is always the exact inverse.
{!DC-CompareDigitLT($PR-Price$,100.00)} therefore applies to a price of exactly 100.00 as well as to a higher one. If you mean “greater than”, use DC-CompareDigitGT().Comparing strings
DC-CompareStringInList() checks whether the first value matches the second or appears in a list.
The comparison checks for a complete match. If the value only needs to contain a part, use
DC-FPX_contains() instead.Using a tag result as a parameter
Tag-in-tag only works with single tags without their own argument. A tag such asDC-FPX_IndexOf(), which itself needs parentheses, therefore cannot be written into another tag as $…$.
For this case, there is a pair: DC-WSTagParameter-prepare encloses the tag and captures its result, and DC-WSTagParameter-use then inserts it as a parameter.
The content of the
prepare area is never output. It serves solely to generate the result.ContentControl-SetHeader_Location().
Building links
Three tags assemble an address from a base and any number of parameters.The shop sets the question mark or the ampersand itself, depending on whether the base address already carries parameters. You no longer have to handle the order manually, and
WS-EnsureNextLinkContainsURLParams is not needed for this.The value is automatically URL-encoded. Therefore, pass it as plain text and not already encoded, otherwise it will be encoded a second time.
_AppendParameter() once more.
Other tags
DC-3ISOCodeToCountry()
Translates a three-letter country ISO code into the country name from the country configuration. If the code is unknown, the tag outputs nothing.DC-RedeemVoucher
Redeems an entered or passed voucher, provided it has not yet been redeemed. This allows you to redeem a voucher via a deep link.DC-ResetActiveCatIndex
Resets the internally stored active category. As a result, no entry in the category menu appears as selected anymore.Useful on pages that do not belong to any category, for example the basket or login. Without the tag, the most recently visited category remains highlighted there.
DC-RecalculatePayDeliv
Has payment methods and shipping methods rechecked and recalculated. The tag is not described in the previous documentation, but it exists in the shop.DC-ResetAddressErrorFlags
Resets the error flags of the billing address input. Also not described in the previous documentation, but it exists in the shop.DC-QuantityInputPrintDepVarIndex
Controls the output of the variant index for quantity input fields. Also not described in the previous documentation, but it exists in the shop.Test mode tags
Two further tags only take effect when the shop is running in test mode and output nothing otherwise.Overview of the tags
All tags are permitted in all templates.
Related topics
- Guide: Displaying areas depending on logical comparisons
- Reference: TAF- (Tell-A-Friend)
- Reference: DC- (free parameters and session parameters)
- Reference: ContentControl- (redirect concept for content from third-party systems)
- Reference: CHECK- (URL and cookie data)
