Bridget Gray

Thank you very much for pointing me in the right direction. I got it working.


or if you don’t use a use then SilverShop\Page\ProductCategory::get()


You’re trying to call Get on the controller rather than the model

Bridget Gray

Hi there. I need some help to pull the FeaturedProducts through to a custom IndexPage/IndexPageController template located in the App and Themes directory. I tried what was suggested here: It doesn't work for me on SS4.3. I tried formatting the code to something similar that I have use to pull my Contact form through to other template pages but I just can't seem to get it right. Here is what I have managed so far: public function FeaturedProducts() { $products = \SilverShop\Model\Product\OrderItem::get(); $ProductCategory = \silvershop\Page\ProductCategory::get(); $ProductCategorycontroller = \silvershop\Page\ProductCategorycontroller::get();

        $products = $ProductCategory->ProductCategory()->filter(['Featured' => 1, 'AllowPurchase' => 1])->First();

        return $ProductCategory;


I get this error message: [Emergency] Uncaught Error: Call to undefined method SilverShop\Page\ProductCategoryController::get()


It's still in the sitetree db, but hidden from the actual tree


is there a way to configure silvershop to not have say 3000 products in the sitetree?