Skip to Content
0
Jul 19, 2015 at 07:11 PM

How can i check if the custom field populated to email conformation context ?

191 Views

Hello,

How can i check if the custom field populated to email conformation context "email body" ? I have created new attribute in delivery address form and i want to retrieve it into email body of email conformation context. it always giving me the same name of the attribute ${ctx.order.deliveryaddress.newattributebname}.

I have another question regarding to check the parameters in vm. for e.g. if i want to check is the field empty or not i can use if(${ctx.order.deliveryaddress.newattributebname}!="") , or , if(${ctx.order.deliveryaddress.newattributebname}) , or , if(${ctx.order.deliveryaddress.newattributebname.isEmpty()) ... What is the difference between them?

Thanks