Advertisement:

Author Topic: Disable Price field on certain category  (Read 3811 times)

cool

  • Newbie
  • *
  • Posts: 19
Disable Price field on certain category
« on: April 05, 2012, 07:52:39 am »
must needed feature in any classifieds.
Example: for jobs and dating category.

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: Disable Price field on certain category
« Reply #1 on: April 05, 2012, 08:20:45 am »
Hi Cool,

I agree with you this would be a nice feature for the admins to add to osclass. I submitted an feature request over on github. https://github.com/osclass/OSClass/issues/200

Jay

rcweb31

  • Newbie
  • *
  • Posts: 15
Re: Disable Price field on certain category
« Reply #2 on: May 01, 2012, 07:57:33 am »
looking forward to this feature too  :)

cool

  • Newbie
  • *
  • Posts: 19
Re: Disable Price field on certain category
« Reply #3 on: July 25, 2012, 03:15:56 pm »
Missing in version 3.0. please add this feature in 3.1
« Last Edit: July 25, 2012, 03:35:21 pm by cool »

AsianFever

  • Newbie
  • *
  • Posts: 1
Disable Price field on certain category
« Reply #4 on: September 07, 2012, 04:25:25 am »
Hello, did anyone figure out how to put the price field in certain categories only?

maxo

  • Sr. Member
  • ****
  • Posts: 285
Re: Disable Price field on certain category
« Reply #5 on: September 14, 2012, 11:42:26 pm »
Good idea! Check box for admin in category's setting - enable price? yes/no

Until then, I changed the wording of the 'check with seller'. Then in the item posting file I added the text above price field..."if price is irrelevant, leave this empty".

/oc-includes/osclass/helpers/hItems.php around line 1035

    function osc_format_price($price) {
        if ($price == null) return osc_apply_filter ('item_price_null', __('check with seller') ) ;
        if ($price == 0) return osc_apply_filter ('item_price_zero', __('Free') ) ;

Until I figure out a way to disable price fields in category, this one solution. Not ideal...