Advertisement:

Author Topic: .SOLVED item-post .. Disable category - add custom field  (Read 463 times)

apit

  • Newbie
  • *
  • Posts: 27
.SOLVED item-post .. Disable category - add custom field
« on: January 05, 2018, 10:29:20 pm »
Hello,
I want to ask how to disable category selection and add custom fields in the item-post.

I'm worried about it all day, and I do not know the advice anymore. Thanks a lot for help!
« Last Edit: January 06, 2018, 11:48:03 pm by apit »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: item-post .. Disable category - add custom field
« Reply #1 on: January 05, 2018, 11:20:31 pm »
In admin, in the right side go to items/custom fields.

There you can add custom fields and choose the categories in which they will apear. If you want to use those custom fileds as filters, check the option to do so.
Each custom field must have a different name ex custom-field-1 as slug.

Regarding disabling categories, you go to settings and then categopries and you add or rename or delete them.

apit

  • Newbie
  • *
  • Posts: 27
Re: item-post .. Disable category - add custom field
« Reply #2 on: January 06, 2018, 01:53:55 am »
Hi,


yes, but if you banned a category in an administration or delete it, I can not use my own field, and in the addition of the subject I will show up will show "Select Category" if I do not select the category I will not show my own added field

Addition: I've created one main category where I'm showing ads, but I do not want to see "Select Category" if it was set as the main one, so I only use visibility: hidenn in css
« Last Edit: January 06, 2018, 01:55:29 am by apit »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: item-post .. Disable category - add custom field
« Reply #3 on: January 06, 2018, 02:14:09 am »
The custom fields apear only after the category is selected when posting ads.

apit

  • Newbie
  • *
  • Posts: 27
Re: item-post .. Disable category - add custom field
« Reply #4 on: January 06, 2018, 02:24:01 am »

Yes, but if I set one Category as Default or Selected, I can place a custom field in item-post. And "Select Category" on the page to hide

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: item-post .. Disable category - add custom field
« Reply #5 on: January 06, 2018, 02:34:26 am »
I don't understand...how do you set a category as default?

apit

  • Newbie
  • *
  • Posts: 27
Re: item-post .. Disable category - add custom field
« Reply #6 on: January 06, 2018, 03:05:40 am »
instead of "Select category", another category, such as "Cars", will be listed as the default


apit

  • Newbie
  • *
  • Posts: 27
Re: item-post .. Disable category - add custom field
« Reply #8 on: January 06, 2018, 08:15:45 pm »

Fixed In oc-include / osclass / frm / item.form.class.php I edited the line

 51
Code: [Select]
echo '<option value = "">'. $ default_item. '</ option>';


for
Code: [Select]
echo '<option value = "">'. $ default_item == '101'. '</ option>';
¨

then I have hidden in the post post select category .....


now I do not see the category selector, but my own fields are displayed.

Now I need to resolve how I move the fields where I need it. Thanks :)

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: item-post .. Disable category - add custom field
« Reply #9 on: January 06, 2018, 09:44:46 pm »
Quote
I want to ask how to disable category selection and add custom fields in the item-post.

If you would have asked: "How to make a category show by default in item-post?", you would have receive an answer sooner:)

apit

  • Newbie
  • *
  • Posts: 27
Re: item-post .. Disable category - add custom field
« Reply #10 on: January 06, 2018, 11:43:12 pm »
Sorry,  for my bad english, ..... How set as Solved?

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: item-post .. Disable category - add custom field
« Reply #11 on: January 06, 2018, 11:45:52 pm »
Edit your first post from this topic, and put in the title SOLVED

apit

  • Newbie
  • *
  • Posts: 27
Re: .SOLVED item-post .. Disable category - add custom field
« Reply #12 on: January 06, 2018, 11:48:27 pm »
Thanks Man :)