What are the invoice variables available to the templates?

All of the fields you see in the invoice header can be referenced in our templates in this format:

<%=oInv.invtotal%>

oInv is the 'object', while .invtotal is the 'property' or in this case the fieldname.

Occassionally, the object could be called just 'invoice'. To see a list of valid 'properties' or fields, use the invoice report, then click the link to the view the invoice, then click the 'edit invoice header' and you will see the specific field names (aka properties).

An example of a formula you could use inside of the screenconfirmation.wc (the template commonly used for sending sales conversions to search engines is below.

<%=oInv.invtotal-(oInv.handling+oInv.tax)%>

This formula would return a value as 'text' that was the invoice total less the handling and tax, ie the order sub total.
  • 163 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

How do I edit an order that has already been checked out?

Step 1: Go to your control panel (admin.epc) Step 2: Click the Invoice Report link in the...

Why can't I find an invoice?

If you cannot loacte an invoice, you should: 1. Go to the Admin page.2. If you know the Invoice...

Why am I missing orders?

On occassion clients have complained that an order has gone missing. When in reality, all that...

What do I do when my authorize.net stops working?

If your authorize.net stops working make sure that your Merchant Field in Store Settings is set...

How do I send a customer a copy of an invoice?

To send a customer a copy of their invoice: 1. Go to your main admin page.2. On the upper left is...