<img src="abc.png" />
    
call to replace anchor tags contains '/admin' in href

Invoice Templates

Invoice Templates allows you to choose from one of the available invoice templates or to design your custom invoice template. You can define multiple custom invoice templates but there will be only one active invoice template that is used by default when generating an invoice for an order.

You can manage invoice templates in Settings > Invoice Templates section under StoreHippo Admin Panel.

Adding new invoice template 

You can add a new custom template by clicking on Add New button. To add a new template you need to fill the following fields:


You can edit and delete the template by clicking on the ellipsis button and select the desired option from the drop-down menu.

Name

Provide the name of the template in this field.

Import Template

In this field, you can import the templates by selecting between the various templates that are already provided in the drop-down.

Template

In this field, there are two tabs.

  • Preview: In the preview tab, you can preview the invoice template here.

  • Edit: In the edit tab, you can edit the code of the template which includes some variables. We use the following variables for fetching our data in invoices:
Created on created_on
Invoice date invoice_generated_on
Order Id order.order_id
Address store_address.address
City store_address.city
Country store_address.country
State store_address.state
Title store_address.title
Zip code store_address.zip_code
Shipping  Address shipping_address.address
Shipping City shipping_address.city
Shipping Country shipping_address.country
Full name shipping_address.full_name
Phone shipping_address.phone
State shipping_address.state
Zip shipping_address.zip
Product this.product.name
Quantity this.quantity
Unit Price this.product.original_price
Total Amount order.total
Total after discount this.total
Sub Total order.sub_total
Total Tax order.taxes_total
Shipping Charges(+) order.shipping_total
Item Shipping this.shipping_cost
Taxable Amount this.tax_applied_on
Taxable Shipping Amount order.shipping_method.tax_applied_on
Shipping Tax Name order.shipping_method.taxes
Shipping Tax Amount this.tax_amount
Discounts(-) this.saved_amount
 Additional Charges(+) order.additional_charges
Total order.total

Activating the invoice template

To activate an invoice template, choose an invoice template that you wish to set as your default invoice template. Click on the the ellipsis button on the template and choose Make Active command from the drop-down.  


Support for GST (India) in Invoice

GSTIN number 

GST rule requires the invoice to contain the GSTIN numbers of buyer and seller. You can use the following variables: 

seller.gstin. (seller)
user.metafields.gstin (buyer)  (The metafields need to be defined for the customer)

HSN and SAC numbers

Every product/Service has HSN/SAC number. That number needs to be mentioned on the invoice templates. You can access the numbers using the following variable:

order.items[0].product.hsn

Example

How to add SKU field in the invoice?

2018-09-21T10:14:23.200Z