Layout changes of ThemeWare can be easily applied by means of template customization, which can be stored in template blocks. 


Prerequisites

Please make sure that all changes are done in the extension of ThemeWare. For more information on extensions please see ThemeWare extension.


Create own template files

All TPL-files of the extended theme can be customized if they use our theme or the Shopware Bare Theme. In Shopware all TPL-files can be found in the Bare Theme (not in the Responsive Theme).


Please find the deducted folder here: /themes/Frontend/name-of-extension


Helpful Smarty Basics

Smarty template blocks always follow a certain structure. The block name is automatically defined by the parent file (in this case by Shopware Bare Theme or ThemeWare). If you create a new template block, you can define an individual block name yourself.


How to store an extension in a new template file 

Please define the parent file in the first line of your template file. 

{extends file="parent:frontend/index/dateiname.tpl"}


Overwrite blocks

{block name='frontend_index_blockname'}
    // Please place additional content here
{/block}


Add block after content

{block name='frontend_index_blockname'}
    {$smarty.block.parent}
    // Please place additional content here
{/block}


Add block before content

{block name='frontend_index_blockname'}
    // Please place additional content here
    {$smarty.block.parent}
{/block}