The client would like to add the product’s tracking number to the email template that would be sent to the customer at the time of order dispatch.
In order to achieve this requirement, we can add a different code in the email template so that the tracking number will appear in the template.
${transaction.custbody_jj_trackingnumber}
Here the tracking number is a custom body field created in the sales order record.