Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Just set up only one location, service and worker and it won’t show up as a choice in the form.

    Also if you don’t want it to show up in booking overview, replace file: /wp-content/plugins/easy-appointments/src/templates/booking.overview.tpl
    with this code:

    <script type="text/template" id="ea-appointments-overview">
    	<small><%= settings['trans.overview-message'] %></small>
    	<table>
    		<tbody>
    			<% if (settings['trans.location'] !== '') { %>
    			<tr class="row-location">
    				<td class="ea-label"><%= settings['trans.location'] %></td>
    				<td class="value"><%= data.location %></td>
    			</tr>
    			<% } %>
    			<% if (settings['trans.service'] !== '') { %>
    			<tr class="row-service">
    				<td class="ea-label"><%= settings['trans.service'] %></td>
    				<td class="value"><%= data.service%></td>
    			</tr>
    			<% } %>
    			<% if (settings['trans.worker'] !== '') { %>
    			<tr class="row-worker">
    				<td class="ea-label"><%= settings['trans.worker'] %></td>
    				<td class="value"><%= data.worker %></td>
    			</tr>
    			<% } %>
    			<% if (settings['price.hide'] !== '1') { %>
    			<tr class="row-price">
    				<td class="ea-label"><%= settings['trans.price'] %></td>
    				<td class="value"><%= data.price %> <%= settings['trans.currency'] %></td>
    			</tr>
    			<% } %>
    			<tr class="row-datetime">
    				<td class="ea-label"><%= settings['trans.date-time'] %></td>
    				<td class="value"><%= data.date %> <%= data.time %></td>
    			</tr>
    		</tbody>
    	</table>
    </script>

    If you delete service, location or worker label in “customize” section in settings, it won’t show up in booking overview.

    Regards,
    Nemanja

    @nemanja,

    changing the template file is not good practice because new version will override that change. I will improve that part in new version so you can hide that fields.

    Best regards,
    Nikola

    Hi Amazing2061,

    I have implemented option for hiding location or service or worker. It have similar approach as Nemanja wrote. You need to name it with underscore like you have one service called _dummy or _service. This will hide that field from selection and overview in frontend.

    Best regards,
    Nikola

    Thread Starter amazing2061

    (@amazing2061)

    Thank you for the quick fix. I deleted the old Easy Appointments and reinstalled the new one. However the old data I entered for services, workers, connection and location is still appearing. I cannot delete them. when i do delete and refresh they all come back. I tried your compatibility mode under customize but still cannot delete the old stuff. Please advise.

    Thread Starter amazing2061

    (@amazing2061)

    OK, after multiple refresh, deletes and loads I was able to clear all. As per your instructions I chose to hide location and worker. When the form loads the rotating animated gif is on continuously over the calendar. I cannot select a date. The Personal Info fields all appear 3 times each on the form.

    By the way what do I do with the connections? If I don’t have anything for location and worker how should I complete that section? Please advise

    @amazing2061

    I have similar problems, the author seems to be working on it..

    As for now, you can get rid of the repeating personal info fields by deleting the plugin, and then login to your database and delete all tables that have ‘_ea’ in their name.
    Then install plugin again.
    As for the connections, build one connection for _dummy _service _location for all dates and you should be able to select a date in frontend.

    Hi all,

    there is new version with uninstall script, so from new version there will be removal of database tables.

    Best regards,
    Nikola

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Field Removal’ is closed to new replies.