Hi there,
The site I am working on using Ecommerce 0.8.1 and SS 2.4.6.
I want the top level product group - to be the first page, introducing our online shop and what type of products they can find here.
But I do not want any lower product level group products to be displayed on this page. Just only on the next level group pages.
How do I achieve this?
Products <<--- do not want products displayed on this product group page - just the text
-2nd product group <<--- only want products displayed on the this level product group pages
- Product in 2nd product group <<- Normal product page, displaying normally
- Another product in 2nd product group
- 3rd product group
- product in 3rd product group
I hope this makes sense to you as it does to me.
Here is my Layout/ProductGroup.ss page
<h2 class="pageTitle">
$Title
</h2>
<% if Content %>
<div class="typography">
$Content
</div>
<% end_if %>
<% if Products %>
<div id="Products" class="category">
<div class="resultsBar typography">
<% if SortLinks %><span class="sortOptions">Sort by <% control SortLinks %><a href="$Link" class="sortlink $Current">$Name</a> <% end_control %></span><% end_if %>
</div>
<div class="clear"><!-- --></div>
<div id="productList">
<% control Products %>
<% include ProductGroupItem %>
<% end_control %>
</div>
<div class="clear"><!-- --></div>
</div>
<% end_if %>
<% if IsTopLevel %>
<% if ChildGroups %>
<% if ChildProducts %>
<ul class="list first">
<% control ChildProducts %>
<% end_control %>
</ul>
<% end_if %>
<% control ChildGroups %>
<% if ChildGroups %>
<h3 class="productGroupTitle"><a href="$Link" title="<% sprintf(_t("VIEWGROUP","View the product group "%s""),$Title) %>">$Title</a></h3>
<ul class="list first">
<% control ChildGroups %>
<% if ChildProducts %>
<% end_if %>
<% end_control %>
</ul>
<% end_if %>
<% end_control %>
<% else %>
<% if ChildProducts %>
<ul class="list first">
<% control ChildProducts %>
<% end_control %>
</ul>
<% end_if %>
<% end_if %>
<% end_if %>
I eagerly look forward to hearing from someone on this.
Kind Regards
KP