So we have an Email Template that is used to notify customers that go on our website and indicate if they want to be notified when an item comes back in stock. The company that implemented our SC site create a Freemarker template that is used as the Email Template. We want to edit this .ftl file, but we need Freemarker to do that. I have tried to figure out how to install that but am not having any luck. The instructions I have found say to place the freemarker.jar file into a certain folder in a web application, I have no idea what they are talking about. Does anyone have a better way, or detailed instructions on how to get FreeMarker set up?
e
eminero
07/26/2023, 8:58 PM
Where or why are you trying to install that? NetSuite interpret that for you, most or all the email templates use FreeMarker out of the box, the hard part is trying to do modifications - well probably not hard since you have an editor embedded but probably tricky to find the right data. Are you familiar with Email Templates? You just need to do your adjustments in the template itself.
t
Todd Juenemann
07/26/2023, 9:02 PM
We have an email template used to notify customers when an Item is back in stock, and the Email template is based on an FTL file, I was told by the SC developers that I needed to download the FTL file and edit it in FreeMarker, then re-upload it.
I have tried creating a new Email Template, but I have no way to pulling the Item information.
e
eminero
07/26/2023, 9:35 PM
Have you tried to just use your editor like VSCode? I think you will be able to do your modifications there unless I'm missing something. This is the first time I'm seeing a .ftl file used for this purpose in SCA.
s
Steve Goldberg
07/27/2023, 9:38 AM
... yeah you shouldn't need to install anything. You would need, at most, a Freemarker syntax highlighter for your code editor at most, but you should be able to make any changes you want in NetSuite itself
t
Todd Juenemann
07/27/2023, 3:14 PM
@eminero I downloaded VSCode and it has a Freemarker Extension which seems to work. Thank you. Now to figure out how to edit and add what we want to do with it.