Active
Project:
Hotel Booking System for Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2011 at 16:39 UTC
Updated:
31 Mar 2011 at 20:59 UTC
Hi, I get this error when I try to edit an Upgrade / Addon product.
warning: Invalid argument supplied for foreach() in /web/htdocs/www.relaisilfienile.it/home/includes/form.inc on line 1211.
This doesn't allow me to associate any room to the upgrade / addon.
Additionally, when i make a booking I don't see upgrades / addons anymore...
Getting a bit desperate with an angry client, what to do?
Comments
Comment #1
Aldus commentedI have to add that the same page (Configure addon product xyz) in "limit by room type" shows all my room types, in all languages.
This is confusing, as forces me to tick a room many times, for each language in the system.
However, nothing is saved when I submit the form ;(
Comment #2
Aldus commentedAnother update to add to the above segnalations:
I tried again to setup the product addon for some room types.
When I go to book a room of that type, I still can't choose the addon and I'm directly taken to the checkout, but this error comes out:
warning: Invalid argument supplied for foreach() in /web/htdocs/www.relaisilfienile.it/home/sites/all/modules/uc_hotel/hotel_addons_upgr... on line 106.
Comment #3
larowlanTo be honest I'm not familiar with the addon module.
I didn't write it and I've never used it.
Will (the original co-author) wrote it. Updating/rewriting it is on my list for the beta5 release but I can't seem to find the time to do it.
Happy to receive patches if you can whip some sense into it. For starters there's a lot of code that doesn't use the forms api.
Lee
Comment #4
Aldus commentedThis module is extremely useful to associate any kind of paid service to the room customers. I use it for breakfast, lunch, added bed, etc... it's the only available solution at the moment.
I solved the problem rewriting myself overnight all the room selection system, but it's a bit hardcoded, maybe not valid as a patch.
Doesn't Will no longer participate in the development?
Comment #5
larowlanHi
I can't speak for Will, I think his career took him to other places. I think he is still involved in some Drupal work but not uc_hotel. Happy for you to post what you've done and I'll see whether I can make it generic.
Lee