• Resolved johndoe01

    (@johndoe01)


    Greetings.

    I have an issue. I have ser 4 forem using the Custom Fields Paid Addon, however…

    My Client wants a “master” Form for the Dashboard’s site so he can Place Ads Bypassing the Payment Processor. The problem is that the “Master” form which has all the options that are set for all the 4 tiers of ads (independent forms and options). The issue is that i set such form as Default but in the Administration it doesn’t apply. Reading back the documentation such setting is applied on the Shortcode based pages but not the admin.

    Is there a way that i can enable such forms for the admin module or should I build the Custom Fields by hand (as documented in the mode without the paid addon)?

    Despite the final customers does not get into the dashboard at all, I’m a bit doubtful since i’m not sure how to proceed.

    Thanks in advance

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

    (@gwin)

    Hi,
    by default the forms are automatically applied in the frontend only, in the wp-admin / Classifieds / Add New panel, the user needs to first fill the default fields and in the right sidebar select a form scheme, the form will then reload with all the fields in the selected scheme.

    In the next update, we will make a change here so the users will be able to select the form scheme upfront or the default one will load.

    Thread Starter johndoe01

    (@johndoe01)

    Greetings.

    That’s Right. The Scheme selection appears. But it doesn’t apply initially once selected so it needs to be filled on defaults, then saved and then filled with the missing fields.

    Hope that gets implemented on the update.

    EDIT: Despite i fill all the fields, either required or not, every time i save the warning of “Post updated, but some required data is not filled properly.” appears and leaves me thinking where is the failing. And i don’t see anything wrong neither in backend (no red fields marked) or frontend (no warnings)

    Thanks for the answer.

    • This reply was modified 5 years, 7 months ago by johndoe01.
    Plugin Author Greg Winiarski

    (@gwin)

    To force-print the errors open the file wpadverts/includes/admin-post-type.php go to line about 177 and before if ( !$valid ) { add

    
    echo "<pre>";print_r($form);echo "</pre>";exit;
    

    This should print the whole form with the errors and stop the redirection, in the form scheme you should be able to find the errors occurred on saving.

    Thread Starter johndoe01

    (@johndoe01)

    This is completely odd.

    With the code the error is located Here

    
                [advert_category] => Array
                    (
                        [value] => Array
                            (
                            )
    
                        [error] => Array
                            (
                                [0] => Field cannot be empty.
                            )
    
                    )

    But what leaves me thinking are a couple of things:
    First the ad passes anyway, the ad in question is this:
    https://www.racertrader.com/tests/ads/mitsubishi-eclipse-2005/

    Second despite i set the categories in the beginning or later the error remains.
    Even when the selected form has less categories than all at the very beginning.

    How can it throw that error of Category not selected and pass any way since the (admin’s) side initial form has all categories, i set it there, and then when i change to the selected form where there is a group of categories and having it selected, throws that warning?

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    note the error message you are seeing is Post updated, but some required data is not filled properly., as an admin, you can save an Ad without filling all required data the message just informs you that the fields required in the frontend form were not filled.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Custom Fields – “Master” Admin Form’ is closed to new replies.