TAC- tags do. The name stands for “terms and conditions”. They read the payment and shipping methods directly from the shop configuration and output them without a single check against the current process. Two families share the work: TAC-P- for payment methods and TAC-D- for shipping methods.
Guide: Global display of payment and shipping methods
All tags on this page are permitted on all templates. A separate template that is included via a content page is common. Every tag except the two loop tags
TAC-P-Data and TAC-D-Data requires the respective loop around it; outside it, it is an invalid tag.- Reference: PAY- (payment methods)
- Reference: DELIV- (shipping methods)
What is displayed at all
Neither loop iterates over all configured entries, only over those intended for list display. This is a separate switch for each payment or shipping method in the shop configuration.The order of the payment methods follows the position assigned in the shop configuration, not the order of the entries in the file. The shipping methods, on the other hand, appear in the order of their entries.
The payment methods
The loop
TAC-P-Data can do all three: output the number as a single tag, check as a bracketing whether there are any entries at all, and loop over them.
The details per payment method
TAC-P-Img returns a complete path, because the shop system prepends the directory of the navigation graphics. Bracket the output anyway, because not every payment method has a graphic stored, and an img element with an empty src reloads the page itself.The cost scale
The costs of a payment method depend on the value of the goods and are stored as a scale.TAC-P-CostData loops over it.
TAC-P-CostData_amount() takes up to two parameters, namely the number of decimal places and the decimal separator. Without parameters, the tag outputs the value unformatted. For amounts, (2) is the usual setting.If a payment method has no costs stored,
TAC-P-CostData does not apply as a bracketing. The negative bracketing is therefore suitable for a notice that this payment method is free of charge.The country lists
For each payment method, you can define which countries may be delivered to and for which countries the invoice may be issued. Both work the same way and consist of two steps: first, a bracketing tells you what kind of list it is, and within it a loop iterates over the countries.
For the delivery countries, there are the same five tags with
DeliveryCountries or DeliveryCountryData in the name.
The two
complete bracketings exist in the shop system but are not described in the previous documentation. The supplied sample templates use them nevertheless, and rightly so, because they answer the question a buyer asks.Which countries are in the inverse list comes from the shop’s country files. For billing countries, this is the general country list; for delivery countries, the list of countries that can be delivered to. The two can differ.
As a single tag, the two
CountryData tags output the entire list as a comma-separated sequence of ISO codes. This is not described in the previous documentation and is suitable for passing to your own scripts.If no country restriction at all is stored for a payment method, all bracketings remain silent. The outer bracketing
TAC-P-BillCountryData is therefore suitable as a frame around the entire country block, as in the example above.The shipping methods
The shipping methods work just like the payment methods. Three things are added: a second cost scale by weight, an additional country field and three checks for special order types.The loop and the details
TAC-D-Country exists in the shop system but is not described in the previous documentation. It outputs the country field of the shipping method, that is, an additional value from the configuration, and should not be confused with the country list below.The two cost scales
Shipping costs can depend on the value of the goods, on the weight, or on both. There are two separate loops for this.Both
_amount tags take the number of decimal places and the decimal separator as parameters. For weights, (1) is usually appropriate; for amounts, (2).The “free shipping” notice line in the example needs both negative bracketings nested inside each other, because a shipping method is only free of charge if neither a value-of-goods scale nor a weight scale is stored.
The delivery countries
The delivery countries of a shipping method work exactly like the country lists of the payment methods, including the difference between_allow and completeAllow.
Here, too,
TAC-D-DeliveryCountries_completeAllow and _completeDeny exist in the shop system and are not described in the previous documentation. Everything about the order and the inverse list applies unchanged; see above under payment methods.Special order types
Three bracketings tell you for which type of order a shipping method is intended. All three strictly require a parameter.The three tags check for equality with exactly one setting. If you want to output something for all cases except one, use the negative bracketing, not a different parameter.
- Reference: PRIME- (PrimeShopping)
- Reference: SUBS- (taking out a subscription)
Tags at a glance
Payment methods
Shipping methods
The “Applies in” column names the loop within which the tag must be placed. Outside it, it is an invalid tag. The two
CountryData tags each belong in the loop of their own level, not in the data loop above it.Related topics
- Guide: Global display of payment and shipping methods
- Guide: Creating payment methods
- Guide: Creating shipping methods
- Reference: PAY- (payment methods)
- Reference: DELIV- (shipping methods)
