{# add default jsConfig stuff here... e.g. cookiebar #}
{% set locale = app.request.locale %}
{% do jsConfig().add({
'lang': locale,
'admin': editmode ? true : false,
'local': locale,
'localeRegion': locale ~ '-' ~ locale|upper,
}) %}
{# Translations #}
{% do jsConfig('_translations').add({
'alert-notification.generic-error': 'Oops. Something went wrong. Please try again.'|trans,
'alert-notification.close': 'Close'|trans,
'shop.configuration.add-to-cart':'shop.configuration.add-to-cart'|trans,
'general.sr-close':'general.sr-close'|trans,
'general.loading-error':'general.loading-error'|trans,
'general.close':'general.close'|trans,
'shop.configuration.optional':'shop.configuration.optional'|trans,
'shop.configuration.breadcrumb.Date':'shop.configuration.breadcrumb.Date'|trans,
'shop.configuration.breadcrumb.Edit-date':'shop.configuration.breadcrumb.Edit-date'|trans,
'shop.configuration.breadcrumb.to':'shop.configuration.breadcrumb.to'|trans,
'shop.configuration.breadcrumb.Edit-configuration':'shop.configuration.breadcrumb.Edit-configuration'|trans,
'shop.calendar.prev-button':'shop.calendar.prev-button'|trans,'shop.calendar.prev-button':'shop.calendar.prev-button'|trans,
'shop.configuration.date.fully booked':'shop.configuration.date.fully booked'|trans,
'shop.configuration.date.available':'shop.configuration.date.available'|trans,
'shop.configuration.date.dates available':'shop.configuration.date.dates available'|trans,
'shop.configuration.ticket.available spaces':'shop.configuration.ticket.available spaces'|trans,
'shop.configuration.ticket.age-group':'shop.configuration.ticket.age-group'|trans,
'shop.configuration.ticket.sum-of-persons':'shop.configuration.ticket.sum-of-persons'|trans,
'shop.configuration.ticket.price-per-unit':'shop.configuration.ticket.price-per-unit'|trans,
'shop.configuration.ticket.sum':'shop.configuration.ticket.sum'|trans,
'shop.configuration.total-price':'shop.configuration.total-price'|trans,
'Shop.ticket-config.choose-person':'Shop.ticket-config.choose-person'|trans,
'shop.configuration.add-person':'shop.configuration.add-person'|trans,
'shop.configuration.price':'shop.configuration.price'|trans,
'shop.configuration.ticket.choose-one-of-the-following-options':'shop.configuration.ticket.choose-one-of-the-following-options'|trans,
'shop.configuration.ticket.configure-ticket':'shop.configuration.ticket.configure-ticket'|trans,
'shop.configuration.ticket.for-more-infos-click-info-icon':'shop.configuration.ticket.for-more-infos-click-info-icon'|trans,
'shop.configuration.ticket.prices-are-for-one':'shop.configuration.ticket.prices-are-for-one'|trans,
'shop.ticket.No-insurance':'shop.ticket.No-insurance'|trans,
'shop.configuration.ticket.sold out':'shop.configuration.ticket.sold out'|trans,
'general.loading':'general.loading'|trans,
'Shop.is-loading':'Shop.is-loading'|trans,
'shop.configuration.Close':'shop.configuration.Close'|trans,
'general.go-back':'general.go-back'|trans,
'shop.configuration.total':'shop.configuration.total'|trans,
'Shop.configuration.select-currency':'Shop.configuration.select-currency'|trans,
'shop.configuration.save & next':'shop.configuration.save & next'|trans,
'shop.activities.price-tendency.capacity & price-tendency description':'shop.activities.price-tendency.capacity & price-tendency description'|trans,
'shop.activities.price-tendency.capacity & price-tendency info':'shop.activities.price-tendency.capacity & price-tendency info'|trans,
'shop.configuration.Price-per-Adult':'shop.configuration.Price-per-Adult'|trans,
'shop.price-tendency.capacity & pricetendency':'shop.price-tendency.capacity & pricetendency'|trans,
'shop.price-tendency.capacity & pricetendency.description':'shop.price-tendency.capacity & pricetendency.description'|trans,
'shop.price-tendency.capacity & pricetendency.short-description':'shop.price-tendency.capacity & pricetendency.short-description'|trans,
'shop.ticket.* Prices refer to adult day tickets':'shop.ticket.* Prices refer to adult day tickets'|trans,
'shop.configuration.choose-date':'shop.configuration.choose-date'|trans,
'shop.configuration.choose-date-in-calendar':'shop.configuration.choose-date-in-calendar'|trans,
'shop.configuration.choose-persons':'shop.configuration.choose-persons'|trans,
'shop.configuration.add-persons-from-age-groups':'shop.configuration.add-persons-from-age-groups'|trans,
'shop.configuration.tickets':'shop.configuration.tickets'|trans,
'shop.configuration.ticket':'shop.configuration.ticket'|trans,
'shop.configuration.cart':'shop.configuration.cart'|trans,
'shop.configuration.checkout':'shop.configuration.checkout'|trans,
'shop.configuration.continue-shopping':'shop.configuration.continue-shopping'|trans,
'shop.configuration.choose-rides':'shop.configuration.choose-rides'|trans,
'shop.configuration.choose-date-in-calendar':'shop.configuration.choose-date-in-calendar'|trans,
'shop.configuration.persons':'shop.configuration.persons'|trans,
'shop.configuration.add-persons-from-profile':'shop.configuration.add-persons-from-profile'|trans,
'shop.configuration.add-persons-from-age-groups':'shop.configuration.add-persons-from-age-groups'|trans,
'shop.configuration.configure-ticket':'shop.configuration.configure-ticket'|trans,
'shop.configuration.ticket-configuration':'shop.configuration.ticket-configuration'|trans,
'shop.configuration.price-per':'shop.configuration.price-per'|trans,
'shop.configuration.select-price-group':'shop.configuration.select-price-group'|trans,
'shop.configuration.verify-tickets':'shop.configuration.verify-tickets'|trans,
'Shop.configuration.age-group':'Shop.configuration.age-group'|trans,
'Shop.configuration.insurance':'Shop.configuration.insurance'|trans,
'shop.configuration.edit-person':'shop.configuration.edit-person'|trans,
'shop.configuration.delete-person':'shop.configuration.delete-person'|trans,
'shop.configuration.change-ticket-configuration-for':'shop.configuration.change-ticket-configuration-for'|trans,
'shop.configuration.cancel':'shop.configuration.cancel'|trans,
'shop.configuration.save':'shop.configuration.save'|trans,
'general.required':'general.required'|trans,
'shop.configuration.persons-view':'shop.configuration.persons-view'|trans,
'shop.configuration.summary-view':'shop.configuration.summary-view'|trans,
'shop.configuration.calendar-view':'shop.configuration.calendar-view'|trans,
'shop.configuration.time-list-view':'shop.configuration.time-list-view'|trans,
'Shop.configuration.validation.time-list':'shop.configuration.validation.time-list'|trans,
'Shop.configuration.validation.calendar':'shop.configuration.validation.calendar'|trans,
'Shop.configuration.validation.summary':'shop.configuration.validation.summary'|trans,
'Shop.configuration.validation.persons':'shop.configuration.validation.persons'|trans,
'shop.configuration.services-view':'shop.configuration.services-view'|trans,
'Shop.configuration.validation.services':'shop.configuration.validation.services'|trans,
'shop.configuration.no-available-dates': 'shop.configuration.no-available-dates'|trans,
'shop.configuration.date-list-view': 'shop.configuration.date-list-view'|trans,
'shop.activities.calendar-legend': 'shop.activities.calendar-legend'|trans,
'shop.pricecalculator.calculateprice':'shop.pricecalculator.calculateprice'|trans,
'shop.pricecalculator.price':'shop.pricecalculator.price'|trans,
'shop.pricecalculator.booknow':'shop.pricecalculator.booknow'|trans,
'shop.pricecalculator.basicinfos':'shop.pricecalculator.basicinfos'|trans,
'shop.pricecalculator.toptitle':'shop.pricecalculator.toptitle'|trans,
'shop.pricecalculator.choosedate':'shop.pricecalculator.choosedate'|trans,
'shop.pricecalculator.ticketprices':'shop.pricecalculator.ticketprices'|trans,
'shop.pricecalculator.datelabel':'shop.pricecalculator.datelabel'|trans,
'shop.pricecalculator.editdate':'shop.pricecalculator.editdate'|trans,
'shop.pricecalculator.editsettings':'shop.pricecalculator.editsettings'|trans,
'shop.pricecalculator.calendarto': 'shop.pricecalculator.calendarto'|trans,
'shop.pricecalculator.todetailpage': 'shop.pricecalculator.todetailpage'|trans,
'shop.pricecalculator.basiccomposition': 'shop.pricecalculator.basiccomposition'|trans,
'shop.pricecalculator.descriptionbasic': 'shop.pricecalculator.descriptionbasic'|trans,
'shop.pricecalculator.descriptioncalendar': 'shop.pricecalculator.descriptioncalendar'|trans,
'shop.pricecalculator.descriptionresult': 'shop.pricecalculator.descriptionresult'|trans,
'shop.pricecalculator.missing-info-title':'shop.pricecalculator.missing-info-title'|trans,
'shop.pricecalculator.missing-info-text':'shop.pricecalculator.missing-info-text'|trans,
'shop.configuration.dataInput-view':'shop.configuration.dataInput-view'|trans,
'shop.configuration.dataInput-calendar-view':'shop.configuration.dataInput-calendar-view'|trans,
'shop.configuration.result-view':'shop.configuration.result-view'|trans,
'shop.configuration.results-view': 'shop.configuration.results-view'|trans,
'Shop.b2b.choose-date':'Shop.b2b.choose-date'|trans,
'Shop.b2b.choose-ticket':'Shop.b2b.choose-ticket'|trans,
'Shop.b2b.choose-event':'Shop.b2b.choose-event'|trans,
'shop.b2b.add-to-cart':'shop.b2b.add-to-cart'|trans,
'shop.b2b.add-more-tickets':'shop.b2b.add-more-tickets'|trans,
'Shop.b2b.date':'Shop.b2b.date'|trans,
'general.choose-date':'general.choose-date'|trans,
'general.select-date':'general.select-date'|trans,
'Shop.ticket-config.choose-date':'Shop.ticket-config.choose-date'|trans,
'shop.configuration.ticket.configure-insurance':'shop.configuration.ticket.configure-insurance'|trans,
}) %}
{# 'calendar': '/faker-api/activityticket-configs/dates.json',#}
{# '/faker-api/activityticket-configs/addToCart.json' #}
{% do jsConfig().add({
'activityConfigUrls': {
'calendar': url('json_event_calendar_dates'),
'basePrice': url('json_event_base_price'),
'dateList': url('json_event_list_dates'),
'timeList': url('json_event_time_list_dates'),
'addToCart': url('cart_add_event'),
},
'skiTicketConfigUrls': {
'calendar': url('json_ticket_calendar_dates'),
'priceTendency': url('json_ticket_price_tendency'),
'priceTendencyPrice': url('json_ticket_price'),
'services': url('json_services'),
'pricings': url('json_ticket_pricing'),
'login': url('json_login_data'),
'persons': url('json_person_data'),
'addToCart': url('cart_add_ticket'),
},
'priceCalculatorConfigUrls': {
'calendar': url('json_priceCalculator_calendar'),
'basicInfo': url('json_priceCalculator_basic_info'),
'priceGroups': url('json_priceCalculator_price_groups'),
'tickets': url('json_priceCalculator_tickets'),
},
'seasons': {
'preseason': "shop.configuration.preseason"|trans,
'midseason': "shop.configuration.midseason"|trans,
'highseason': "shop.configuration.highseason"|trans
},
'priceTendencyLegend': {
"low": "shop.configuration.low"|trans,
"rather-low": "shop.configuration.rather-low"|trans,
"normal": "shop.configuration.normal"|trans,
"rather-high": "shop.configuration.rather-high"|trans,
"high": "shop.configuration.high"|trans,
},
'currencyRates': {
'EUR': castFloat(pimcore_website_config('exchangeRateEUR', 1)),
'CHF': 1,
'USD': castFloat(pimcore_website_config('exchangeRateUSD', 1))
},
'csrfToken': 'csrfToken',
'successUrls': {
'cart': url('cart_list'),
'checkout': url('checkout_login'),
'continueShopping': getSiteConfig().shopOverview() ? getSiteConfig().shopOverview().fullPath() : '#'
},
'verificationText': "shop.configuration.verification-config-text"|trans,
'priceTendencyLegendActivities': {
"sold-out": "shop.configuration-event.sold-out"|trans,
"low": "shop.configuration-event.normal"|trans,
"rather-high": "shop.configuration-event.rather-low"|trans,
"high": "shop.configuration-event.low"|trans
},
}) %}