Support forumCategory: QuestionsHow to reorder so as to select Worker – Service – Date?
AdiP asked 2 years ago

Presently, the order of selection is Service – Worker – Date.
I have 2 workers with same 2 services, but different price depending on worker. I want the first selector to be Worker and after that only the relevant Service connected to that particular Worker has to be shown.
How should I do that?

2 Answers
Nikola Loncar Staff answered 2 years ago

Hi, atm you can only do that by altering template file from EA plugin. If you want to do that I can guide you?

Best regards,
Nikola

AdiP replied 2 years ago

That’d be great. Please do guide me. I am not a techie, but I will try my best to do it myself.

Nikola Loncar Staff answered 2 years ago

Hi, you need to find templates/ea_bootstrap.tpl.php inside EA Plugin folder and there replace service and worker sections. So this holds both fields, you just need to flip places:

<!-- WORKER -->
<div class="step form-group">
<div class="block"></div>
<label class="ea-label col-sm-4 control-label">
<?php _e($this->options->get_option_value("trans.service"), 'easy-appointments'); ?>
</label>
<div class="col-sm-8">
<select name="service" data-c="service" class="filter form-control"
data-currency="<?php echo $this->options->get_option_value("trans.currency"); ?>">
<?php $this->get_options('services', $location_id, $service_id, $worker_id) ?>
</select>
</div>
</div>
<!-- SERVICE -->
<div class="step form-group">
<div class="block"></div>
<label class="ea-label col-sm-4 control-label">
<?php _e($this->options->get_option_value("trans.worker"), 'easy-appointments'); ?>
</label>
<div class="col-sm-8">
<select name="worker" data-c="worker" class="filter form-control">
<?php $this->get_options('staff', $location_id, $service_id, $worker_id) ?>
</select>
</div>
</div>


Best regards,
Nikola

AdiP replied 2 years ago

I tried my best, but couldn’t find the settings you were referring to. I’ll find an expert to do that for me. Thanks anyway! And do consider including this as a feature in your next update!

Nikola Loncar Staff replied 2 years ago

Hi, if you want I can do that for you for small fee. 🙂

Best regards,
Nikola