Is there a way to show a TPL file on any custom product pages we select?
Hello,
It is necessary to create a custom tpl file in 'design/themes/[theme_name]/templates/blocks/product_templates/template_name.tpl' like as 'default_template.tpl'. You can choose this template (on Product editing page in 'Product details view' select-box) to show on necessary products.
Sincerely yours,
CS-Market.
[quote name='ooaykac' timestamp='1429603291' post='212158']
Is there a way to show a TPL file on any custom product pages we select?
[/quote]
We can offer you the following way
- You create a new block for the Pages location (HTML block with SMARTY support)
- You enable this block for the required CMS pages
- You add the following code to the block content:
{include file="PATH_TO_YOUR_TPL_FILE.tpl"}
[quote name='CS-Market' timestamp='1429605565' post='212160']
Hello,
It is necessary to create a custom tpl file in 'design/themes/[theme_name]/templates/blocks/product_templates/template_name.tpl' like as 'default_template.tpl'. You can choose this template (on Product editing page in 'Product details view' select-box) to show on necessary products.
Sincerely yours,
CS-Market.
[/quote]
Can I do it in an adoon? Like: [color=#282828][font=arial, verdana, tahoma, sans-serif]'design/themes/[theme_name]/templates/addons/my_addon_name/blocks/product_templates/template_name.tpl'[/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]Is it possible?[/font][/color]
[quote name='eComLabs' timestamp='1429619041' post='212206']
We can offer you the following way
- You create a new block for the Pages location (HTML block with SMARTY support)
- You enable this block for the required CMS pages
- You add the following code to the block content:
{include file="PATH_TO_YOUR_TPL_FILE.tpl"}
[/quote]
Thanks eCom. This way looks like better.
[quote name='ooaykac' timestamp='1429619209' post='212210']
Thanks eCom. This way looks like better.
[/quote]
You are welcome! If you face any problem, please let me know.