Create your own templates using a PHP file

If you use the Starter version, or if you prefer a PHP file, you can also create our templates via files. In this article you will find some explanations.

Standard template

It is best to start from an existing template and adjust it. This is how a complete template class looks like:

Link functions and template fields

Details about the individual fields can be found in this article.

Functions in Detail

Function Description
get_header Delivers HTML back.
get_detail_header Delivers HTML back.
get_body_header Delivers HTML back.
get_detail Delivers HTML back.
get_body_footer Delivers HTML back.
get_detail_footer Delivers HTML back.
get_footer Delivers HTML back.
get_hidedisclaimer Either delivers zero back, then the default or a Boolean (true/false) will be used.
get_templatetype Either delivers zero back (then the product template will be used) or an integer.

1 = Product template, 2 = offer template, 3 = image gallery

get_includemainoffer Either delivers zero back, then the default or a Boolean (true/false) will be used.
get_maxoffercount Either delivers zero back, then the default or an integer will be used.
get_customdisclaimer Either delivers zero back. On zero, the disclaimer from the settings will be used. With this, the text for the disclaimer can be overriden.

 

 

 

Do you still have questions? No problem :-)
We are happy to answer your questions in our forum.