set @discount = "25% off" set @product = "Sheep" set @legal = "cannot be used in Antarctica or surrounding areas"
Due to templates and other integration issues, all of our coupons use the same variables, so when we have multiple coupons we have to redefine the variables before each coupon. This isn't a problem until we get to the footer, where we also include the legal disclaimers, and other information from the coupons. In order to do this currently, we currently redefine all the variables again in the footer. I'm looking for a way to define the variables once, and then include the code for both the coupon and the footer, and be able to tell the footer to appear in the bottom of the email, say inside a
<table id="footer"> element.
This seems possible to me, since it's not being executed after the email has loaded, but I haven't found the functionality in the documentation yet. Anyone have any ideas how to do this?
Side note: I am trying to get the templates to a point where we use separate variables for each instance of a coupon, say @discount2, @product2, and @legal2, or something, but it's a slow process so I'm looking for other solutions.