Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules /

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

SS-Shop: how display products with zero price - solved


Reply


2 Posts   411 Views

Avatar
suoko

Community Member, 4 Posts

11 May 2014 at 9:10am

Edited: 11/05/2014 9:55am

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);
      }

Avatar
Jedateach

Forum Moderator, 232 Posts

7 October 2014 at 9:03am

Edited: 07/10/2014 9:03am

Hey Suko,
just wondering why you didn't instead set your yaml configuration as such?:

ProductCategory:
must_have_price: false