• Hi there…..great plugin…:)

    Is it possible to add custom field beside the start time…..for example we want

    Monday 9am – 12pm – Mary Smith.
    Monday 2pm – 4pm – David Smith.

    and the persons name will be a clickable email link to email the teacher….

    hope i explained it well.

    Thank you in advance.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Both can be done, but do require you to be comfortable with code.

    How to add custom fields is explained here. How to make the names clickable require you to in this step wrap the names in an email link.

    Thread Starter stephenm

    (@stephenm)

    Great thank you for the link….:)

    much appreciated.

    Thread Starter stephenm

    (@stephenm)

    Hi there….just a follow up…

    add a text box beside the opening hours…..so we have
    <?php echo $this->opening_hours_dropdown( $args, ‘close’ ); ?>

    can i do something the same to target the text input function ?

    <?php echo $this->text_input( $args, ‘trainer’ ); ?>

    public function text_input( $args ) {

    }

    Thank you in advance

    Plugin Author Tijmen Smit

    (@tijmensmit)

    What exactly do you want to do, and where? Is this for the single store page, or in the admin area?

    Thread Starter stephenm

    (@stephenm)

    in admin…..I want to add a custom field beside the end closing time so for example….
    opening time 9am-10am – Mary Smith………Mary Smith is the trainer for that time slot…!! so the custom field would be called “trainer”…..hope that explains it.

    S

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Ah, I seem to have misread the initial question.

    Adding custom fields directly after the hours is a bit tricky. What you want will require you to modify the core code itself and change the search results / single store page template, so there’s no easy way to make this work.

    The structure of the $args looks like this if you print it.

    Array
    (
        [key] => zip
        [data] => Array
            (
                [label] => Zip Code
            )
    
    )

    edit: you could instead of changing the core code use jQuery to add the additional input fields after the hours.

    • This reply was modified 6 years, 6 months ago by Tijmen Smit.
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Additional fields on view start times’ is closed to new replies.