Customize Add Listing Form to also Assign "Stores"


  • Mauricio
    Newbie
     
    5 points

    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

    Adding notify by email


    Marie
    Marie
    Super Guru
     
    1,293 points

    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

    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
    Titan
     
    653 points

    @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

    Awesome, just made my day.

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


    JamesD
    JamesD
    Titan
     
    653 points

    You’re welcome, glad it helped.


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

You must be logged in to reply to this topic.