From 5bdcd0847feae35361e6bd3a267879cacec6595c Mon Sep 17 00:00:00 2001 From: bhavikvaghani Date: Mon, 22 Apr 2019 13:13:28 +0530 Subject: [PATCH] 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}