Where are templates?

Templates are comprised of plain text HTML and can be stored in two locations –

 

1.  In the sub folder “templates\default” in your VPCART shopfolder (files are named in the format tmp_example.htm)

2.  In the database table templates.

 

You can mix and match where your templates reside - some can be stored in the database and some in the “templates\default” folder.

 

The advantage of having templates in the database is that they can be easily edited, added or changed from your browser.

 

You can tell VPCART where to locate a particular template in the Shop Configuration.

 

For example, to find the product formatting template, the filename would be either -

 

If in the “templates\default” folder –tmp_productformat.htm

 

If in the database - db=tmp_productformat.htm

 

The db= is a keyword telling VPCART to look in the database to find the template.