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

Aldus’s picture

I 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 ;(

Aldus’s picture

Another 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.

larowlan’s picture

Priority: Major » Normal

To 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

Aldus’s picture

This 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?

larowlan’s picture

Hi
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