In my confirmation mail to people who make a reservation I would very much like to put both the start date and the end date. According to the Token help I have a wealth of Rooms related Tokens available. However, they do not seem to work.
In the message that I send out (with Message Notify) is the following line:
Bedankt voor uw reservering @{message:message-commerce-order:order-number} bij [site:name] van [rooms_booking:start-date] tot [rooms_booking:end-date]. We zien uit naar uw komst! U krijgt: [rooms_unit_type:label]
which 'translates' into:
Bedankt voor uw reservering 96 bij Bed and Breakfast De Oester van [rooms_booking:start-date] tot [rooms_booking:end-date]. We zien uit naar uw komst! U krijgt: [rooms_unit_type:label]
.
Is this a Rooms issue or related to the other modules involved. I am trying to solve this for two months now and effectively NOT using Rooms for that reason.
Many thanks for your time
Comments
Comment #1
TheoRichel CreditAttribution: TheoRichel commentedComment #2
jwilson3Just clarifying the title, this doesnt have to do with what we normally consider translation (ie i18n, localization), but with token processing.
Comment #3
djevans CreditAttribution: djevans commentedThis may be related more to configuration of Message/-Notify, rather than a Rooms-specific issue.
In general, each instance of a 'Message Type' entity needs to have a different Entity Reference field attached for each entity it needs to pull data from. Given the message you posted above, I guess you should have the following fields attached to your Message Type:
Before you send the message, these fields need to be set. The 'rules_commerce_order_message_order_notification' rule supplied with the commerce_message module is a good place to start if you're using the Rules UI.
Lastly, this may be different as I'm looking at 7.x-1.x-dev, but I need to use the tokens
[message:rooms_booking:start-date]
instead of[rooms_booking:start-date]
and[message:rooms_unit_type:label]
instead of[rooms_unit_type:label]
(for example) for Rooms-related entities.
Comment #4
TheoRichel CreditAttribution: TheoRichel commentedFirst: thank you very much!
I have added those fields to the Message Type involved as below:
Other settings I have not touched.
There is already a rule that sends out this message, so the only thing I then did was change the tokens as you suggested.
It had however no effect, the Tokens are not processed.
Comment #5
jwilson3Maybe it would be helpful if you could export the rule you're using and attach it here?
Comment #6
TheoRichel CreditAttribution: TheoRichel commentedHere is the rule I use:
Comment #7
djevans CreditAttribution: djevans commentedIt looks like you need to have a separate 'Set a data value' action in your rule for each field attached to the message entity you've created. Currently you're only setting the Commerce order, so there won't be any values available for the other (Rooms-specific) placeholders in your message.
Could you export the message type you're using and post it here too?
Comment #8
TheoRichel CreditAttribution: TheoRichel commentedThanks. See the requested message export:
Comment #9
ronald_istos CreditAttribution: ronald_istos commentedAdding it to support request for now because doesn't look like a Rooms-bug
Comment #10
larose CreditAttribution: larose commentedHi all,
does anyone has managed to solve this problem?
Comment #11
papper00 CreditAttribution: papper00 commentedI could really do with this functionality too. My client has requested room number/name, start/end dates, deposit amount paid, amount outstanding and number of guests to be included within the email.
If anyone figures out how to get those tokens into the email rule please do let me know.