{extends file="layout.tpl"} {block name="init"} {$product_id={product attr="id"}} {$pse_count=1} {$product_virtual={product attr="virtual"}} {$check_availability={config key="check-available-stock" default="1"}} {/block} {* Body Class *} {block name="body-class"}page-product{/block} {* Page Title *} {block name='no-return-functions' append} {loop name="product.seo.title" type="product" id=$product_id limit="1" with_prev_next_info="1"} {$page_title = $META_TITLE} {/loop} {/block} {* Meta *} {block name="meta"} {loop name="product.seo.meta" type="product" id=$product_id limit="1" with_prev_next_info="1"} {include file="includes/meta-seo.html"} {/loop} {/block} {* Breadcrumb *} {block name='no-return-functions' append} {$breadcrumbs = []} {loop type="product" name="product_breadcrumb" id=$product_id limit="1" with_prev_next_info="1"} {loop name="category_path" type="category-path" category={$DEFAULT_CATEGORY}} {$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]} {/loop} {$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]} {/loop} {/block} {* Content *} {block name="main-content"} {if $product_id}
{loop name="product.details" type="product" id=$product_id limit="1" with_prev_next_info="1" with_prev_next_visible="1"}
{$pse_count=$PSE_COUNT} {* Use the meta tag to specify content that is not visible on the page in any way *} {loop name="brand.feature" type="brand" product={$ID}} {/loop} {* Add custom feature if needed {loop name="isbn.feature" type="feature" product={$ID} title="isbn"} {loop name="isbn.value" type="feature_value" feature={$ID} product=$product_id} {/loop} {/loop} *} {hook name="product.top" product={$ID}} {ifhook rel="product.gallery"} {hook name="product.gallery" product={$ID}} {/ifhook} {elsehook rel="product.gallery"}
{ifloop rel="image.main"}
{loop type="image" name="image.main" product={$ID} width="560" height="445" resize_mode="borders" limit="1"} {/loop}
{/ifloop} {ifloop rel="image.carousel"}

{loop name="image.carousel" type="image" product={$ID} width="560" height="445" resize_mode="borders" limit="5"}
- {loop type="image" name="image.thumbs" id={$ID} product="$OBJECT_ID" width="118" height="85" resize_mode="borders"} {/loop}
{/loop}

{ifloop rel="image.carouselsup"}

{loop name="image.carouselsup" type="image" product={$ID} width="560" height="445" resize_mode="borders" offset="5"}
- {loop type="image" name="image.thumbssup" id={$ID} product="$OBJECT_ID" width="118" height="85" resize_mode="borders"} {/loop}
{/loop}

{/ifloop}
{ifloop rel="image.carouselsup"} {/ifloop}
{/ifloop}
{/elsehook}
{hook name="product.details-top" product={$ID}}

# {$TITLE}

{if $REF}{intl l='Ref.'}: {$REF}{/if} {loop name="brand_info" type="brand" product={$ID} limit="1"}

{$TITLE}

{/loop} {if $POSTSCRIPTUM}

{$POSTSCRIPTUM}

{/if}
{loop type="sale" name="product-sale-info" product={$ID} active="1"}

{$SALE_LABEL}

{intl l="Save %amount%sign on this product" amount={$PRICE_OFFSET_VALUE} sign={$PRICE_OFFSET_SYMBOL}}

{if $HAS_END_DATE}

{intl l="This offer is valid until %date" date={format_date date=$END_DATE output="date"}}

{/if}
{/loop}
{intl l="Availability"}: {intl l='In Stock'} {intl l='Out of Stock'}
{loop type="category" name="category_tag" id=$DEFAULT_CATEGORY} {/loop} {* List of condition : NewCondition, DamagedCondition, UsedCondition, RefurbishedCondition *} {* List of currency : The currency used to describe the product price, in three-letter ISO format. *} {intl l="Special Price:"} {format_money number=$TAXED_PROMO_PRICE symbol={currency attr="symbol"}} {if $SHOW_ORIGINAL_PRICE} {intl l="Regular Price:"} {format_money number=$TAXED_PRICE} {/if}
{intl l="Sorry but this combination does not exist."}
{form name="thelia.cart.add" } {form_hidden_fields} {form_field field="append"} {/form_field} {form_field form=$form field="success_url"} {/form_field} {if $form_error}
{$form_error_message}
{/if} {form_field field="product"} {/form_field} {* pse *} {form_field field='product_sale_elements_id'} {/form_field} {if $pse_count > 1} {* We have more than 1 combination: custom form *}
{loop name="attributes" type="attribute" product="$product_id" order="manual"}
{$TITLE}
{/loop}
{intl l="Options"}
{/if}
{form_field field='quantity'}
{$label} {if $error } {$message} {elseif $value != "" && !$error} {/if}
{/form_field}
{/form} {hook name="product.details-bottom" product={$ID}}
{strip} {capture "additional"} {ifloop rel="feature_info"}

