88 lines
2.3 KiB
HTML
Executable File
88 lines
2.3 KiB
HTML
Executable File
Here you are : {navigate to="current"}<br />
|
|
From : {navigate to="return_to"}<br />
|
|
Index : {navigate to="index"}<br />
|
|
|
|
<h1>Product page</h1>
|
|
|
|
{ifloop rel="product"}
|
|
|
|
{loop type="product" name="product" current="true"}
|
|
|
|
<div style="border: dashed 2px red; padding: 20px; margin: 10px;">
|
|
<h2>PRODUCT (#ID) : #REF</h2>
|
|
<h3>#TITLE</h3>
|
|
<p>#DESCRIPTION</p>
|
|
|
|
{ifloop rel="acc"}
|
|
<h4>Accessories</h4>
|
|
<ul>
|
|
{loop name="acc" type="accessory" product="#ID" order="accessory"}
|
|
<li><a href="#URL">#REF</a></li>
|
|
{/loop}
|
|
</ul>
|
|
{/ifloop}
|
|
{elseloop rel="acc"}
|
|
<h4>No accessory</h4>
|
|
{/elseloop}
|
|
|
|
{ifloop rel="prod_ass_cont"}
|
|
<h4>Associated Content</h4>
|
|
<ul>
|
|
{loop name="prod_ass_cont" type="associated_content" product="#ID" order="associated_content"}
|
|
<li>#TITLE</li>
|
|
{/loop}
|
|
</ul>
|
|
{/ifloop}
|
|
{elseloop rel="prod_ass_cont"}
|
|
<h4>No associated content</h4>
|
|
{/elseloop}
|
|
|
|
{ifloop rel="ft"}
|
|
<h4>Features</h4>
|
|
<ul>
|
|
{assign var=current_product value=#ID}
|
|
{loop name="ft" type="feature" order="manual" product="#ID"}
|
|
<li>
|
|
<strong>#TITLE</strong> :
|
|
{loop name="ft_v" type="feature_value" product="{$current_product}" feature="#ID"}
|
|
#TITLE / #PERSONAL_VALUE
|
|
{/loop}
|
|
</li>
|
|
{/loop}
|
|
</ul>
|
|
{/ifloop}
|
|
{elseloop rel="ft"}
|
|
<h4>No feature</h4>
|
|
{/elseloop}
|
|
|
|
<h4>Product sale elements</h4>
|
|
|
|
{assign var=current_product value=#ID}
|
|
{loop name="pse" type="product_sale_elements" product="#ID"}
|
|
<div style="border: solid 2px darkorange; padding: 5px; margin: 5px;">
|
|
{loop name="combi" type="attribute_combination" product_sale_elements="#ID"}
|
|
#ATTRIBUTE_TITLE = #ATTRIBUTE_AVAILABILITY_TITLE<br />
|
|
{/loop}
|
|
<br />#WEIGHT g
|
|
<br /><strong>{if #IS_PROMO == 1} #PROMO_PRICE € (instead of #PRICE) {else} #PRICE € {/if}</strong>
|
|
<br /><br />
|
|
Add
|
|
<select>
|
|
{for $will=1 to #QUANTITY}
|
|
<option>{$will}</option>
|
|
{/for}
|
|
</select>
|
|
to my cart
|
|
</ul>
|
|
</div>
|
|
{/loop}
|
|
|
|
</div>
|
|
|
|
{/loop}
|
|
|
|
{/ifloop}
|
|
|
|
{elseloop rel="product"}
|
|
<h2>Produit introuvable !</h2>
|
|
{/elseloop} |