+ {if $folder_id}
+ {loop name="folder" type="folder" id=$folder_id limit="1"}
+
+
+
+ {ifloop rel="folder_content"}
+
+ {loop name="folder_content" type="content" folder="$ID"}
+ -
+
+ {ifloop rel="content_thumbnail"}
+
+ {loop name="content_thumbnail" type="image" width="369" height="247" content=$ID limit="1"}
+
+ {/loop}
+
+
+ {/ifloop}
- {loop name="folder" type="folder" id="{folder attr="id"}"}
- {$TITLE}
- {if $CHAPO}
-
- {$CHAPO}
-
- {/if}
- {if $DESCRIPTION}
-
- {$DESCRIPTION nofilter}
-
- {/if}
+
+
-
-
- {ifloop rel="folder_content"}
-
- {/ifloop}
- {elseloop rel="folder_content"}
-
- {intl l="No Content in this folder."}
+
+
+ {/loop}
+
+ {/ifloop}
+ {elseloop rel="folder_content"}
+
+ {intl l="No Contents in this folder."}
+
+ {/elseloop}
+
+
+
+
+ {if $POSTSCRIPTUM}
+
+ {$POSTSCRIPTUM}
+
+ {/if}
+ {/loop}
+ {else}
+ {ifloop rel="folders"}
+
+ {loop name="folders" type="folder"}
+ -
+
+
+
+ {if $CHAPO}
+
+ {$CHAPO}
+
+ {/if}
- {/elseloop}
-
-
-
-
- {if $POSTSCRIPTUM}
-
- {$POSTSCRIPTUM}
-
- {/if}
- {/loop}
-
+
+
+ {/loop}
+
+ {/ifloop}
+ {/if}
{/block}
diff --git a/templates/frontOffice/default/includes/empty.html b/templates/frontOffice/default/includes/empty.html
new file mode 100644
index 000000000..d73d101ef
--- /dev/null
+++ b/templates/frontOffice/default/includes/empty.html
@@ -0,0 +1,10 @@
+{if ! $title_empty}
+ {$title={intl l="The page cannot be found"}}
+{/if}
+
{$title}
+
+{if ! $message_empty}
+
+ {$message_empty nofilter}
+
+{/if}
\ No newline at end of file
diff --git a/templates/frontOffice/default/product.html b/templates/frontOffice/default/product.html
index 1591bf276..0e4a06c48 100644
--- a/templates/frontOffice/default/product.html
+++ b/templates/frontOffice/default/product.html
@@ -1,18 +1,24 @@
{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 attr="id"}" limit="1" with_prev_next_info="1"}
+ {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 attr="id"}" limit="1" with_prev_next_info="1"}
+ {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}
@@ -20,7 +26,7 @@
{* Breadcrumb *}
{block name='no-return-functions' append}
{$breadcrumbs = []}
- {loop type="product" name="product_breadcrumb" id="{product attr="id"}" limit="1" with_prev_next_info="1"}
+ {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}
@@ -30,30 +36,26 @@
{* Content *}
{block name="main-content"}
-
- {$product_id={product attr="id"}}
- {$pse_count=1}
- {$check_availability={config key="check-available-stock" default="1"}}
-
+ {if $product_id}
- {loop name="product.details" type="product" id="{product attr="id"}" limit="1" with_prev_next_info="1"}
+ {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}
*}
+
{ifloop rel="image.main"}
@@ -108,7 +110,7 @@
{$TITLE}
{if $REF}{intl l='Ref.'}: {$REF}{/if}
- {loop name="brand_info" type="brand" product="{$ID}"}
+ {loop name="brand_info" type="brand" product="{$ID}" limit="1"}
{$TITLE}
{/loop}
@@ -206,7 +208,6 @@
{strip}
{capture "additional"}
{ifloop rel="feature_info"}
-
{loop name="feature_info" type="feature" product="{$ID}"}
{ifloop rel="feature_value_info"}
@@ -220,14 +221,13 @@
{/ifloop}
{/loop}
-
{/ifloop}
{/capture}
{/strip}
{strip}
{capture "brand_info"}
- {loop name="brand_info" type="brand" product="{$ID}"}
+ {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"}
@@ -295,22 +295,21 @@
{/loop}
{$pse[$ID]["combinations"]=$pse_combination}
{/loop}
+
-{if $pse_count > 1}
-{/if}
@@ -329,9 +328,12 @@
{/loop}
+ {else}
+
+
+ {include file="includes/empty.html"}
+
+
+ {/if}
{/block}
-{block name="javascript-initialization"}
-
-
-{/block}