Reservation module - email error message

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
evismaniac

Reservation module - email error message

Post by evismaniac »

Hi folks.

I have recently installed the Reservation module which is very good! 

The only real issue with it is when the confirmation emails come through, the one to the person booking (my alternative email address at the mo for testing purposes) only receives the following text in the email:

string(67) "Smarty error: unable to read resource: "globalcontent:mail_answer_""

Can anyone shed any light onto this at all? 

Thanks a lot  ;D
newclear

Re: Reservation module - email error message

Post by newclear »

Hello there,
nice to see that you are using this module

Let me explane you about this error:

At first this feature is about sending an email to the guest who is reserving.
My first release of this module supported the multilingual version. The new version is no more supporting it but i forgot about this feature.
The idea that comes from the old version was to send different email on different language but because the multilingual is no more supported and language variable is not assigned and also i forgot to fix this it gives an error.

So to resolve this you have to add global content block with name mail_answer_
and you can add the email template you want to send to the guest who is booking.

If you have any other question please feel free to ask.
evismaniac

Re: Reservation module - email error message

Post by evismaniac »

Thank you for the response! :D

I will take a look at this when I get home tonight!

Regards!
evismaniac

Re: Reservation module - email error message

Post by evismaniac »

Could you give me a point in the right direction for this, maybe a small example of a current global content block, so that I can take a look and figure it out.  I am not too strong with php at the moment.

Thanks again, your help is much appreciated!

p.s also where can I edit the email template layout? :)
Last edited by evismaniac on Tue Mar 13, 2007 9:06 am, edited 1 time in total.
newclear

Re: Reservation module - email error message

Post by newclear »

Just add global content block from the admin panel

Pages->Global Content Block

The name of the global content block must be
mail_answer_

The content of this block will be sent to your customer's email after they make reservation through your site.
You can use it as a information, notice or whatever you want.

This has to be fixed and I will in the next release.

If you add this global content block and the error still occurs i have to make a better check of what I have done.
evismaniac

Re: Reservation module - email error message

Post by evismaniac »

ahhhhh so simple hehe!

That does work now! thank you!  ;D
Post Reply

Return to “Developers Discussion”