Last Updated 11 months ago

How to link cms pages, products and categories to entries by tags?

In the module settings, you can set the linkage from the "Main Settings" tab:

image


At the bottom of the "Main Settings" tab section, there is a section with the heading "Linkage Settings" where you can enable linkage of cms page, products and categories by tags:

image


Placing the hook on the cms page by adding in the file:

prestashop 1.6:
themes/template_name/cms.tpl
before the line:
{elseif isset($cms_category)}
line:
{hook h='displayAssociations'}.

prestashop 1.7:
themes/templates/cms/page.tpl
before the line:
{block name='hook_cms_dispute_information'}
line:
{hook h='displayAssociations'}.


Placing the hook on the product page by adding in the file:

prestashop 1.6:
themes/template_name/product.tpl
before the line:
{if isset($HOOK_PRODUCT_FOOTER) && $HOOK_PRODUCT_FOOTER}{$HOOK_PRODUCT_FOOTER}{/if}
line:
{hook h='displayAssociations'}.

prestashop 1.7:
themes/template/templates/catalog/partials/product.tpl
before the line:
{block name='product_footer'}
line:
{hook h='displayAssociations'}.


Placing the hook on the category page by adding in the file:

prestashop 1.6:
themes/template_name/category.tpl
before the line:
{elseif $category->id}
line:
{hook h='displayAssociations'}.

prestashop 1.7:
themes/templates/catalog/listing/category.tpl
at the end of the file line:
{hook h='displayAssociations'}.

Please Wait!

Please wait... it will take a second!

Kliknij by skopiować