• Resolved ivan-daudt

    (@ivan-daudt)


    Hi Alessandro,
    Is it possible to have something like a link with parameters to the reservation page?

    I mean something like https://mysite.com/svc/[email protected]?message=order%20XXX

    I’m using gift certificates in our ecommerce as way to “reserve” very expensive and exclusive wines, like those I don’t use to have in stock. The customer orders his/her preferred wine and we handle the logistics to hv it available in the restaurant for that customer.

    We know people tend to forget that important step, but the reservation is the only way to know WHEN that item will have to be available in the restaurant.

    As the customer always gets an email fm the store whenever an order is placed, I would like to minimize that by facilitating to the customer with something like a “MAKE YOUR RESERVATION” link in that message.

    Can I do that with wprm?

    Tks, Ivan

    https://www.ads-software.com/plugins/wp-restaurant-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Alessandro Tesoro

    (@alessandrotesoro)

    Hello,

    If i correctly understand, you wish to add a dynamic link into the email, is that correct?

    Thread Starter ivan-daudt

    (@ivan-daudt)

    Yes. It would be generated by WooCommerce on its confirmation msg.

    I want to have the OrderID passed along the reservation, so I have the information of who the customer is and what were the items in his order to organize its logistics.

    That’s what must be available upon his visit to our restaurant. Wine, beer and the like are not a problem, but flowers can’t be there on standby for days… Those must be brought in at the date or the day before. That’s why this information is so important.

    Your support is very welcome.

    Tks, Ivan

    Plugin Author Alessandro Tesoro

    (@alessandrotesoro)

    Yes that’s possible what you need to do is add a new email tag through the plugin’s filters.

    This is an example custom email tag, it just returns the booking id.

    function wprm_custom_email_tag( $booking_id ) {
    	 wprm_add_email_tag( 'my_tag', 'This is my custom tag', 'wprm_custom_tag_function' );
    }
    add_action( 'wprm_add_email_tags', 'wprm_custom_email_tag' );
    
    function wprm_custom_tag_function( $booking_id ) {
    	return $booking_id;
    }

    You can add that code into your theme’s functions.php file at the bottom of it. Now when you go to Restaurant -> Settings -> Notifications below each text editor, you’ll see the list of email tags available, at the bottom of the list you’ll see your new tag called “my_tag”. If you add {my_tag} into your emails content, as it is now, it will just show the ID of the booking.

    You can now modify the function called wprm_custom_tag_function as per your needs. And use the $booking_id variable into your urls.

    Regards.

    Thread Starter ivan-daudt

    (@ivan-daudt)

    Alessandro,
    If I got you right, that will address the issue of creating a “dynamic url” in the email confirmation message.

    That’s an important piece of the puzzle, but I still need to identify how to resolve one more part: can wprm “catch” that in its reservation form?

    What I need is to have the Order_ID content parsed directly into the “message” field of the reservation form.

    Thank you for your continued support.

    Rgds, Ivan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Reservation parameters from link in email message?’ is closed to new replies.