Skip to content

Instantly share code, notes, and snippets.

@xlawok
Created June 1, 2022 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xlawok/cd6ad7480f683aff22ec481331d70b10 to your computer and use it in GitHub Desktop.
Save xlawok/cd6ad7480f683aff22ec481331d70b10 to your computer and use it in GitHub Desktop.
Prestashop - add pagination to meta title
{if $smarty.server.HTTP_HOST=='amberdream.pl'&&$language.iso_code=='pl'}
{if $page.page_name=="index"}
<title>{block name='head_seo_title'}Sklep internetowy z produktami z bursztynu - Amber Dream{/block}</title>
{else}
<title>{block name='head_seo_title'}{$page.meta.title} {if isset($listing.pagination)&&$listing.pagination.current_page > 1} - Strona - {$listing.pagination.current_page} {/if} - Amber Dream{/block}</title>
{/if}
{else}
<title>{block name='head_seo_title'}{$page.meta.title} {/block}</title>
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment