Skip to content

Commit

Permalink
Merge pull request #570 from dennispw/fix-prod-manu-ref
Browse files Browse the repository at this point in the history
Fix: Separate product reference and manufacturer
  • Loading branch information
SharakPL authored Jan 4, 2024
2 parents a41001b + eae37ec commit 5bf760d
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 !empty($product.reference_to_display)}
<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 5bf760d

Please sign in to comment.