Jump to:

2088 Posts in 1008 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » SS-Shop: how display products with zero price - solved

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: 345 Views
  • suoko
    Avatar
    Community Member
    4 Posts

    SS-Shop: how display products with zero price - solved Link to this post

    In shop/code/product/ProductCategory.php

    if (self::config()->must_have_price){
             $products = $products->filter("BasePrice:GreaterThan", 0);
          }

    changed to

    if (self::config()->must_have_price){
             $products = $products->filter("BasePrice:GreaterThan", -1);
          }

    345 Views
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.