Remove name, e-mail and phone from booking form

Home Forums WordPress Theme CityBook – Directory & Listing WordPress Theme Remove name, e-mail and phone from booking form

This topic contains 32 replies, has 2 voices, and was last updated by  CTHthemes 3 months, 2 weeks ago.

Viewing 25 posts - 1 through 25 (of 33 total)
  • Author
    Posts
  • #27807

    Advertime
    Participant

    Support Expired

    Hi,

    I try to remove the Name, E-mail and Phone number from the booking form. I tried to change the widget-booking.php. The fields are removed but when i tried to book a listing nothing happens. It look like the book now button looks for required fields. I remove the part i have attached.

    How can i fix this?

    Thanks for help

    Attachments:
    You must be logged in to view attached files.
    #27828

    CTHthemes
    Keymaster

    Hi, fields are required.

    #27841

    Advertime
    Participant

    Support Expired

    Hi,

    I understand but how can i remove this fields?

    #27883

    CTHthemes
    Keymaster

    The fields are required so you can’t delete them.

    #27910

    Advertime
    Participant

    Support Expired

    Thank you for the message. But i need to remove them.. There should be a option to change the code so i can remove?

    Hope you can help..

    #27925

    CTHthemes
    Keymaster

    You can use css code with display: none; property on their parent element.

    #27951

    Advertime
    Participant

    Support Expired

    Hi There,

    Could you please provide me the correct full code?

    Thank you.

    #27968

    CTHthemes
    Keymaster

    I think I was wrong. The fields are required and the booking form can’t be submitted if they’re hide.

    Ps: I don’t understand why you need to hide the fields?

    #28021

    Advertime
    Participant

    Support Expired

    Thank you. This is essential for my website because customers can add more listings to the woo commerce cart. When they now want to have 10 listings they need to fill in there name and e-mail 10 times. This details are also need to be filled in at the woocommerce booking form. So this make no sense for the customer.

    Hope you have a solution for this. Thanks

    #28047

    CTHthemes
    Keymaster

    The solution is asking customer login before booking. So they don’t need to fill the form.

    #28053

    Advertime
    Participant

    Support Expired

    Hello, this is not a solution for me and not workable. Could you build the solution? Its very important for the business?

    #28087

    CTHthemes
    Keymaster

    Ok, try this: http://prntscr.com/lsvos7

    The new code: `
    $booking_datas[‘post_title’] = sprintf( $booking_title, get_the_title( $slid ), ‘no user’ );
    `

    You also need disable these emails: http://prntscr.com/lsvp69

    #28104

    Advertime
    Participant

    Support Expired

    I tried but it doesn’t work. What do i need to do with the code in the box above the new code?

    #28112

    CTHthemes
    Keymaster

    You can comment out it or delete

    #28137

    Advertime
    Participant

    Support Expired

    Hello,

    Its doesn’t work.. I delete the first block and the listing name is not showing on the website, please see screenshot attached?

    When i put the new code in the website the site is broken. When i only remove the first box this happens

    How can i solve this?

    Attachments:
    You must be logged in to view attached files.
    #28164

    CTHthemes
    Keymaster

    Did you add the new code?

    #28165

    Advertime
    Participant

    Support Expired

    Yes i did. But when i do the website is broke done and nothing works.

    How can i solve this? I already had customer complain about this..

    #28168

    CTHthemes
    Keymaster

    So please reverse the code. it’s just trying code and we don’t provide customization service.

    #28169

    Advertime
    Participant

    Support Expired

    Yes i did. But i missing the listing name in the booking / woocommerce cart. See attachment. How can i get this back?

    This is another problem and need to be solved a.s.a.p. Thanks

    Attachments:
    You must be logged in to view attached files.
    #28189

    Advertime
    Participant

    Support Expired
    This reply has been marked as private.
    #28207

    CTHthemes
    Keymaster

    Hi, please make sure that you have post_title field: http://prntscr.com/luqhco

    And follow this guide for getting new translatable texts: https://docs.cththemes.com/docs/advance-features/theme-and-plugin-translations/theme-update/

    then make sure %1$s booking from %2$s text is correctly translated.

    PS: I’ve added this for you: http://prntscr.com/luqium

    #28215

    Advertime
    Participant

    Support Expired
    This reply has been marked as private.
    #28235

    CTHthemes
    Keymaster

    You have to enable name/email fields for non logged in user. And it’s working for logged in user: http://prntscr.com/lvv8oq

    #28253

    Advertime
    Participant

    Support Expired

    Okay thanks, and how do i enable name/email fields for non logged in user??

    #28269

    CTHthemes
    Keymaster

    Here it is: http://prntscr.com/lwdl2z

    
    <?php if ( !is_user_logged_in() ) { ?>
        <label><i class="fa fa-user-o"></i></label>
        <input name="lb_name" class="has-icon" type="text" placeholder="<?php esc_attr_e( 'Your Name*', 'citybook-add-ons' ); ?>" value="" required="required">
        <div class="clearfix"></div>
        <label><i class="fa fa-envelope-o"></i></label>
        <input name="lb_email" class="has-icon" type="text" placeholder="<?php esc_attr_e( 'Email Address*', 'citybook-add-ons' ); ?>" value="" required="required">
        <label><i class="fa fa-phone"></i></label>
        <input name="lb_phone" class="has-icon" type="text" placeholder="<?php esc_attr_e( 'Phone', 'citybook-add-ons' ); ?>" value="">
    <?php } ?>
    
Viewing 25 posts - 1 through 25 (of 33 total)

You must be logged in to reply to this topic.

New featues: CityBook - Listing & Directory WordPress Theme version 2.1.4 was outUpdate now
+