RESERVATION Module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
User avatar
singha
Forum Members
Forum Members
Posts: 50
Joined: Tue May 23, 2006 7:52 am

RESERVATION Module

Post by singha »

I've added he Reservation-Module to my Homepage http://singhatravel.com/index.php/reservation_form but i got this ERROR-Message:

Warning: Invalid argument supplied for foreach() in /var/www/web86/web/lib/classes/class.module.inc.php on line 1886

What can i do  ???
newclear

Re: RESERVATION Module

Post by newclear »

Sorry for the awaiting singha. I was out of the computer theese days.
The reservation module is hardcoded to use the multilingual version of CMSMS but it should work with the official version too. I just didn't tried.

So about the problem. Yes i think I got it.
You should get the last class.module.inc.php from SVN. I use some new features with forms that are added in the 0.13 vers.
The problem maybe came from the $params which is not assigned regularly.

Can you tell me on which action you got this error. I will try to help you resolve this problem.

If someone else who have a problems with the module  Please share them here.
There is a demo for Reservation module here
http://dev.newclearweb.com/hotelbrod/in ... ion&lan=en

Svilen Sabev
Last edited by newclear on Sat Jul 01, 2006 10:33 am, edited 1 time in total.
User avatar
singha
Forum Members
Forum Members
Posts: 50
Joined: Tue May 23, 2006 7:52 am

Re: RESERVATION Module

Post by singha »

