• I’m not a PHP expert so some advice on how to do this would be very much appreciated!

    This is about the Customer Details form (Name, country, etc.)

    I did not want all the fields with the plugin, specifically Address, City State and Postcode; and managed to remove those fields by navigating to templates/checkout/customer-info.php and deleting them from the template file.

    But I get the following errors:

    “State is a required field. City is a required field. Postcode is a required field.”

    I’ve tried looking into the plugin files and searched documentation to no avail. Can anyone please please help me with this? Or point me in the direction of which I should be looking? Any help will be much appreciated!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter scrltt

    (@scrltt)

    If anyone is looking for a solution to this, here are the files to copy to your theme and edit:

    wp-content/plugins/opal-hotel-room-booking/includes/class-opalhotel-checkout.php

    wp-content/plugins/opal-hotel-room-booking/templates/checkout/customer-info.php

    wp-content/plugins/opal-hotel-room-booking/templates/checkout/received/order-customer-details.php

    and to plug your custom fields in emails:

    wp-content/plugins/opal-hotel-room-booking/templates/emails/customer-details.php

    However, still can’t figure out how to plug in custom fields in the admin booking page

    • This reply was modified 6 years, 10 months ago by scrltt.
Viewing 1 replies (of 1 total)
  • The topic ‘Changed fields in reservation form, got a ‘required’ error’ is closed to new replies.