...
Sofern Sie keine individuelle HTML Vorlage für die Produkt-Detail-Ansicht im Frontend verwenden, müssen Sie nichts weiter unternehmen.
Notwendige Anpassungen in der v4 (product_info_v1.html):
statt:
Codeblock |
---|
{if $PRODUCTS_MANUFACTURERS_DESC}
<div class="tab-pane fade" id="mandesc">
{$PRODUCTS_MANUFACTURERS_IMG}<br>
{$PRODUCTS_MANUFACTURERS_DESC}
</div>
{/if} |
Neu:
Codeblock |
---|
{if $PRODUCTS_MANUFACTURERS_DESC !='' || $PRODUCTS_MANUFACTURERS_NAME !=''}
<div class="tab-pane fade" id="mandesc">
{$PRODUCTS_MANUFACTURERS_IMG}<br>
{if $PRODUCTS_MANUFACTURERS_NAME != ''}
{if $PRODUCTS_MANUFACTURERS_URL != ''}<a href="{$PRODUCTS_MANUFACTURERS_URL}" rel="noopener">{/if}
{$PRODUCTS_MANUFACTURERS_NAME}
{if $PRODUCTS_MANUFACTURERS_URL != ''}</a>{/if}
<br>
{/if}
{if $PRODUCTS_MANUFACTURERS_CONTACT != ''}
{$txt.manufacturers_contact}{$PRODUCTS_MANUFACTURERS_CONTACT}<br>
{/if}
{if $PRODUCTS_MANUFACTURERS_COUNTRY != ''}
{$txt.manufacturers_country}{$PRODUCTS_MANUFACTURERS_COUNTRY}<br>
{/if}
{if $PRODUCTS_MANUFACTURERS_STREET != ''}
{$txt.manufacturers_street}{$PRODUCTS_MANUFACTURERS_STREET}<br>
{/if}
{if $PRODUCTS_MANUFACTURERS_STREET_ADD != ''}
{$txt.manufacturers_street_add}{$PRODUCTS_MANUFACTURERS_STREET_ADD}<br>
{/if}
{if $PRODUCTS_MANUFACTURERS_ZIP != ''}
{$txt.manufacturers_zip}{$PRODUCTS_MANUFACTURERS_ZIP}
{/if}
{if $PRODUCTS_MANUFACTURERS_CITY != ''}
{$PRODUCTS_MANUFACTURERS_CITY}<br>
{/if}
{if $PRODUCTS_MANUFACTURERS_STATE != ''}
{$txt.manufacturers_state}{$PRODUCTS_MANUFACTURERS_STATE}<br>
{/if}
{if $PRODUCTS_MANUFACTURERS_PHONE != ''}
{$txt.manufacturers_phone}{$PRODUCTS_MANUFACTURERS_PHONE}<br>
{/if}
{if $PRODUCTS_MANUFACTURERS_MAIL != ''}
{$txt.manufacturers_mail}{$PRODUCTS_MANUFACTURERS_MAIL}<br>
{/if}
{if $PRODUCTS_MANUFACTURERS_SECURITY != ''}
{$txt.manufacturers_security}{$PRODUCTS_MANUFACTURERS_SECURITY}<br>
{/if}
{if $PRODUCTS_MANUFACTURERS_ADDITION != ''}
{$txt.manufacturers_addition}{$PRODUCTS_MANUFACTURERS_ADDITION}<br>
{/if}
{if $PRODUCTS_MANUFACTURERS_DESC != ''}
{$txt.manufacturers_desc}{$PRODUCTS_MANUFACTURERS_DESC}
{/if}
</div>
{/if} |
Notwendige Anpassungen in der v5 (product_info_v1.html):
Hinter {$PRODUCTS_DESCRIPTION}
Neu:
Codeblock | ||
---|---|---|
| ||
{if $PRODUCTS_SECURITY_DESC != '' && $smarty.const.PRODUCT_DETAILS_TAB_MANUFACTURERS == 'false'}
<div class="flex-item flex100">
{$txt.manufacturers_security}
{$PRODUCTS_SECURITY_DESC}
</div>
{/if} |
statt:
Codeblock |
---|
{block name="module_product_info_standard_manufacturers"}
{if $PRODUCTS_MANUFACTURERS_DESC !=''}
<div class="row" id="mandesc">
<h3>{$txt.manufacturers}</h3>
{$PRODUCTS_MANUFACTURERS_DESC}
</div>
{/if}
{/block} |
Neu:
Codeblock |
---|
{block name="module_product_info_standard_manufacturers"}
{if $smarty.const.PRODUCT_DETAILS_TAB_MANUFACTURERS == 'true'}
<h3>{$txt.manufacturers}</h3>
{if $PRODUCTS_MANUFACTURERS_NAME != ''}
<div class="flex-item flex100">
<div class="w100 text-center">
{if $PRODUCTS_MANUFACTURERS_URL != ''}
<a href="{$PRODUCTS_MANUFACTURERS_URL}" rel="noopener" target="_blank">
{/if}
{$PRODUCTS_MANUFACTURERS_NAME}
{if $PRODUCTS_MANUFACTURERS_URL != ''}</a>{/if}
</div>
</div>
<br>
{/if}
{if $PRODUCTS_MANUFACTURERS_CONTACT != ''}
<div class="flex-item flex100">
<div class="w50 text-right">
{$txt.manufacturers_contact}
</div>
<div class="w50 text-left">
{$PRODUCTS_MANUFACTURERS_CONTACT}
</div>
</div>
{/if}
{if $PRODUCTS_MANUFACTURERS_COUNTRY != ''}
<div class="flex-item flex100">
<div class="w50 text-right">
{$txt.manufacturers_country}
</div>
<div class="w50 text-left">
{$PRODUCTS_MANUFACTURERS_COUNTRY}
</div>
</div>
{/if}
{if $PRODUCTS_MANUFACTURERS_STREET != ''}
<div class="flex-item flex100">
<div class="w50 text-right">
{$txt.manufacturers_street}
</div>
<div class="w50 text-left">
{$PRODUCTS_MANUFACTURERS_STREET}
</div>
</div>
{/if}
{if $PRODUCTS_MANUFACTURERS_STREET_ADD != ''}
<div class="flex-item flex100">
<div class="w50 text-right">
{$txt.manufacturers_street_add}
</div>
<div class="w50 text-left">
{$PRODUCTS_MANUFACTURERS_STREET_ADD}
</div>
</div>
{/if}
{if $PRODUCTS_MANUFACTURERS_ZIP != '' || $PRODUCTS_MANUFACTURERS_CITY != ''}
<div class="flex-item flex100">
<div class="w50 text-right">
{$txt.manufacturers_zip}
</div>
<div class="w50 text-left">
{$PRODUCTS_MANUFACTURERS_ZIP} {$PRODUCTS_MANUFACTURERS_CITY}
</div>
</div>
{/if}
{if $PRODUCTS_MANUFACTURERS_STATE != ''}
<div class="flex-item flex100">
<div class="w50 text-right">
{$txt.manufacturers_state}
</div>
<div class="w50 text-left">
{$PRODUCTS_MANUFACTURERS_STATE}
</div>
</div>
{/if}
{if $PRODUCTS_MANUFACTURERS_PHONE != ''}
<div class="flex-item flex100">
<div class="w50 text-right">
{$txt.manufacturers_phone}
</div>
<div class="w50 text-left">
{$PRODUCTS_MANUFACTURERS_PHONE}
</div>
</div>
{/if}
{if $PRODUCTS_MANUFACTURERS_MAIL != ''}
<div class="flex-item flex100">
<div class="w50 text-right">
{$txt.manufacturers_mail}
</div>
<div class="w50 text-left">
{$PRODUCTS_MANUFACTURERS_MAIL}
</div>
</div>
{/if}
{if $PRODUCTS_MANUFACTURERS_SECURITY != ''}
<div class="flex-item flex100">
<div class="w50 text-right">
{$txt.manufacturers_security}
</div>
<div class="w50 text-left">
{$PRODUCTS_MANUFACTURERS_SECURITY}
</div>
</div>
{/if}
{if $PRODUCTS_MANUFACTURERS_ADDITION != ''}
<div class="flex-item flex100">
<div class="w50 text-right">
{$txt.manufacturers_addition}
</div>
<div class="w50 text-left">
{$PRODUCTS_MANUFACTURERS_ADDITION}
</div>
</div>
{/if}
{if $PRODUCTS_MANUFACTURERS_DESC != ''}
<div class="flex-item flex100">
<div class="w50 text-right">
{$txt.manufacturers_desc}
</div>
<div class="w50 text-left">
{$PRODUCTS_MANUFACTURERS_DESC}
</div>
</div>
{/if}
{/if}
{/block} |