Jump to:

2088 Posts in 1007 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Why Does ChildGroups return null?

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: 540 Views
  • biapar
    Forum Moderator
    435 Posts

    Why Does ChildGroups return null? Link to this post

    Good Morning

    I've a grandparent group with childs product groups.

    function ChildGroups() {
        //$p = $this->ID();
           $filter = "ShowInMenus = 1 AND ParentID = " . $this->ID;
          return DataObject::get("ProductGroup", $filter);

    return NULL. Why?

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.