{loop name="feature_info" type="feature" product={$ID}} {ifloop rel="feature_value_info"}
- {$TITLE} : {loop name="feature_value_info" type="feature_value" feature={$ID} product=$product_id} {if $LOOP_COUNT > 1}, {else} {/if} {if $IS_FREE_TEXT == 1}{$FREE_TEXT_VALUE}{else}{$TITLE}{/if} {/loop}
{/ifloop} {/loop}

{/ifloop} {/capture} {/strip} {strip} {capture "brand_info"} {loop name="brand_info" type="brand" product={$ID} limit="1"}

{$TITLE}

{loop name="brand.image" type="image" source="brand" id={$LOGO_IMAGE_ID} width=218 height=146 resize_mode="borders"}

{/loop} {if $CHAPO}
{$CHAPO}
{/if} {if $DESCRIPTION}
{$DESCRIPTION nofilter}
{/if} {if $POSTSCRIPTUM} {$POSTSCRIPTUM} {/if} {/loop} {/capture} {/strip} {strip} {capture "document"} {ifloop rel="document"}

{loop name="document" type="document" product=$ID visible="yes"}
- {$TITLE}
{/loop}

{/ifloop} {/capture} {/strip}
{hookblock name="product.additional" product=$product_id fields="id,class,title,content"}

{$DESCRIPTION|default:'N/A' nofilter}

{if $smarty.capture.additional ne ""}
{$smarty.capture.additional nofilter}
{/if} {if $smarty.capture.brand_info ne ""}
{$smarty.capture.brand_info nofilter}
{/if} {if $smarty.capture.document ne ""}
{$smarty.capture.document nofilter}
{/if} {forhook rel="product.additional"}
{$content nofilter}
{/forhook}
{/hookblock}
{hook name="product.bottom" product={$ID}} {* javascript confiuguration to display pse *} {$pse=[]} {$combination_label=[]} {$combination_values=[]} {loop name="pse" type="product_sale_elements" product=$product_id} {$pse[$ID]=["id" => $ID, "isDefault" => $IS_DEFAULT, "isPromo" => $IS_PROMO, "isNew" => $IS_NEW, "ref" => {$REF}, "ean" => {$EAN}, "quantity" => {$QUANTITY}, "price" => {format_money number=$TAXED_PRICE}, "promo" => {format_money number=$TAXED_PROMO_PRICE} ]} {$pse_combination=[]} {loop name="combi" type="attribute_combination" product_sale_elements="$ID" order="manual"} {if ! $combination_label[$ATTRIBUTE_ID]} {$combination_label[$ATTRIBUTE_ID]=["name" => {$ATTRIBUTE_TITLE}, "values" => []]} {/if} {if ! $combination_values[$ATTRIBUTE_AVAILABILITY_ID]} {$combination_label[$ATTRIBUTE_ID]["values"][]=$ATTRIBUTE_AVAILABILITY_ID} {$combination_values[$ATTRIBUTE_AVAILABILITY_ID]=[{$ATTRIBUTE_AVAILABILITY_TITLE}, $ATTRIBUTE_ID]} {/if} {$pse_combination[]=$ATTRIBUTE_AVAILABILITY_ID} {/loop} {$pse[$ID]["combinations"]=$pse_combination} {/loop}

{if $HAS_PREVIOUS == 1} {loop type="product" name="prev_product" id={$PREVIOUS}}
- {intl l="Previous product"}
{/loop} {/if} {if $HAS_NEXT == 1} {loop type="product" name="next_product" id={$NEXT}}
- {intl l="Next product"}
{/loop} {/if}

{/loop}
{else}
{include file="includes/empty.html"}
{/if} {/block} {block name="stylesheet"} {hook name="product.stylesheet"} {/block} {block name="after-javascript-include"} {hook name="product.after-javascript-include"} {/block} {block name="javascript-initialization"} {hook name="product.javascript-initialization"} {/block}