Jump to content

How to: Include template in custom module


Diyan Bogdanov

Recommended Posts

Hello dear friends, I am new in PrestaShop and some things I do not know how to do them, that is why I am here.
I have the following problem:

I have made custom module with simple template file. In this template file I want to include these two files:

"admin\themes\default\template\controllers\products\multishop\checkbox.tpl" &

"admin\themes\default\template\controllers\products\textarea_lang.tpl"

but I can not do it.

Here is code where I want to include these files

    <div class="form-group">
        <div class="col-lg-1"><span class="pull-right">{include file="...checkbox.tpl" field="sample" type="tinymce" multilang="true"}</span></div>
        <label class="control-label col-lg-2" for="sample_{$id_lang}">
                <span class="label-tooltip" data-toggle="tooltip" title="{l s='Sample'}">
                        {l s='Sample'}
                </span>
        </label>
        <div class="col-lg-9">
                {include
                        file="...textarea_lang.tpl"
                        languages=$languages
                        input_name='sample'
                        class="autoload_rte"
                        input_value=$product->sample}
        </div>
    </div>

What I should write before 'checkbox.tpl' and 'textarea_lang.tpl' to make it work

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...