Templates



Once you are familiar with how Neto works, making changes to templates, or creating your own templates is straight forward for a user with basic HTML and CSS skills, coupled with the help of Neto Design teams Designer Docs.

What is B@SE?

Neto templates use B@SE as its templating language, providing eCommerce functionality and interacting with the database by printing out data via two different types of tags, Function and Data tags.

For example, you can use the[%thumb_list%] B@SE function to print out a list of your products and various details about them.

Data tags are simple, stand-alone tags which print a single value from the database, like the name of a category.

Function tags are more complicated, but offer configurable options via parameters, often outputting more than one value. For example using the [%thumb_list%] function, coupled with the [@name@] tag you can print out all the product names in a category.

Folder Structure

Files on the filesystem are organised into various directories, just like the files on your computer. This folder structure can be overwhelming at first, but it is actually quite simple once you get to know it! You will only need to access a few folders, even when developing a custom theme.

A few examples of regularly edited files are:

  • THEME/footers/template.html: This file is the primary footer used on every page of your website.

  • THEME/cms/home.template.html: This is the default template for the home page.

Email Template Locations

All print documents are stored on the file server: /private/www/netosuite/SysDoc/printdocs. They can also be accessed via your CPANEL by going to: CPANEL > Developer Icon > Document Templates.

All system emails are stored here. A system email is an outgoing email sent from the Neto software. This includes both emails sent to customers and staff. All system emails are built using HTML.

Email Template Logic

Abandoned Cart Email

[*EMAIL_SUBJECT*]
[*EMAIL_FROM*]
[*EMAIL_TO*]
[*EMAIL_BCC*]
[*EMAIL_BCC*]

<p>
Dear [@ship_first_name@],<br />

<p>Thank you for your recent [@send_from_company@] purchase.</p>

<p>Should you have any feedback or questions regarding your purchase, please don't hesitate to
contact us by replying to this email and we'll be happy to assist you.</p>

<p>Did you know that many improvements to our products have come about from customer
feedback?</p>

<p>Please take a few minutes to share your thoughts. By writing a Product Review you'll be helping
other customers with their purchases. </p>

[%show_order id:'[@order_id@]' customer:'[@username@]' hidechild:'1'%]
[%PARAM *header%]
<table align="center" border="0" cellpadding="4" cellspacing="0" width="700" style="font-size:11px">
[%END PARAM%]
[%PARAM *body%]
<tr>
<td width="8%" valign="top"><img border="0" src="[$homeurl$]/[%asset_url type:'product' id:'[@SKU@]' thumb:'thumbL'%][%END asset_url%]" alt="[@model@]" width="50px"  height="50px"></td>
<td valign="top" width="86%" nowrap="nowrap"><b>[@model@]</b><br />SKU: [@SKU@]</td>
<td valign="top" width="10%" nowrap="nowrap"><a href="[$homeurl$]/_myacct/write_review?item=[@SKU@]" target="blank"><b>Review This Product &gt;&gt;</b></a></td>
</tr>
[%END PARAM%][%PARAM *footer%]
</table>
[%END PARAM%]
[%END show_order%]

<br /><br />

The system recognises the base tag: [@ship_first_name@] and replaces it with the relevant information from the order, contained in the database.

So when the above email is sent to the customer, it looks like this:


  • Last Modified: 10/04/2016