Hi, thanks for the answer, i've installed the new class.module.inc.php SVN-version, but now the calendar popup doesn't work.  >:(  ???

Here is the link to the test page http://singhatravel.com/index.php/test .
newclear

Re: RESERVATION Module

Post by newclear »

The js for calendar looks like is regularly included.
Did you try to remove the other js from the template.

On IE appear an error: Object expected.
newclear

Re: RESERVATION Module

Post by newclear »

The Reservation module send email with detailed reservation made throught the Front and also send mail styled in Global Content Blocks with name 'mail_answer_en' for response to the customer.
So if you want to send mail to the customer immediatly after the reservation is maded create a block with this name.
If no you should comment this part of the code in Reservation.module.php in method DoReservation.
newclear

Re: RESERVATION Module

Post by newclear »

I am sorry but i just test it with other cmsms on my localhost and the tables for database are not created correctly. If you cannot click on buttons in the admin part of the module maybe your tables are not correct too.
I have mysql 3.23.49 on my localhost and it not works with utf8.
It should work on mysql 4.
I will make another release as soon as posible.

About the calendar. I add only this lines and after that it shows corectly

{literal}

 
 

{/literal}
ryde
Forum Members
Forum Members
Posts: 20
Joined: Fri Jan 27, 2006 10:41 pm

Re: RESERVATION Module

Post by ryde »

Hello,

I used a fresh installation of 0.13 and got exactly the same error as mentioned before in line 1886 when the module is included in a page.

Any ideas? ( I guess 0.13 already includes the latest version of class.module.inc.php)

Ryde
newclear

Re: RESERVATION Module

Post by newclear »

Hello ryde,
Before using the reservation module in front you should add the different room types in the admin area under extension->reservation.

The main problem came from the mysql. If you have mysql ver 4 the module should be installed correctly and you can add the room types.
If your mysql is 4.0.26 and under the reservation module installation failed so you can't work with it.  :'(

I am going to prepare another release with the fixed bug.
If someone having trouble using the reservation module please share a link with us.
Last edited by newclear on Tue Jul 11, 2006 7:44 am, edited 1 time in total.
ryde
Forum Members
Forum Members
Posts: 20
Joined: Fri Jan 27, 2006 10:41 pm

Re: RESERVATION Module

Post by ryde »

Hello newclear,

Thanks for the reply!

Well, I'm using mysql version 4.1.13 and php version 4.4.0 and the problem is persistent. I added a few room types (I did that before but I deleted them again). Now, the room numbering starts at 3 (I deleted 2 rooms earlier, so, I had an empty list, after that I added a new room and the room number  (in the table known under "Room"starts at 3 now).

Ryde
newclear

Re: RESERVATION Module

Post by newclear »

The room type ID is only for displaing the right room type on front.
I am using it for assigning a part from the room types.

{cms_module module="Reservation" rooms="1,2,3,4,5"}

After you add them the module should work in front.
Please if you have any errors explane on which action they happenned.

I am not sure is the class module in v13 ready to go with reservation module. I just got the latest from SVN because of some new features like frontendforms.

Svilen Sabev
newclear

Re: RESERVATION Module

Post by newclear »

I just thinking about the module.
If you wanna use it in real site you should make a little changes in the code.
I mean you need to adapt the mail for reservation to came from your site.
There are few more things to do.In the 3rd step now show the name of the hotel that i create module for. It can be changed from the lang file.
If you dont know where to change ask me and i'll dirrect you.
ryde
Forum Members
Forum Members
Posts: 20
Joined: Fri Jan 27, 2006 10:41 pm

Re: RESERVATION Module

Post by ryde »

Ok, thanks!.

For now, the error at line 1886 still occurs. Adding rooms does not change that. Maybe I will find some time this weekend to dig into our code to find out what goes wrong. I will keep you informed.

Ryde.
newclear

Re: RESERVATION Module

Post by newclear »

did you try to update with the latest class.module? maybe the 1886 line error will dissapear.
djkirstyjay
Forum Members
Forum Members
Posts: 206
Joined: Tue Oct 25, 2005 4:50 pm

Re: RESERVATION Module

Post by djkirstyjay »

I'm having the same problem as the person in the original post of this topic, plus the calendar pop-up doesn't work.

I installed the Reservation Mod on put the cms module tag in the page as follows :

{cms_module module='Reservation'}

I then went to the test page and got the following :

Warning: Invalid argument supplied for foreach() in /home/k9dogs/public_html/cms/lib/classes/class.module.inc.php on line 1886


When I input dates by typing the dates in (as the pop-up calendar doesn't work) I get the following :

Warning: Invalid argument supplied for foreach() in /home/k9dogs/public_html/cms/lib/classes/class.module.inc.php on line 1886

Warning: Invalid argument supplied for foreach() in /home/k9dogs/public_html/cms/lib/classes/class.module.inc.php on line 1886


When I click on to apply the dates to the particular apartment, I get the following :

Warning: Invalid argument supplied for foreach() in /home/k9dogs/public_html/cms/lib/classes/class.module.inc.php on line 1886

I would also like to know if it's possible to have different prices depending on the time of year, and if I could make the reservation period WEEKLY rather than daily.

I have read through the other posts in this topic, and I'm afraid I have no idea what you mean by 'SVN' so I haven't tried that yet.
newclear

Re: RESERVATION Module

Post by newclear »

I just released ver 0.6 of Reservation module.

There was a install bug which I fixed and now it should insert the tables to mysql correctly.
display reservation section in admin panel is still incomplete but the module works if you wanna receive the reservation via mail.

I really sorry for this 0.5 buggy version. Looks like mysql doesn't like utf8.
It should work right now. I also tried with new CMSMS beta 1 and it works.

If you want to use popup calendar please add this code in the header of template.

{literal}




{/literal}


If calendar still doesn't work maybe you using old browser  :(
Try Firefox. calendar works in IE too but i hate him.

Ouh. about the 1886 error that most of you received. I didn't view this error on my site yet. If someone still receive it with the new version. Please. Send me a link.
I would also like to know if it's possible to have different prices depending on the time of year, and if I could make the reservation period WEEKLY rather than daily.
The module haven't any discounts or different prices. Its just set the price of the room daily.

SVN is Concurrent Versions System. More info here http://svnbook.red-bean.com/
Please dont download reservation module from SVN. I still cant get how to use it correctly. I need to read the book too  ;)


I hope help someone.
Svilen
Last edited by newclear on Thu Jul 27, 2006 11:40 pm, edited 1 time in total.
Locked

Return to “Modules/Add-Ons”