Jump to:

2084 Posts in 1005 Topics by 453 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Displaying all product groups on one page

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, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 862 Views
  • powla
    Community Member
    11 Posts

    Displaying all product groups on one page Link to this post


    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 ProductGroup.ss template without any luck. (Supposed to look like this: http://www.chilu.com/cupcakebakery/ )

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

    My ProductGroup.ss 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 %>

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.