• Resolved webam

    (@webam)


    Hello I’m trying in every way to make this feature work. But it does not work. I hope it’s not just this, because altirmenti would be an absolutely primitive option of 20 years ago.

    I asked you how to insert custom fields for different categories.

    You replied to install the file preselect-ad-category.php and I did it and in fact now when I want to insert an ad I first select the category.

    Ok so far so good, but it’s the rest that does not work.

    The custom fields extension allows you to set only 1 default configuration and only that one will be used.

    If I set custom fields for the cars category and set it as default. Any category will use those custom fields.

    On the other hand, if you do not set the “auto” custom fields as default, there will never be any fields in the cars category or in the other categories

    So if I set different custom fields for example also on the category “properties” will not be shown unless the default imposed. But again if you set default, all categories will have those custom fields (and of course that’s not good)

    I have also set for both categories, the setting to use the schema I created. But it does not work is useless

    I do not think you do not know it’s not working, it’s impossible that you did not notice.

    Or I have to configure something else you did not tell me.

    I also created a video to show what I say.

    https://www.youtube.com/watch?v=ihtzdOigLxo&feature=youtu.be

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    There seems to be a bug occurring only in some special case when no params to the [adverts_add] are passed i made an update for the preselect-ad-category.php file.

    You can download the update here https://github.com/simpliko/wpadverts-snippets/blob/master/preselect-ad-category/preselect-ad-category.php, replace the old file and see if it works.

    Other than that you seem to have everything setup correctly.

    Thread Starter webam

    (@webam)

    perfect, now it works ??

    But I wanted to ask you one thing: if a user creates an announcement and then after a while decides to change it, he could also change category, but I tried and if I change category do not update the custom fields of the new category selected.

    There is no way to update custom fields in real time even when editing an existing ad?

    Plugin Author Greg Winiarski

    (@gwin)

    Right now the [adverts_add] form will not change automatically when you change the category in the Advert Category dropdown, this is why the [adverts_add] has first a screen with category selection as changing the category in the form does not show/hide fields.

    Thread Starter webam

    (@webam)

    With custom work and pay, you can add this features?

    Plugin Author Greg Winiarski

    (@gwin)

    I am afraid this is not something we can do with custom programming as changing a form scheme requires the whole form to be reloaded it is more than just hiding and showing some fields.

    Also, with some fields which are using JavaScript (like the description), it would not be possible to live load them when category is changed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom field and preselect category no work’ is closed to new replies.