Extras (v2)

Poplidays provides many different extras selectable by customer (i.e housework, …).

How to use extra

An extra is selectable by user and sometimes its price depends on others extras. Thats why, an extra has more than one price.

Let’s see how this example should be displayed in your web site.

-- Extra[0]
    |-- code : END_OF_STAY_CLEANING
    |-- label : Ménage fin de séjour
    |-- optionType : OPTIONAL_ON_SITE
    |-- type : CHECK
    |-- mandatory : true
    |-- prices
           |-- Price[0]
                  |-- selectedCodes : [END_OF_STAY_CLEANING]
                  |-- value : 65
-- Extra[1]
    |-- code : INSURANCE_EXTRA
    |-- label : Assurance annulation
    |-- detailUrl : http://www.poplidays.com/filesystem/static/telechargement/fr_cg_assur.pdf
    |-- optionType : OPTIONAL_ON_BOOKING
    |-- type : LIST
    |-- mandatory : false
    |-- parameters
           |-- POPASSUR -> Pop'Assur
           |-- POPASSURPLUS -> Pop'Assur+
    |-- prices
           |-- Price[0]
                  |-- selectedCodes : [END_OF_STAY_CLEANING, POPASSUR]
                  |-- value : 115
           |-- Price[1]
                  |-- selectedCodes : [END_OF_STAY_CLEANING, POPASSURPLUS]
                  |-- value : 133

The behavior in you web site could be like that:




Assurance annulation - 0 €



Attributes

Field Type Description
code String Extra unique identifier
label String Extra label
mandatory Boolean Mandatory status
type String Extra type:
  • CHECK: extra should be presented as checkable item
  • LIST: extra should be presented as list or radios
optionType String Extra option type:
  • MANDATORY_ON_BOOKING: extra should be added to the booking price, and will be charged within the booking, mandatory
  • OPTIONAL_ON_BOOKING: extra is optional. If such option is selected, such additional service must be added to the booking, and will be charged within as same.
  • OPTIONAL_ON_SITE: extra is optional, and can be requested and payed only on the stay site directly.
Unit String Extra option unit:
  • PER_STAY: Price is per stay
  • PER_DAY: Price is per day
  • PER_PERSON_PER_DAY: Price is per day and per person
  • PER_PERSON_PER_STAY: Price is per stay and per person
parameters Key-Value map Configuration parameters (ex: available items in list)
prices Price Extra prices based on user selections