Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Separate product reference and manufacturer #570

Merged
merged 2 commits into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading