Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Displaying all product groups on one page

Go to End



Community Member, 11 Posts

13 April 2009 at 1:41pm

Edited: 13/04/2009 1:43pm


I'm in the middle of an urgent project whereby I need to display all product groups (and their children) on the one page. Is this possible ? I've tried altering the template without any luck. (Supposed to look like this: )

I'm using: SilverStripe CMS - 2.3.1 & module: ecommerce v5.2

My code that's not working:

<% if IsTopLevel %>
<% if ChildGroups %>
<div class="product_summary">
<% control ChildGroups %>
<% if ChildGroups %>
<h3 class="productGroupTitle"><a href="$Link" title="<% sprintf(_t("VIEWGROUP","View the product group "%s""),$Title) %>">$Title</a></h3>
<ul id="ProductList">
<% control ChildGroups %>
<% if ChildProducts %>
<% include ProductGroupItem %>
<% end_if %>
<% end_control %>
<% end_if %>
<% end_control %>
<% end_if %>
<% end_if %>