Removing the “Free!” text from the shipping method list displayed on the website on the checkout page using content management. We can only replace the text by blank space or any other alternative symbol or text. The Shipping methods with non-zero cost will be displayed in the UI, only zero-cost in shipping method the “Free!”… Continue reading Points to Note While Removing ‘Free’ From Shipping Methods with Zero Rate
Tag: Freemarker
Freemarker Formula for Advances PDF Template to convert date to user-preferred format.
The date provided to the Advanced PDF template should be a date time Object. ${receiptObj.trandate?datetime.iso?string(“dd.MM.yyyy”)}
Freemarker code to display a table on the entire page even if the data size varies.
Freemarker code to display a table on the entire page even if the data size varies.
Repeat a string n times in freemarker
Requirement: Need to repeat a string of characters n times, where n is a variable Solution: Use list to iterate a range:
FreeMarker Formatting Method
NetSuite formatting is lost when you customize NetSuite standard fields. If you print hard-coded values which came from a custom data source or were calculated from standard fields, the format will not be consistent with the format of standard record fields. When editing the template source code, the nsformat_() formatting method makes it possible to… Continue reading FreeMarker Formatting Method
How to remove duplicate elements in an array using freemarker?
We can use freemarker sequences. Probably not super efficient but I’ve used this to group close to max size lines on invoices and such.
Perform Date math in advanced PDF Template
Calculate date math in advanced pdf templates.
Rendering web pages using free marker and Suite scripts
Render a web page using suitelet and HTML template.
Estimate PDF Tax %
Estimate PDF Customization for printing tax rate in total box.