From 9903af417f784b352521fadfd1ac26d931234c2f Mon Sep 17 00:00:00 2001 From: Dennis Andersson Date: Tue, 19 Dec 2023 11:37:57 +0100 Subject: [PATCH 1/2] Fix: Separate product reference and manufacturer --- .../catalog/_partials/product-details.tpl | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/templates/catalog/_partials/product-details.tpl b/templates/catalog/_partials/product-details.tpl index 1e32d4c52..94b33f4b7 100644 --- a/templates/catalog/_partials/product-details.tpl +++ b/templates/catalog/_partials/product-details.tpl @@ -13,7 +13,7 @@
    - {block name='product_reference'} + {block name='product_manufacturer'} {if isset($product_manufacturer->id)}
  • @@ -29,17 +29,19 @@ {/if}
  • + {/if} + {/block} - {if isset($product.reference_to_display) && $product.reference_to_display neq ''} -
  • -
    - {l s='Reference' d='Shop.Theme.Catalog'} -
    -
    - {$product.reference_to_display} -
    -
  • - {/if} + {block name='product_reference'} + {if isset($product.reference_to_display) && $product.reference_to_display neq ''} +
  • +
    + {l s='Reference' d='Shop.Theme.Catalog'} +
    +
    + {$product.reference_to_display} +
    +
  • {/if} {/block} From eae37ec3b1f2c8e9f3b351c7f2d5d34ee667b79f Mon Sep 17 00:00:00 2001 From: Dennis Andersson Date: Tue, 2 Jan 2024 13:08:08 +0100 Subject: [PATCH 2/2] Update templates/catalog/_partials/product-details.tpl Co-authored-by: Tom Zajac --- templates/catalog/_partials/product-details.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/catalog/_partials/product-details.tpl b/templates/catalog/_partials/product-details.tpl index 94b33f4b7..02103b3e8 100644 --- a/templates/catalog/_partials/product-details.tpl +++ b/templates/catalog/_partials/product-details.tpl @@ -33,7 +33,7 @@ {/block} {block name='product_reference'} - {if isset($product.reference_to_display) && $product.reference_to_display neq ''} + {if !empty($product.reference_to_display)}
  • {l s='Reference' d='Shop.Theme.Catalog'}