Okay
  Public Ticket #2622840
checkbox with link not working
Closed

Comments

  • Biiird Studio started the conversation

    Ha a while ago I wanted to buy the unlimited licence, no way I will do it now.

    Cannot add html a tags (links) in amelia custom field checkbox.

    No freaken way to modify the amelia code via hooks or js actions.

    The plugin is a nightmare to work with for developers.

    Should you buy WPAmelia? NO.


    If I am missing something please point me where I can find any useful info. On amelia documentation there are only obvious things written.

  • Biiird Studio replied

    text in checkbox is also not working, when pasting this, nothing shows up:

    Zgadzam się na wykonanie niniejszej usługi przed upływem terminu do odstąpienia od umowy. Jestem świadomy, że oznacza to utratę przeze mnie prawa do odstąpienia od umowy, o którym mowa w ustawie z dnia 30 maja 2014 r. o prawach konsumenta (Dz.U. 2014 poz. 827 ze zm.)

  • [deleted] replied

    Hello,

    Thanks for your message.

    To answer your first question:

    To add a link to Terms & Conditions, you need to add the "Text Content" custom field, like this:

    7276954973.png

    Then, you need to add a mandatory check-box custom field, where they have to agree with the terms and conditions when they book:

    2016913539.png

    Unfortunately we don't have hooks (action and filters) at the moment. What we have is a few JS hooks that is triggered depends on the view:

    window.beforeAddToCalendarLoaded()
    window.beforeBookingLoaded()
    window.beforeSearchLoaded()
    window.beforeSearchFiltered()
    window.afterSearchFiltered()
    window.beforeConfirmedBooking()
    window.beforeCatalogLoaded()
    window.afterSelectCatalogCategory(object_category)
    window.beforeCatalogCategoryLoaded(object_category)
    window.beforeCatalogServiceLoaded(object_category, object_service)
    window.afterSearchActivateService(object_appointment, object_serviceActive)
    window.afterSearchGoToSecondStep(object_appointment, object_serviceActive)
    window.afterBookingSelectDateAndTime(object_appointment, object_serviceId, object_providerId, object_locationId)
    window.afterBookingSelectService(object_appointment, object_serviceId, object_providerId, object_locationId)
    window.beforeConfirmBookingLoaded(object_appointment, object_service, object_provider, object_location)
    window.afterConfirmBooking(object_appointment, object_service, object_provider, object_location)

    JS files are modified (minimized) in public version of plugin (in our development environment is accessible), but unfortunately I can not send you our source code because that is the policy of our company.

    All those files that have extension .vue are compressed and minimized in JS files that is very hard and not recommended modifying. So in order to add some other features you can unminify the js and customise it.

    As to your checkbox issue, we were trying to reproduce it on our side and it seems to be working:

    6205444063.png



  • Biiird Studio replied

    I don't consider the solution you provided to be working, it looks ugly.

    Being able to use html <a> tags inside checkbox labels is something I am looking forward to the next update. Please forward this request to the dev team.

    But thank you for js hooks, I will try to utilize them.

  • [deleted] replied
    You can submit this as a feature request here:

    https://wpamelia.cnflx.io/boards/feature-requests