Jump to content

Comment afficher les caractéristiques sur la fiche produit ?


Recommended Posts

C'est effectivement natif dans le tpl si ce paramètre est sur Oui:

image.png.c52aada1eb1b48cd70d9b6f5cc5dffd3.png

et que votre product.tpl contient cette partie 

		{if isset($features) && $features}
			<!-- Data sheet -->
			<section class="page-product-box">
				<h3 class="page-product-heading">{l s='Data sheet'}</h3>
				<table class="table-data-sheet">
					{foreach from=$features item=feature}
					<tr class="{cycle values="odd,even"}">
						{if isset($feature.value)}
						<td>{$feature.name|escape:'html':'UTF-8'}</td>
						<td>{$feature.value|escape:'html':'UTF-8'}</td>
						{/if}
					</tr>
					{/foreach}
				</table>
			</section>
			<!--end Data sheet -->
		{/if}

 

  • Like 1
Link to comment
Share on other sites

19 hours ago, Eolia said:

C'est effectivement natif dans le tpl si ce paramètre est sur Oui:

image.png.c52aada1eb1b48cd70d9b6f5cc5dffd3.png

et que votre product.tpl contient cette partie 


		{if isset($features) && $features}
			<!-- Data sheet -->
			<section class="page-product-box">
				<h3 class="page-product-heading">{l s='Data sheet'}</h3>
				<table class="table-data-sheet">
					{foreach from=$features item=feature}
					<tr class="{cycle values="odd,even"}">
						{if isset($feature.value)}
						<td>{$feature.name|escape:'html':'UTF-8'}</td>
						<td>{$feature.value|escape:'html':'UTF-8'}</td>
						{/if}
					</tr>
					{/foreach}
				</table>
			</section>
			<!--end Data sheet -->
		{/if}

 

 

En effet,  ce code n'était pas présent dans mon template je l'ai donc ajouté et ça fonctionne. Merci à vous

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...