HomePage Forums Themes Support Triply – Tour Booking WordPress Theme How to add custom field to checkout form

Topic Resolution: Not a Question
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #37958

    This customization is not available, you will have to override the checkout file in the child-theme, then use custom code to add the custom field and handle the code checkout.

    Files to overwrite: template-parts/booking/checkout/information.php

    Copy from main-theme and add to child-theme, then add your custom field here

    Use the filter “babe_checkout_field_label” to add any custom fields to the Order admin:

    add_filter(‘babe_checkout_field_label’, ‘triply_babe_checkout_field_label’, 10, 2);
    function triply_babe_checkout_field_label(){
    //your code
    }

    Use filter “babe_sanitize_checkout_vars” to check value added in checkout form.

    If you can’t customize it yourself, I can help you customize it, but you’ll have to pay for this request.

    • This topic was modified 2 months, 4 weeks ago by Billy Nguyen.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.