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 14 replies, has 2 voices, and was last updated by  Advertime 6 hours, 28 minutes ago.

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

    Advertime
    Participant

    Supported

    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

    Supported

    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

    Supported

    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

    Supported

    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

    Supported

    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

    Supported

    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

    Supported

    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

    Supported

    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.
Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.

Hello! CityBook version 1.2.7 was released. Bulk Import Add-On, OpenStreetMapView Details
+