Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi wxia0822,

    No, the plugin only supports a single location. I do plan to add support for multiple locations at some point in the future, alongside supporting multiple locations in my Business Profile plugin.

    However, I don’t think this will really be what you’re looking for. If I understand you correctly, you want to have a restaurant indexing site with lots of completely different restaurants, and maybe have each restaurant manage their own bookings.

    This is quite a different kind of solution and would require a lot of custom development work. It’s not really something I plan to support at any time in the future, so you’d probably want to look into a bespoke solution.

    Thread Starter wxia0822

    (@wxia0822hotmailcom)

    Thanks NateWr!

    Hi Nate – great plugin first of all. Looks like a really useful tool. Just want to follow up on this thread however as I have a similar query.

    The simple issue is we have 2 restaurants and want to have the ability for customers to click on a field to select Restaurant 1 or 2.

    Only confirming, the plugin will then send an email (different for each restaurant) where one of the staff will confirm it through clicking on the link.

    No real need for any of the backend stuff (scheduling etc – they are useful but not essential as a staff will filter those).

    Your customization add-on looks like might be able to handle this but want to check with you first.

    Thanks

    Hi wkl200,

    The Custom Fields addon will allow you to add a field to select the desired restaurant. However, the request, confirmation and rejection emails will always be the same regardless of which restaurant was selected.

    Hello and thanks. One follow up question then:

    It’s fairly important to have ability to send to different email address based on different location (due to how we are setup).

    I am just thinking as a work around to include a new {location} field with “Restaurant1” and “Restaurant2” and then when sending email I can then specify the address as {location}@gmail.com for example.

    I haven’t installed your Custom Field add on yet (though fully intend to if this works) so haven’t had a chance to test it.

    If you plug-in doesn’t work right now, do you think it’s possible to modify it with small degree of coding on my side?

    Thanks

    Hi wkl200,

    The plugin is developed with a large set of hooks for extensibility. So if you’re familiar with WordPress’s actions and filters API, you can accomplish this with just a few lines of code in a custom plugin or in your theme’s functions.php file.

    The hook you’ll want to look at is rtb_notification_email_to_email.

    The following code is a DEMONSTRATION. It hasn’t been tested, but it should get your started:

    add_filter( 'rtb_notification_email_to_email', 'wkl200_change_to_email', 10, 2 );
    function wkl200_change_to_email( $to_email, $notification ) {
    
    	// Don't modify the email sent to the user
    	if ( $notification->target == 'user' ) {
    		return $to_email;
    	}
    
    	// Any custom fields are stored in the booking object, which can
    	// be accessed through the notification object. You'll needx to
    	// inspect the booking object to retrieve your custom location
    	// field. The following is just an example. The custom field will
    	// not actually be stored at $notification->booking->location, but
    	// it will be attached to $notification->booking.
    	if ( $notification->booking->location == 'one-location-value' ) {
    		$to_email = '[email protected]';
    	} elseif ( $notification-booking->location == 'two-location-value' ) {
    		$to_email = '[email protected]';
    	}
    
    	return $to_email;
    }

    Thank you!

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

The topic ‘booking for multiple restaurants’ is closed to new replies.