Skip to content

Commit

Permalink
Fix: Separate product reference and manufacturer
Browse files Browse the repository at this point in the history
  • Loading branch information
dennispw committed Dec 19, 2023
1 parent 6fe6641 commit 9903af4
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions templates/catalog/_partials/product-details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div id="product-details-collapse" class="info__content accordion-collapse collapse {if !$product.description}show{/if}" data-bs-parent="#product-details-heading" aria-labelledby="product-details-heading">
<div class="accordion-body">
<ul class="product__details">
{block name='product_reference'}
{block name='product_manufacturer'}
{if isset($product_manufacturer->id)}
<li class="detail">
<div class="detail__left">
Expand All @@ -29,17 +29,19 @@
{/if}
</div>
</li>
{/if}
{/block}

{if isset($product.reference_to_display) && $product.reference_to_display neq ''}
<li class="detail">
<div class="detail__left">
<span class="detail__title">{l s='Reference' d='Shop.Theme.Catalog'}</span>
</div>
<div class="detail__right">
<span>{$product.reference_to_display}</span>
</div>
</li>
{/if}
{block name='product_reference'}
{if isset($product.reference_to_display) && $product.reference_to_display neq ''}
<li class="detail">
<div class="detail__left">
<span class="detail__title">{l s='Reference' d='Shop.Theme.Catalog'}</span>
</div>
<div class="detail__right">
<span>{$product.reference_to_display}</span>
</div>
</li>
{/if}
{/block}

Expand Down

0 comments on commit 9903af4

Please sign in to comment.