Elxis CMS Forum

Extensions => Components => Topic started by: peppemania on February 19, 2014, 19:01:55

Title: IOSR4 hotel facilities
Post by: peppemania on February 19, 2014, 19:01:55
hello,
I added some new hotel facilities
Code: [Select]
'56' => $eLang->get('TELEVISION')
'57' => $eLang->get('IRON')
all it's ok.

but file hothelper.class.php is a protected internal file. If I modify it the site wont be able to connect to IOS RC to retrieve updates.

OK then: can you (datahell) add more hotel facilities? :)
in the language file there is already the translation.
Title: Re: IOSR4 hotel facilities
Post by: datahell on February 20, 2014, 21:18:44
Additional facilities should be added in room's description. Don't edit IOSR helper, the built-in facilities list is global and used in many places.

"Television" is NOT a hotel facility (ok the hotel has a TV in a public place, no big deal, nothing important to mention to customers), it is a room facility and already exist as such:
'07' => $eLang->get('TELEVISION') //room facility

"Iron" already exist in hotel facilities AND in room facilities:
'33' => $eLang->get('IRONING'), //hotel facility - ironing service
'32' => $eLang->get('IRON'), //room facility - iron

Tip: Instead of adding new facilities you could change existing ones you don't use. Just edit the language files in this case, you dont have to change the source code...