{extends file="layout.tpl"} {block name="init"} {$product_id={product attr="id"}} {$pse_count=1} {$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}]} {/loop} {$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL}]} {/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"}
{$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 attr="id"}"} {/loop} {/loop} *}

{$TITLE}

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

{$TITLE}

{/loop} {if $POSTSCRIPTUM}

{$POSTSCRIPTUM}

{/if}
{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_number number="{$TAXED_PROMO_PRICE}"} {currency attr="symbol"} {intl l="Regular Price:"} {format_number number="{$TAXED_PRICE}"} {currency attr="symbol"}
{form name="thelia.cart.add" }
{form_hidden_fields form=$form} {form_field form=$form field="append"} {/form_field} {if $form_error}
{$form_error_message}
{/if} {form_field form=$form field="product"} {/form_field} {* pse *} {form_field form=$form 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"}
{/loop}
{/if}
{form_field form=$form field='quantity'}
{if $error } {$message} {elseif $value != "" && !$error} {/if}
{/form_field}
{/form}
{strip} {capture "additional"} {ifloop rel="feature_info"} {/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"}

{$TITLE}

{/loop} {if $CHAPO}
{$CHAPO}
{/if} {if $DESCRIPTION}
{$DESCRIPTION nofilter}
{/if} {if $POSTSCRIPTUM} {$POSTSCRIPTUM} {/if} {/loop} {/capture} {/strip}

{$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}
{* javascript confiuguration to display pse *} {$pse=[]} {$combination_label=[]} {$combination_values=[]} {loop name="pse" type="product_sale_elements" product="{product attr="id"}"} {$pse[$ID]=["id" => $ID, "isDefault" => $IS_DEFAULT, "isPromo" => $IS_PROMO, "isNew" => $IS_NEW, "ref" => "{$REF}", "ean" => "{$EAN}", "quantity" => {$QUANTITY}, "price" => "{format_number number="{$TAXED_PRICE}"} {currency attr="symbol"}", "promo" => "{format_number number="{$TAXED_PROMO_PRICE}"} {currency attr="symbol"}" ]} {$pse_combination=[]} {loop name="combi" type="attribute_combination" product_sale_elements="$ID"} {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}
{/loop}
{else}
{include file="includes/empty.html"}
{/if} {/block}