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.
Great thank you for the link….:)
much appreciated.
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
What exactly do you want to do, and where? Is this for the single store page, or in the admin area?
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
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.