Skip to content

Commit

Permalink
Replace "else if" by "elseif"
Browse files Browse the repository at this point in the history
  • Loading branch information
Klemart3D authored Mar 1, 2024
1 parent 4393658 commit 32fe798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/_partials/microdata/product-jsonld.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 32fe798

Please sign in to comment.