Skip to content

Commit

Permalink
Merge pull request #142 from Klemart3D/develop
Browse files Browse the repository at this point in the history
 Replace smarty condition "else if" by "elseif"
  • Loading branch information
SharakPL authored Mar 7, 2024
2 parents 6a50708 + ad1f2b2 commit 90a2a88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 @@ -49,7 +49,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 OR $shop.name},
"brand": {
Expand Down Expand Up @@ -89,7 +89,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
2 changes: 1 addition & 1 deletion templates/contact.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{hook h='displayContactLeftColumn'}
</div>
{/block}
{else if $layout === 'layouts/layout-right-column.tpl'}
{elseif $layout === 'layouts/layout-right-column.tpl'}
{block name="right_column"}
<div id="right-column" class="col-xs-12 col-md-4 col-lg-3">
{hook h='displayContactRightColumn'}
Expand Down

0 comments on commit 90a2a88

Please sign in to comment.