Laura

Hi again, could I also ask for some advice on how to show the coupon code itself on the Checkout page <% if $IsPastStep('discount') %> <% with $Cart %> <p>$Code</p> <% end_with %><% end_if %> ? I have tried but it doesn't show the coupon code itself.

Laura

I have installed the Discounts module for my shop but I don't know how to show the coupon code on the account page for a particular customer. Anyone able to help me?

Bridget Gray

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

wilr

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

wilr

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: https://silverstripe-shop.readthedocs.io/en/stable/en/02_Customisation/01_Recipes/Featured_Products/ 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()