Hi,
Well, you have two options:
- Since you requested the easiest way, here it is: Edit the email via the System>Emails menu and in its "HTML version" area, just add the tag {VAR:product.email_tags} inside a td tag between the
<!--{START:PRODUCT_LINE}-->
and
<!--{END:PRODUCT_LINE}-->
The system will then replace automatically your tag with the selected values in the database.
There are two drawbacks with this method:
1. you can't have different translations for the text. You need to have the text directly in the "value" input of each row of values of your custom field
2. you can't display your text outside of the row of the product on the products listing table in the email
- The more complex solution is to modify the "preload section" of the email (via the System>Emails menu).
There, there are several modifications you want to make:
1. You want to add an extra row to the $vars array.
2. Inside the array looping on the products "foreach($data->cart->products as $item) {", you want to take the data from $product->email_tags, explode it, use JText::_() in order to translate it, and then appending it to your entry in $vars. Ideally, you want to change that the value is not already appended so that you don't have the same text several times if the customer purchase several products with the same text checked in them.
3. In the "HTML section" of the email, you can then use the key of your extra row in $vars in a tag like {VAR:key} where key is the key of your extra row in $vars.
The advantage here is that you can place the tag anywhere in the HTML, and the texts will be translated
The drawback is that it requires some coding to be done by a PHP developer.