From 5bdcd0847feae35361e6bd3a267879cacec6595c Mon Sep 17 00:00:00 2001 From: bhavikvaghani Date: Mon, 22 Apr 2019 13:13:28 +0530 Subject: [PATCH 1/2] Update microdata-jsonld.tpl Notice: Undefined index: category_name Solved --- templates/_partials/microdata-jsonld.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/_partials/microdata-jsonld.tpl b/templates/_partials/microdata-jsonld.tpl index 7c50d7ba..54afcb23 100644 --- a/templates/_partials/microdata-jsonld.tpl +++ b/templates/_partials/microdata-jsonld.tpl @@ -86,7 +86,7 @@ "@type": "Product", "name": "{$product.name}", "description": "{$page.meta.description}", - "category": "{$page.category_name}", + "category": "{$product.category_name}", {if isset($product.cover)}"image" :"{$product.cover.bySize.home_default.url}",{/if} {if $product.reference}"mpn": "{$product.reference}",{/if} {if $product_manufacturer->name}"brand": { @@ -142,4 +142,4 @@ -{/if} \ No newline at end of file +{/if} From fcb4767094abab7123e27cf7c9004b55f03a0632 Mon Sep 17 00:00:00 2001 From: bhavikvaghani Date: Mon, 22 Apr 2019 14:28:09 +0530 Subject: [PATCH 2/2] Smarty Replace Warning Smarty Replace needs two parameters else display warning on debug mode. --- templates/_partials/pagination-seo.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/_partials/pagination-seo.tpl b/templates/_partials/pagination-seo.tpl index 2be67a26..ac46642a 100644 --- a/templates/_partials/pagination-seo.tpl +++ b/templates/_partials/pagination-seo.tpl @@ -29,7 +29,7 @@ {assign page_nb $smarty.get.page|intval} {/if} {$queryPage = '?page='|cat:$page_nb} - {$page.canonical = $page.canonical|replace:$queryPage} + {$page.canonical = $page.canonical|replace:$queryPage:''} {assign var="prev" value=false}