shop.config in the <AlternativeCurrency> section.
Not all tags in this group carry the prefix
AltCurrency-. They are spread across the prefixes WS-, FORM-, BT-, PR-, BD-, and BASKET- and are grouped here because together they form one function. Within the brackets for shipping and payment costs, there are also local tags without a prefix.Two rules that apply to almost all tags
The currency parameter
Most tags accept a three-letter currency ISO code as a parameter. Without a parameter, they convert into the currency the visitor has currently selected. With a parameter, they convert into the specified currency, regardless of the selection.When a range applies
With ordinary price tags, the range applies if a value is present. With the AltCurrency tags, this is different: the range applies if a conversion factor exists, even if the converted amount is 0.The negative range thus answers the question “no second currency set”, not “price is zero”. That is the right condition for these tags, because without a conversion factor there is simply nothing to display.
A complete example
The selection list, the price in both currencies, and the switch together:You only need the form
FORM-AltCurrency if the selection list is outside of FORM-Product or FORM-Basket. If it is inside one of these two forms, the button with BT-AltCurrency is sufficient.The currency itself
None of these tags can be used as a loop tag.
WS-AltCurrency
Outputs the selected alternative currency as text. With a parameter, you check which currency is selected.The outer range is the most important one on this entire page. Everything related to the second currency belongs inside it. Without it, empty amounts and a lone currency symbol appear on the page as soon as no second currency is selected.
WS-AltCurrencyISO
Outputs the three-letter ISO code of the alternative currency. With a parameter, the tag works likeWS-AltCurrency.
WS-AltCurrencySymbol
Outputs the currency symbol of the alternative currency.WS-AltCurrencyRate
Outputs the conversion factor from the shop currency into the alternative currency.The factor belongs visibly on the page if you show converted prices. It makes it traceable how the second amount comes about and makes clear that it is a conversion and not a separate price.
WS-AltCurrencyList
Outputs a ready-made selection list with all configured alternative currencies.FORM-AltCurrency
Returns the address for a separate form containing the selection list. It is not needed if the selection list is insideFORM-Product or FORM-Basket.
BT-AltCurrency
Returns the name of the button used to submit the currency selection viaFORM-Product or FORM-Basket.
Product prices
All tags in this group accept a currency ISO code and are permitted as a single tag, range tag, and negative range tag in all templates, but not as a loop tag.PR-AltCurrencyPrice follows the shop’s setting; the two explicit variants do not. In a gross shop, PR-AltCurrencyPrice shows the same value as PR-AltCurrencyGrossPrice; in a net shop, the same as PR-AltCurrencyNetPrice. Use the explicit variant only where the value must be fixed regardless of the shop setting.Tiered prices
Both accept a currency ISO code, can be used as a single tag and in both range forms, and are only permitted on the product detail view (
ws_product.htm).
Guide: Product prices, section Tiered prices
Basket and order
These tags also accept a currency ISO code and are permitted as a single tag and in both range forms in all templates.Basket totals
Basket items
Web-to-print additional costs
For the additional costs of a web-to-print design, the same four values exist on three levels: on the product, per basket item, and as a total across the basket.
All twelve tags can be used as a single tag and in both range forms, accept a currency ISO code, and are not loop tags. The meaning of the four variants is the same on every level: without a suffix, the value according to the shop setting;
Net and Gross explicitly net or gross; VAT the VAT portion.
On the product:
The difference between the two basket levels lies in the
@. The item tags belong in the loop {@BASKET-PR-Data}, the total tags in the bracket {BASKET-PR-Data} without a loop.Local tags for shipping and payment costs
Within the display of shipping methods and chargeable additional services, separate local tags without a prefix apply. They are only available there.
In addition, the same values exist in the shop currency as
Cost, GrossCost, NetCost, WS-Currency, and WS-CurrencySymbol.
AltCurrencyCost is the only one of these tags that can also be used as a range tag. It is therefore the switch with which you bracket the entire display in the alternative currency in or out. The other four are pure single tags and return nothing without a conversion factor.Related topics
- Guide: Alternative currency
- Guide: Product prices
- Reference: AlternativeCurrency section
