Ask the community

This is a community support forum where you can ask
questions and interact with other PremiumPress Customers.

Customize Add Listing Form to also Assign "Stores"


  • Mauricio
    Newbie 5 points
    April 17, 2018 at 11:45 am

    Hi Team,

    I’ve seen that it’s possible to configure Categories to show up on the Add Listing Form, but what about Stores?

    That would break a big rework if it’s possible to do so.

    If not, is the only workaround to later the admin to go there and set the store?

    Thanks and Regards,


  • Mauricio
    Newbie 5 points
    April 17, 2018 at 11:45 am

    Adding notify by email

  • Marie
    Marie
    Super Guru 1,747 points
    April 18, 2018 at 6:55 am

    hi,

    by default, no. it wont be displayed to the add listing page

    BUT you can try adding it as a taxonomy field via Theme setup > Listing setup > Custom Field. set Field Type to taxonomy


  • Mauricio
    Newbie 5 points
    April 18, 2018 at 11:42 am

    Marie thanks for your help, although it didn’t work.

    However I might have figured out the beginning on how to create it.

    I checked out the code on add-form.php, on line 598 there is the hook

    hook_add_form_abovebutton

    .
    How could I add the field form and save it on submit?

    Is there another hook to do so?

  • JamesD
    JamesD
    Super Guru 1,345 points
    April 18, 2018 at 8:13 pm

    @Mauricio

    By adding it the way Marie said then it would automatically be added to the form. If it doesn’t, then more than likely something else is going on.

    Hopefully this will help (no audio):
    Unable to display content. Adobe Flash is required.

    https://www.screencast.com/t/MUVQI4jMqeO
    This reply was awarded the best answer by the topic poster.

  • Mauricio
    Newbie 5 points
    April 18, 2018 at 8:45 pm

    Awesome, just made my day.

    Thank you MArie and JAmesD. I made as per the video and worked fine.

  • JamesD
    JamesD
    Super Guru 1,345 points
    April 18, 2018 at 9:10 pm

    You’re welcome, glad it helped.

Viewing 7 posts - 1 through 7 (of 7 total)