From 32fe7980f26cfb2b21f27b5a15164fcd8e0e4fc1 Mon Sep 17 00:00:00 2001 From: Klemart3D Date: Fri, 1 Mar 2024 15:37:49 +0100 Subject: [PATCH] Replace "else if" by "elseif" --- templates/_partials/microdata/product-jsonld.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/_partials/microdata/product-jsonld.tpl b/templates/_partials/microdata/product-jsonld.tpl index 7cf7380c..c56ec348 100644 --- a/templates/_partials/microdata/product-jsonld.tpl +++ b/templates/_partials/microdata/product-jsonld.tpl @@ -35,7 +35,7 @@ "sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}", "mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}" {if $product.ean13},"gtin13": "{$product.ean13}" - {else if $product.upc},"gtin13": "{$product.upc}" + {elseif $product.upc},"gtin13": "{$product.upc}" {/if} {if $product_manufacturer->name}, "brand": { @@ -80,7 +80,7 @@ {/if} "sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}", "mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}", - {if $product.ean13}"gtin13": "{$product.ean13}",{else if $product.upc}"gtin13": "0{$product.upc}",{/if} + {if $product.ean13}"gtin13": "{$product.ean13}",{elseif $product.upc}"gtin13": "0{$product.upc}",{/if} {if $product.condition == 'new'}"itemCondition": "https://schema.org/NewCondition",{/if} {if $product.show_condition > 0} {if $product.condition == 'used'}"itemCondition": "https://schema.org/UsedCondition",{/if}