• Resolved ravachol

    (@ravachol)


    Hello,

    First of all, congratulations for your Restaurant Reservations plugin! Really easy to use!

    One suggestion: if you can add a tab for some conditional logic, it would be awesome. This could allow, for example,
    – if there are more than 200 persons, display a message that the restaurant isn’t big enough
    – if they pick-up a special date (as 14th february), display a message (as “Valentine’s Day: special menu”)
    – etc etc.

    There are some wordpress plug-ins as “Form Manager” who can do it

    Best regards

    https://ww.wp.xz.cn/plugins/restaurant-reservations/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi ravachol,

    Thanks for using the plugin. I plan to add an option to set a maximum party size for reservations. That’s a good idea about the special menu scheduling, and it could integrate well with my Food and Drink Menu plugin. I’ll put it on my ideas list, thanks.

    Is it possible to deactivate the email adress as a mandatory field?

    Hi densi,

    I created a micro-plugin for you which does this. To use this, click the Download Gist button on the right. Then open the .php file in a text editor and find this code:

    // If no email address is provided, add your own email address so
    	// you can still send a notification email
    	if ( empty( $booking->email ) ) {
    		$booking->email = '[email protected]';
    	}

    Change the [email protected] to an email address you control. This ensures that a notification email will still be sent even if the user doesn’t enter an address.

    Save the file and upload it to your /wp-content/plugins directory. You should then be able to activate a plugin titled “Don’t Require Email Field for Restaurant Reservations” from the plugins page in your WordPress admin.

    I haven’t tested this code, but it should work.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Conditionnal’ is closed to new replies.