E-SUBS_ apply exclusively in the templates of these emails.
You enter all four in the shop configuration shop.config in the Subscription section, each in its own subsection.
Guide: Subscription module · Reference: Subscription section · Materials: Subscription module materials
Subscription management in the customer account is a different matter. It works with the tags of the prefix
SUBS-, not with the E-SUBS_ tags on this page.The loop over the subscriptions
Two loops are available. Which one fits depends on who receives the email.Grouping by product is intended for the merchant announcement. The merchant wants to know how much of which item is going out soon, not which customer ordered what. The buyer, on the other hand, gets their own subscriptions listed individually.
E-SUBS_DataByProduct can also be used as an area tag. The area applies if there are any grouped subscriptions at all, and keeps the table header and heading out of an otherwise empty email.The subscription details
All of the following tags are placed inside the loop and refer to the subscription currently being iterated.Product name and price reflect the state of the last order or the last change to the subscription, not today’s catalogue price. In the announcement to the buyer, this is the more honest information because it shows what was last charged. Point out in the text that the price may change before delivery.
E-SUBS_Data_PR_quantitydecimal is not in the old documentation. The tag outputs the number of decimal places with which the quantity is managed, which is necessary for items sold by weight or length.Points in time
All four points in time come as timestamps. For readable output, format them in the template, for example with the date formatting tags.
The state of a subscription
Checking whether a product is subscribed
Both tags check the entire subscription list, not just the subscription currently being iterated. They are therefore placed outside the loop and are suitable for addressing a specific product in an email.
The two error emails
E-SUBS_ErrorCode only applies in the template for OrderErrorMail. E-SUBS_ErrorMsg is available in all subscription templates.The tags at a glance
All tags on this page are permitted in the four email templates of the subscription module. The
Data_ tags each within one of the two loops, E-SUBS_ErrorCode only in the template for OrderErrorMail.
Related topics
- Guide: Subscription module
- Reference: Subscription section
- Reference: SUBS- (subscription management in the customer account)
- Materials: Subscription module materials
