Coberturas y garantías adicionales
close- Responsabilidad Civil Explotación Sin sublímite
- Responsabilidad Civil Patronal (Sublímite por víctima) 150.000 €
- Procedimientos disciplinarios 5.000,00 €
- Sanciones en materia de protección de datos 60.000,00 €
- Infidelidad de Empleados 60.000,00 €
- Restitución de imagen (Post-siniestro) 15.000,00 €
- Costes de evitación o mitigación (Pre-siniestro) 15.000,00 €
- Pérdida de documentos 60.000,00 €
- Asistencia psicológica 5.000,00 €
- Persona clave / Keyman 5.000,00 €
- Derecho al olvido 5.000,00 €
Política de privacidad
close¿Deseas recibir la cotización por email?
closeRecibirás la documentación en Notice (8): Undefined variable: quote [APP/View/Elements/Widgets/widget21.ctp, line 1612]
</div>
<div class="modal-body">
<p>Recibirás la documentación en <span class="text-mail"><?php echo $quote['Contact']['email']; ?></span></p>$viewFile = '/var/www/www.galia.qbind.eu/app/View/Elements/Widgets/widget21.ctp'
$dataForView = array(
'website_id' => '1',
'folder_img' => 'galia',
'pageContent' => array(
'Content' => array(
'id' => (int) 249,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 122,
'class_button' => '0',
'maintitle' => '13 Calcular Seguro de Asistencia en Viaje Galia',
'subtitle' => 'Calcular Seguro de Asistencia en Viaje Galia',
'meta_title' => 'Calcular Seguro de Asistencia en Viaje Galia',
'meta_key' => 'Calcular seguro de asistencia en viaje galia',
'meta_desc' => 'Calcular Seguro de Asistencia en Viaje Galia',
'canonical' => null,
'nofollow' => (int) 0,
'robot' => null,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => null,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 122,
'category_id' => (int) 123,
'Category' => array(
[maximum depth reached]
)
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-asistencia-viaje-galia',
'param1' => null,
'param2' => null,
'websites' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'main_menu' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'footer_menu' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'objectsheader' => array(
'Objectsheader' => array(
[maximum depth reached]
),
'Objectswidget' => array(
[maximum depth reached]
)
),
'objectsfooter' => array(),
'all_categories' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
),
(int) 25 => array(
[maximum depth reached]
),
(int) 26 => array(
[maximum depth reached]
),
(int) 27 => array(
[maximum depth reached]
),
(int) 28 => array(
[maximum depth reached]
),
(int) 29 => array(
[maximum depth reached]
),
(int) 30 => array(
[maximum depth reached]
),
(int) 31 => array(
[maximum depth reached]
),
(int) 32 => array(
[maximum depth reached]
),
(int) 33 => array(
[maximum depth reached]
),
(int) 34 => array(
[maximum depth reached]
),
(int) 35 => array(
[maximum depth reached]
),
(int) 36 => array(
[maximum depth reached]
),
(int) 37 => array(
[maximum depth reached]
),
(int) 38 => array(
[maximum depth reached]
),
(int) 39 => array(
[maximum depth reached]
),
(int) 40 => array(
[maximum depth reached]
),
(int) 41 => array(
[maximum depth reached]
),
(int) 42 => array(
[maximum depth reached]
),
(int) 43 => array(
[maximum depth reached]
),
(int) 44 => array(
[maximum depth reached]
),
(int) 45 => array(
[maximum depth reached]
),
(int) 46 => array(
[maximum depth reached]
),
(int) 47 => array(
[maximum depth reached]
),
(int) 48 => array(
[maximum depth reached]
),
(int) 49 => array(
[maximum depth reached]
),
(int) 50 => array(
[maximum depth reached]
),
(int) 51 => array(
[maximum depth reached]
),
(int) 52 => array(
[maximum depth reached]
),
(int) 53 => array(
[maximum depth reached]
),
(int) 54 => array(
[maximum depth reached]
),
(int) 55 => array(
[maximum depth reached]
),
(int) 56 => array(
[maximum depth reached]
),
(int) 57 => array(
[maximum depth reached]
),
(int) 58 => array(
[maximum depth reached]
),
(int) 59 => array(
[maximum depth reached]
),
(int) 60 => array(
[maximum depth reached]
),
(int) 61 => array(
[maximum depth reached]
),
(int) 62 => array(
[maximum depth reached]
),
(int) 63 => array(
[maximum depth reached]
),
(int) 64 => array(
[maximum depth reached]
),
(int) 65 => array(
[maximum depth reached]
),
(int) 66 => array(
[maximum depth reached]
),
(int) 67 => array(
[maximum depth reached]
),
(int) 68 => array(
[maximum depth reached]
),
(int) 69 => array(
[maximum depth reached]
),
(int) 70 => array(
[maximum depth reached]
),
(int) 71 => array(
[maximum depth reached]
),
(int) 72 => array(
[maximum depth reached]
),
(int) 73 => array(
[maximum depth reached]
),
(int) 74 => array(
[maximum depth reached]
),
(int) 75 => array(
[maximum depth reached]
),
(int) 76 => array(
[maximum depth reached]
),
(int) 77 => array(
[maximum depth reached]
),
(int) 78 => array(
[maximum depth reached]
),
(int) 79 => array(
[maximum depth reached]
),
(int) 80 => array(
[maximum depth reached]
),
(int) 81 => array(
[maximum depth reached]
),
(int) 82 => array(
[maximum depth reached]
),
(int) 83 => array(
[maximum depth reached]
),
(int) 84 => array(
[maximum depth reached]
),
(int) 85 => array(
[maximum depth reached]
),
(int) 86 => array(
[maximum depth reached]
),
(int) 87 => array(
[maximum depth reached]
),
(int) 88 => array(
[maximum depth reached]
),
(int) 89 => array(
[maximum depth reached]
),
(int) 90 => array(
[maximum depth reached]
),
(int) 91 => array(
[maximum depth reached]
),
(int) 92 => array(
[maximum depth reached]
),
(int) 93 => array(
[maximum depth reached]
),
(int) 94 => array(
[maximum depth reached]
),
(int) 95 => array(
[maximum depth reached]
),
(int) 96 => array(
[maximum depth reached]
),
(int) 97 => array(
[maximum depth reached]
),
(int) 98 => array(
[maximum depth reached]
)
)
),
'widget' => array(
'id' => (int) 768,
'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://galia.es/especialidades/vacaciones/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '01/10/2024 05:59:40',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 249,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '123',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
'hash' => 'dflisd;fjkhsdkll;sdjk ',
'name' => 'Widget for automatic form Webind',
'description' => 'Widget for automatic form Webind like widget28 but with changed steps',
'owner_id' => null,
'created' => null,
'modified' => null,
'active' => (int) 1,
'publish' => (int) 1,
'id' => (int) 21,
'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,',
'long_description' => '',
'quotelayout' => null,
'core' => '$category_id = $Category.id;
$pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id;
$step = $param1;
$pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step;
if(!empty($param2)){
$quote_hash = $param2;
}
$categorieswebsite = $this->Categorieswebsite->find('first', array(
'conditions' => array(
'Categorieswebsite.website_id' => Configure::read('Website.website_id'),
'Categorieswebsite.category_id' => $category_id
),
'contain' => array(
'Content' => array(
'fields' => array(
'id',
'full_url',
'maintitle',
'use_steps',
),
'conditions' => array(
'Content.active' => 1
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite;
if(!empty($param2)){
$quote_hash = $param2;
}
if(!empty($step)){
if($step == 1){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'category_id',
'retro_effect_id',
'retro_effect',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
// here we are creating all the questions type, what is displayed it decided in the steps
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
$this->loadModel('Item');
$item = $this->Item->find('first', array(
'fields' => array(
'id'
),
'conditions' => array(
'Item.category_id' => $quote['Quote']['category_id'],
),
'contain' => array(
'Option' => array(
'fields' => array(
'id',
'name',
),
'conditions' => array(
'Option.active' => 1,
'Option.macro_option' => 'retroattivita'
),
'order' => array(
'Option.id ASC',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item;
}elseif($step == 2){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST'
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Document8' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document8.active' => 1,
'Document8.public' => 1,
'Document8.documenttype_id' => 8,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document8.id DESC',
),
),
'Document23' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document23.active' => 1,
'Document23.public' => 1,
'Document23.documenttype_id' => 23,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document23.id DESC',
),
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'Optionlabel',
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'premium',
'minimum_premium',
),
),
),
));
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){
foreach($quote['Item']['Option'] as $key => $option){
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
if(!empty($quote['Quote']['value_id'])) {
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.value_id' => $quote['Quote']['value_id'],
),
'contain' => $contain,
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote;
}
}elseif($step == 3){
$this->loadModel('Quote');
$this->Quote->setDataSource('default');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'last_turnover',
'maximum',
'date_effect',
'date_end',
'item_id',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
'Item' => array(
'fields' => array(
'id',
'date_effect_limit_down',
'date_effect_limit_up',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
}elseif($step == 4){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Zipcode');
$zipcodes = $this->Zipcode->list_zipcodes();
$pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes;
}elseif($step == 5){
$this->loadModel('Payment');
$payments = $this->Payment->find('all', array(
'conditions' => array(
'AND' => array(
'Payment.active' => 1,
'Payment.website_id' => Configure::read('Website.website_id'),
'Payment.type' => 2,
),
),
'order' => 'Payment.order',
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments;
$today = date('d/m/Y');
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'fields' => array(
'id',
'name',
'weblabel',
'turnover_type',
'extra_option',
'gross_rate',
'taxes',
'accessories',
),
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST',
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Category' => array(
'fields' => array(
'id',
'name',
)
),
'Document' => array(
'Documenttype',
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'conditions' => array(
'Option.active' => 1,
'Option.default' => 0,
'Option.macro_option' => 'extra',
),
),
'Itemdiscount' => array(
'fields' => array(
'id',
'value',
'code',
),
'conditions' => array(
'Itemdiscount.active' => 1,
'Itemdiscount.apply_id' => 1,
'AND' => array(
'Itemdiscount.date_start <=' => $today,
'Itemdiscount.date_end >=' => $today,
),
),
'order' => array(
'Itemdiscount.id DESC',
),
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'minimum_premium',
'premium',
'deductible',
),
),
),
));
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) {
foreach($quote['Item']['Option'] as $option_key => $option) {
$opt = array();
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$option_key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.value_id' => $quote['Quote']['value_id'],
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.active' => '1'
),
'contain' => $contain,
'recursive' => -1
));
$quote['Quote']['Tempquote'] = $tempquote['Tempquote'];
for ($x = 1; $x <= $options_count; $x++) {
if(!empty($tempquote['Option' . $x])){
$quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Option' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value;
}
}
for ($x = 1; $x <= $extra_count; $x++) {
if(!empty($tempquote['Extra' . $x])){
$quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Extra' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value;
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
}
} else {
$this->loadModel('Privacy');
$privacies = $this->Privacy->getprivacies($category_id);
$pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies;
}
$this->loadModel('Categoryform');
$forms = $this->Categoryform->find('all', array(
'conditions' => array(
'AND' => array(
'Categoryform.active' => 1,
'Categoryform.category_id' => $category_id,
'Categoryform.specialization_id is null',
'Categoryform.option is null',
),
),
'order' => array(
'Categoryform.ord'
),
));
if (!empty($forms)) {
$this->loadModel('Value');
foreach ($forms as $formkey => $form) {
if (!empty($form['Categoryform']['json_values'])) {
$forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true);
}
if (empty($form['Categoryform']['values'])) {
if ($form['Categoryform']['type_form'] == '1') {
$forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label'];
continue;
}
if ($form['Categoryform']['field'] == 'last_turnover') {
$turnovers = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.turnover',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.turnover ASC'
)
));
//$this->log('$turnovers');
//$this->log($turnovers);
//Preparo l'array dei massimali
$turnovers_formatted = array();
foreach ($turnovers as $turnover) {
$turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $turnovers_formatted;
//$this->log('$turnovers_formatted');
//$this->log($turnovers_formatted);
}
if ($form['Categoryform']['field'] == 'maximum') {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
if ($form['Categoryform']['field'] == 'specialization_id') {
$specializations = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.specialization_id',
'Specialization.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Specialization' => array(
'fields' => array(
'id',
'name',
'svg',
),
),
),
'order' => array('Specialization.name asc'),
));
//$this->log('$specializations');
//$this->log($specializations);
if (!empty($specializations)) {
foreach ($specializations as $specialization) {
$forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array(
'id' => $specialization['Specialization']['id'],
'name' => $specialization['Specialization']['name'],
'svg' => $specialization['Specialization']['svg'],
);
}
}
$specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name');
$forms[$formkey]['Categoryform']['values'] = $specializations;
}
if ($form['Categoryform']['field'] == 'option') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'option1') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'year_loan') {
$year_contracts = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.year_contract',
'Value.year_contract'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.year_contract ASC'
),
));
$year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract');
$forms[$formkey]['Categoryform']['values'] = $year_contracts;
}
if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.option' => $form['Categoryform']['option'],
'Value.minimum_premium !=' => '0',
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
}
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms;
',
'filter' => ''
),
'Objectsbox' => array(),
'Objectsboxform' => array(),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
'category_id' => (int) 123,
'step' => '',
'categorieswebsite' => array(
[maximum depth reached]
),
'privacies' => array(
[maximum depth reached]
),
'forms' => array(
[maximum depth reached]
)
)
),
'sitemaps' => '',
'meanrating' => '',
'content_id' => (int) 249,
'ref_categorieswebsite_id' => (int) 122,
'contentColor' => '0'
)
$website_id = '1'
$folder_img = 'galia'
$pageContent = array(
'Content' => array(
'id' => (int) 249,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 122,
'class_button' => '0',
'maintitle' => '13 Calcular Seguro de Asistencia en Viaje Galia',
'subtitle' => 'Calcular Seguro de Asistencia en Viaje Galia',
'meta_title' => 'Calcular Seguro de Asistencia en Viaje Galia',
'meta_key' => 'Calcular seguro de asistencia en viaje galia',
'meta_desc' => 'Calcular Seguro de Asistencia en Viaje Galia',
'canonical' => null,
'nofollow' => (int) 0,
'robot' => null,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => null,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 122,
'category_id' => (int) 123,
'Category' => array(
'id' => (int) 123,
'contact_type' => (int) 2
)
),
'Objectswidget' => array(
(int) 0 => array(
'id' => (int) 768,
'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://galia.es/especialidades/vacaciones/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '01/10/2024 05:59:40',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 249,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '123',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
[maximum depth reached]
),
'Objectsbox' => array([maximum depth reached]),
'Objectsboxform' => array([maximum depth reached]),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
[maximum depth reached]
)
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-asistencia-viaje-galia',
'param1' => null,
'param2' => null,
'websites' => array(
(int) 0 => array(
'Website' => array(
[maximum depth reached]
)
)
),
'main_menu' => array(
(int) 0 => array(
'id' => (int) 4,
'title' => 'Productos',
'slogan' => '',
'button' => 'Productos',
'link' => 'Productos',
'n_items' => (int) 5,
'url' => 'seguros',
'color' => 'green'
)
),
'footer_menu' => array(
(int) 0 => array(
'title' => null,
'url' => null,
'n_items' => null,
'menu' => array(
[maximum depth reached]
)
)
),
'objectsheader' => array(
'Objectsheader' => array(
'id' => (int) 1,
'header_id' => (int) 1
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
)
),
'objectsfooter' => array(),
'all_categories' => array(
(int) 0 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 3 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 4 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 5 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 6 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 7 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 8 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 9 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 10 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 11 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 12 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 13 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 14 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 15 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 16 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 17 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 18 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 19 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 20 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 21 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 22 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 23 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 24 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 25 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 26 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 27 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 28 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 29 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 30 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 31 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 32 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 33 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 34 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 35 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 36 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 37 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 38 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 39 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 40 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 41 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 42 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 43 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 44 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 45 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 46 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 47 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 48 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 49 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 50 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 51 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 52 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 53 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 54 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 55 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 56 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 57 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 58 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 59 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 60 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 61 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 62 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 63 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 64 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 65 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 66 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 67 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 68 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 69 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 70 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 71 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 72 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 73 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 74 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 75 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 76 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 77 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 78 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 79 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 80 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 81 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 82 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 83 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 84 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 85 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 86 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 87 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 88 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 89 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 90 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 91 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 92 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 93 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 94 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 95 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 96 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 97 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 98 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
)
)
)
$widget = array(
'id' => (int) 768,
'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://galia.es/especialidades/vacaciones/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '01/10/2024 05:59:40',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 249,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '123',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
'hash' => 'dflisd;fjkhsdkll;sdjk ',
'name' => 'Widget for automatic form Webind',
'description' => 'Widget for automatic form Webind like widget28 but with changed steps',
'owner_id' => null,
'created' => null,
'modified' => null,
'active' => (int) 1,
'publish' => (int) 1,
'id' => (int) 21,
'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,',
'long_description' => '',
'quotelayout' => null,
'core' => '$category_id = $Category.id;
$pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id;
$step = $param1;
$pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step;
if(!empty($param2)){
$quote_hash = $param2;
}
$categorieswebsite = $this->Categorieswebsite->find('first', array(
'conditions' => array(
'Categorieswebsite.website_id' => Configure::read('Website.website_id'),
'Categorieswebsite.category_id' => $category_id
),
'contain' => array(
'Content' => array(
'fields' => array(
'id',
'full_url',
'maintitle',
'use_steps',
),
'conditions' => array(
'Content.active' => 1
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite;
if(!empty($param2)){
$quote_hash = $param2;
}
if(!empty($step)){
if($step == 1){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'category_id',
'retro_effect_id',
'retro_effect',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
// here we are creating all the questions type, what is displayed it decided in the steps
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
$this->loadModel('Item');
$item = $this->Item->find('first', array(
'fields' => array(
'id'
),
'conditions' => array(
'Item.category_id' => $quote['Quote']['category_id'],
),
'contain' => array(
'Option' => array(
'fields' => array(
'id',
'name',
),
'conditions' => array(
'Option.active' => 1,
'Option.macro_option' => 'retroattivita'
),
'order' => array(
'Option.id ASC',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item;
}elseif($step == 2){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST'
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Document8' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document8.active' => 1,
'Document8.public' => 1,
'Document8.documenttype_id' => 8,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document8.id DESC',
),
),
'Document23' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document23.active' => 1,
'Document23.public' => 1,
'Document23.documenttype_id' => 23,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document23.id DESC',
),
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'Optionlabel',
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'premium',
'minimum_premium',
),
),
),
));
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){
foreach($quote['Item']['Option'] as $key => $option){
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
if(!empty($quote['Quote']['value_id'])) {
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.value_id' => $quote['Quote']['value_id'],
),
'contain' => $contain,
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote;
}
}elseif($step == 3){
$this->loadModel('Quote');
$this->Quote->setDataSource('default');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'last_turnover',
'maximum',
'date_effect',
'date_end',
'item_id',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
'Item' => array(
'fields' => array(
'id',
'date_effect_limit_down',
'date_effect_limit_up',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
}elseif($step == 4){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Zipcode');
$zipcodes = $this->Zipcode->list_zipcodes();
$pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes;
}elseif($step == 5){
$this->loadModel('Payment');
$payments = $this->Payment->find('all', array(
'conditions' => array(
'AND' => array(
'Payment.active' => 1,
'Payment.website_id' => Configure::read('Website.website_id'),
'Payment.type' => 2,
),
),
'order' => 'Payment.order',
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments;
$today = date('d/m/Y');
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'fields' => array(
'id',
'name',
'weblabel',
'turnover_type',
'extra_option',
'gross_rate',
'taxes',
'accessories',
),
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST',
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Category' => array(
'fields' => array(
'id',
'name',
)
),
'Document' => array(
'Documenttype',
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'conditions' => array(
'Option.active' => 1,
'Option.default' => 0,
'Option.macro_option' => 'extra',
),
),
'Itemdiscount' => array(
'fields' => array(
'id',
'value',
'code',
),
'conditions' => array(
'Itemdiscount.active' => 1,
'Itemdiscount.apply_id' => 1,
'AND' => array(
'Itemdiscount.date_start <=' => $today,
'Itemdiscount.date_end >=' => $today,
),
),
'order' => array(
'Itemdiscount.id DESC',
),
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'minimum_premium',
'premium',
'deductible',
),
),
),
));
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) {
foreach($quote['Item']['Option'] as $option_key => $option) {
$opt = array();
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$option_key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.value_id' => $quote['Quote']['value_id'],
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.active' => '1'
),
'contain' => $contain,
'recursive' => -1
));
$quote['Quote']['Tempquote'] = $tempquote['Tempquote'];
for ($x = 1; $x <= $options_count; $x++) {
if(!empty($tempquote['Option' . $x])){
$quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Option' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value;
}
}
for ($x = 1; $x <= $extra_count; $x++) {
if(!empty($tempquote['Extra' . $x])){
$quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Extra' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value;
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
}
} else {
$this->loadModel('Privacy');
$privacies = $this->Privacy->getprivacies($category_id);
$pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies;
}
$this->loadModel('Categoryform');
$forms = $this->Categoryform->find('all', array(
'conditions' => array(
'AND' => array(
'Categoryform.active' => 1,
'Categoryform.category_id' => $category_id,
'Categoryform.specialization_id is null',
'Categoryform.option is null',
),
),
'order' => array(
'Categoryform.ord'
),
));
if (!empty($forms)) {
$this->loadModel('Value');
foreach ($forms as $formkey => $form) {
if (!empty($form['Categoryform']['json_values'])) {
$forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true);
}
if (empty($form['Categoryform']['values'])) {
if ($form['Categoryform']['type_form'] == '1') {
$forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label'];
continue;
}
if ($form['Categoryform']['field'] == 'last_turnover') {
$turnovers = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.turnover',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.turnover ASC'
)
));
//$this->log('$turnovers');
//$this->log($turnovers);
//Preparo l'array dei massimali
$turnovers_formatted = array();
foreach ($turnovers as $turnover) {
$turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $turnovers_formatted;
//$this->log('$turnovers_formatted');
//$this->log($turnovers_formatted);
}
if ($form['Categoryform']['field'] == 'maximum') {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
if ($form['Categoryform']['field'] == 'specialization_id') {
$specializations = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.specialization_id',
'Specialization.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Specialization' => array(
'fields' => array(
'id',
'name',
'svg',
),
),
),
'order' => array('Specialization.name asc'),
));
//$this->log('$specializations');
//$this->log($specializations);
if (!empty($specializations)) {
foreach ($specializations as $specialization) {
$forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array(
'id' => $specialization['Specialization']['id'],
'name' => $specialization['Specialization']['name'],
'svg' => $specialization['Specialization']['svg'],
);
}
}
$specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name');
$forms[$formkey]['Categoryform']['values'] = $specializations;
}
if ($form['Categoryform']['field'] == 'option') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'option1') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'year_loan') {
$year_contracts = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.year_contract',
'Value.year_contract'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.year_contract ASC'
),
));
$year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract');
$forms[$formkey]['Categoryform']['values'] = $year_contracts;
}
if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.option' => $form['Categoryform']['option'],
'Value.minimum_premium !=' => '0',
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
}
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms;
',
'filter' => ''
),
'Objectsbox' => array(),
'Objectsboxform' => array(),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
'category_id' => (int) 123,
'step' => '',
'categorieswebsite' => array(
'Categorieswebsite' => array(
[maximum depth reached]
),
'Content' => array(
[maximum depth reached]
)
),
'privacies' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'forms' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
)
)
)
)
$sitemaps = ''
$meanrating = ''
$content_id = (int) 249
$ref_categorieswebsite_id = (int) 122
$contentColor = '0'
$quoteview_id = (int) 37
$category_id = (int) 123
$step = (int) 0
$use_steps = (int) 1
$quote_url = '/quotes/steps_beforeselect'
$categorieswebsite = array(
'Categorieswebsite' => array(
'id' => (int) 122,
'category_id' => (int) 123,
'website_id' => (int) 1,
'active' => (int) 1,
'weblabel' => 'Seguro de Asistencia en Viaje Galia',
'online_enable' => (int) 1,
'internal_enable' => (int) 1,
'sender_name' => 'Galia - Seguros',
'sender_email' => 'info@galia.qbind.eu',
'parent_id' => (int) 121,
'content_type' => (int) 3,
'hash' => '120fba8758b6660a05ba6a59524a2cd67488a7ec',
'host_id' => null,
'created' => '30/07/2024 09:07:56',
'modified' => '25/04/2025 07:42:54',
'ord' => (int) 1
),
'Content' => array(
(int) 0 => array(
'id' => (int) 235,
'full_url' => 'galia/seguros-galia/calcular-seguro-asistencia-viaje-galia',
'maintitle' => 'Seguro de Asistencia en Viaje Galia',
'use_steps' => null,
'categorieswebsite_id' => (int) 122
)
)
)
$privacies = array(
(int) 0 => array(
'Privacy' => array(
'id' => (int) 4,
'parent_id' => null,
'type_form' => (int) 1,
'is_parent' => null,
'name' => 'Privacy for Seguros',
'description' => 'He leído y acepto los términos y condiciones de <a class="link-pink" href="https://galia.es/politica-privacidad/" target="_blank">La política de privacidad</a>.',
'error_msg' => 'Por favor confirme que ha leído y aceptado los términos y condiciones de la política de privacidad',
'ord' => (int) 2,
'required' => (int) 1
)
)
)
$forms = array(
(int) 0 => array(
'Categoryform' => array(
'id' => (int) 234,
'active' => (int) 1,
'hash' => '0063330aa76f93c808e98204dfc0126ea2f8e160',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'date_effect',
'type_form' => (int) 5,
'conditions' => null,
'sort' => null,
'json_values' => 'Fecha de Inicio del viaje',
'label' => 'Fecha de inicio',
'ord' => (int) 1,
'created' => '04/09/2024 09:46:28',
'modified' => '17/06/2025 10:56:27',
'parent_field' => '',
'tooltip_title' => 'Fecha de inicio',
'tooltip_content' => 'Selecciona el día a partir del cual la póliza entrará en vigor.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => null
)
),
(int) 1 => array(
'Categoryform' => array(
'id' => (int) 235,
'active' => (int) 1,
'hash' => 'bf5d78016afc87be2af17a6dc420d63aaf762ba1',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'date_end',
'type_form' => (int) 5,
'conditions' => null,
'sort' => null,
'json_values' => 'Fecha de finalización de la póliza',
'label' => 'Fecha de finalización',
'ord' => (int) 2,
'created' => '04/09/2024 09:47:06',
'modified' => '17/06/2025 10:56:45',
'parent_field' => '',
'tooltip_title' => 'Fecha de finalización',
'tooltip_content' => 'Selecciona el último día de validez de la póliza. No puede superar los 49 días luego de la fecha de inicio.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => null
)
),
(int) 2 => array(
'Categoryform' => array(
'id' => (int) 191,
'active' => (int) 1,
'hash' => '28d39749c9ae852aaa76890abd9a1a7aaff07837',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'maximum',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => 'Maximo',
'label' => 'Límite máximo de cobertura',
'ord' => (int) 3,
'created' => '01/08/2024 10:52:10',
'modified' => '31/10/2024 11:39:41',
'parent_field' => '',
'tooltip_title' => 'Límite de cobertura',
'tooltip_content' => 'Seleccione el máximo límite que desee asegurar.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 3 => array(
'Categoryform' => array(
'id' => (int) 236,
'active' => (int) 1,
'hash' => '058459c16364aee7539d1526cc8093a8c7b9da22',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'option',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Lugar de destino',
'ord' => (int) 4,
'created' => '04/09/2024 10:04:27',
'modified' => '31/10/2024 10:27:27',
'parent_field' => '',
'tooltip_title' => 'Detalle de las opciones:',
'tooltip_content' => 'Listado de países de EUROPA incluye países ribereños del mediterráneo:
Albania, Austria, Alemania, Andorra, Armenia, Azerbaiyán, Bélgica, Bielorrusia, Bosnia y Herzegovina, Bulgaria, Ciudad del Vaticano, Chipre, Croacia, Dinamarca, Eslovaquia, Eslovenia, España, Estonia, Finlandia, Francia, Georgia, Grecia, Hungría, Irlanda, Islandia, Italia, Letonia, Liechtenstein, Lituania, Luxemburgo, República de Macedonia del Norte, Malta, Moldavia, Mónaco, Montenegro, Noruega, Países Bajos, Polonia, Portugal, Reino Unido, República Checa, Rumania, San Marino, Serbia, Suecia, Suiza, Turquía y Ucrania, Islas Canarias, Azores, Madeira, Marruecos, Argelia, Túnez, Libia, Líbano, Egipto e Israel.
Listado de países MUNDO:
Afganistán,Albania,Alemania,Andorra,Angola,Antártida,Antigua y Barbuda,Antillas Neerlandesas, Arabia Saudí, Argelia, Argentina, Armenia, Aruba, Australia, Austria, Azerbaiyán, Bahamas, Bahráin, Bangladesh, Barbados, Bélgica, Belice, Benín, Bermudas, Bielorrusia, Bolivia, Bosnia-Herzegovina, Botsuana, Brasil, Brunei, Darussalam, Bulgaria, Burkina Faso, Burundi, Bután, Cabo Verde, Camboya, Camerún, Canadá, Chad, Chile, China, Chipre, Ciudad Vaticano, Colombia, Comoras, Corea del Norte, Corea del Sur, Costa de Marfil, Costa Rica, Croacia, Cuba, de Anguilla, Dinamarca, Dominica, Ecuador, EE.UU., Egipto, El Salvador, Emiratos Árabes Unidos, Eritrea, Eslovaquia, Eslovenia, España, Estonia, Etiopía, Federación Rusa, Filipinas, Finlandia, Fiyi, Francia, Gabón, Gambia, Georgia, Ghana, Gibraltar, Granada, Grecia, Groenlandia, Guadalupe, Guam, Guatemala, Guayana Francesa, Guinea, Guinea Ecuatorial, Guinea-Bissau, Guyana, Haití, Honduras, Hong Kong, Hungría, India, Indonesia, Irán, Iraq, Irlanda, Isla Christmas, Islandia, Islas Bouvet, Islas Caimán, Islas Cocos, Islas Cook, Islas Feroe, Islas Heard y Mcdonald, Islas Malvinas, Islas Marianas del Norte, Islas Marshall, Islas menores alejadas de EE.UU., Islas Niue, IslasNorfolk, Islas Pitcairn, Islas Salomón, Islas Sur Georgia y Sur Sandwich, Islas Tokelau, Islas Turcas y Caicos, Islas Vírgenes (americanas), Islas Vírgenes GB, Israel, Italia, Jamaica, Japón, Jordania, Kazajistán, Kenia, Kirguizistán, Kiribati, Kuwait, Laos, Lesoto, Letonia, Líbano, Liberia, Libia, Liechtenstein, Lituania, Luxemburgo, Macao, Macedonia, Madagascar, Malasia, Malaui, Maldivas, Malí, Malta, Marruecos, Martinica, Mauricio (Isl.), Mauritania, Mayotte, México, Micronesia, Moldavia, Mónaco, Mongolia, Montenegro, Montserrat, Mozambique, Myanmar, Namibia, Nauru, Nepal, Nicaragua, Níger, Nigeria, Noruega, Nueva Caledonia, Nueva Zelanda, Omán, Países Bajos, Pakistán, Palaos, Palestina, Panamá, Papúa Nueva Guinea, Paraguay, Perú, Polinesia francesa, Polonia, Portugal, Puerto Rico, Qatar, Reino Unido, República centroafricana, República Checa, República del Congo, República del Congo, República Dominicana, Reunión, Ruanda, Rumanía, Sáhara occidental, Saint Kitts y Nevis, Samoa americana, Samoa Occidental, San Marino, San Vicente y las Granadinas, Santa Helena, Santa Lucía,Santo Tomé y Príncipe, Senegal, Serbia, Seychelles,Sierra Leona, Singapur, Siria, Somalia,Sri Lanka,St. Pedro y Miquelón, Suazilandia, Sudáfrica,S udán,Sudán Sur, Suecia, Suiza, Surinam, Svalbard, Tailandia, Taiwan, Tanzania, Tayikistán, Territorio británico en Océano Índico, Timor Oriental, Timor oriental, Togo, Tonga,Trinidad y Tobago, Túnez,Turkmenistán,Turquía, Tuvalu, Ucrania, Uganda, Uruguay, Uzbekistán, Vanuatu, Venezuela, Vietnam, Wallis, Futuna, Yemen, Yibuti, Zambia, Zimbabue.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 4 => array(
'Categoryform' => array(
'id' => (int) 238,
'active' => (int) 1,
'hash' => '93acdecf4eaf3aba020a38e8d3870224ca0ada8f',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'option1',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Altitud del destino turístico',
'ord' => (int) 6,
'created' => '04/09/2024 11:27:40',
'modified' => '11/10/2024 09:22:47',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '¿Cúal es el límite máximo de altitud que vas a alcanzar realizando tus actividades de aventura?',
'host_id' => null,
'tooltip_content_modal' => null,
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 5 => array(
'Categoryform' => array(
'id' => (int) 239,
'active' => (int) 1,
'hash' => 'df31afe9e05363175cb15f60dd5ae16da74ce3b3',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'nr_people',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '{"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9"}',
'label' => 'Datos de los participantes',
'ord' => (int) 7,
'created' => '04/09/2024 11:37:04',
'modified' => '03/06/2025 06:30:33',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => 'Selecciona el número máximo de personas aseguradas, teniendo en cuenta que la edad máxima de cualquier viaje al momento de la contratación de la póliza es de 70 años.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
)
)
$user_agent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)'
$autocomplete = 'off'
$class = 'green'
$contact_type = (int) 2
$use_query = null
$current_url = 'galia/seguros-galia/calcular-seguro-asistencia-viaje-galia'
$urls = array(
(int) 0 => 'galia',
(int) 1 => 'seguros-galia',
(int) 2 => 'calcular-seguro-asistencia-viaje-galia'
)
$step_title = ''
$steps = (int) 0include - APP/View/Elements/Widgets/widget21.ctp, line 1612
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Pages/content.ctp, line 33
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
Notice (8): Trying to access array offset on value of type null [APP/View/Elements/Widgets/widget21.ctp, line 1612]
</div>
<div class="modal-body">
<p>Recibirás la documentación en <span class="text-mail"><?php echo $quote['Contact']['email']; ?></span></p>$viewFile = '/var/www/www.galia.qbind.eu/app/View/Elements/Widgets/widget21.ctp'
$dataForView = array(
'website_id' => '1',
'folder_img' => 'galia',
'pageContent' => array(
'Content' => array(
'id' => (int) 249,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 122,
'class_button' => '0',
'maintitle' => '13 Calcular Seguro de Asistencia en Viaje Galia',
'subtitle' => 'Calcular Seguro de Asistencia en Viaje Galia',
'meta_title' => 'Calcular Seguro de Asistencia en Viaje Galia',
'meta_key' => 'Calcular seguro de asistencia en viaje galia',
'meta_desc' => 'Calcular Seguro de Asistencia en Viaje Galia',
'canonical' => null,
'nofollow' => (int) 0,
'robot' => null,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => null,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 122,
'category_id' => (int) 123,
'Category' => array(
[maximum depth reached]
)
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-asistencia-viaje-galia',
'param1' => null,
'param2' => null,
'websites' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'main_menu' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'footer_menu' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'objectsheader' => array(
'Objectsheader' => array(
[maximum depth reached]
),
'Objectswidget' => array(
[maximum depth reached]
)
),
'objectsfooter' => array(),
'all_categories' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
),
(int) 25 => array(
[maximum depth reached]
),
(int) 26 => array(
[maximum depth reached]
),
(int) 27 => array(
[maximum depth reached]
),
(int) 28 => array(
[maximum depth reached]
),
(int) 29 => array(
[maximum depth reached]
),
(int) 30 => array(
[maximum depth reached]
),
(int) 31 => array(
[maximum depth reached]
),
(int) 32 => array(
[maximum depth reached]
),
(int) 33 => array(
[maximum depth reached]
),
(int) 34 => array(
[maximum depth reached]
),
(int) 35 => array(
[maximum depth reached]
),
(int) 36 => array(
[maximum depth reached]
),
(int) 37 => array(
[maximum depth reached]
),
(int) 38 => array(
[maximum depth reached]
),
(int) 39 => array(
[maximum depth reached]
),
(int) 40 => array(
[maximum depth reached]
),
(int) 41 => array(
[maximum depth reached]
),
(int) 42 => array(
[maximum depth reached]
),
(int) 43 => array(
[maximum depth reached]
),
(int) 44 => array(
[maximum depth reached]
),
(int) 45 => array(
[maximum depth reached]
),
(int) 46 => array(
[maximum depth reached]
),
(int) 47 => array(
[maximum depth reached]
),
(int) 48 => array(
[maximum depth reached]
),
(int) 49 => array(
[maximum depth reached]
),
(int) 50 => array(
[maximum depth reached]
),
(int) 51 => array(
[maximum depth reached]
),
(int) 52 => array(
[maximum depth reached]
),
(int) 53 => array(
[maximum depth reached]
),
(int) 54 => array(
[maximum depth reached]
),
(int) 55 => array(
[maximum depth reached]
),
(int) 56 => array(
[maximum depth reached]
),
(int) 57 => array(
[maximum depth reached]
),
(int) 58 => array(
[maximum depth reached]
),
(int) 59 => array(
[maximum depth reached]
),
(int) 60 => array(
[maximum depth reached]
),
(int) 61 => array(
[maximum depth reached]
),
(int) 62 => array(
[maximum depth reached]
),
(int) 63 => array(
[maximum depth reached]
),
(int) 64 => array(
[maximum depth reached]
),
(int) 65 => array(
[maximum depth reached]
),
(int) 66 => array(
[maximum depth reached]
),
(int) 67 => array(
[maximum depth reached]
),
(int) 68 => array(
[maximum depth reached]
),
(int) 69 => array(
[maximum depth reached]
),
(int) 70 => array(
[maximum depth reached]
),
(int) 71 => array(
[maximum depth reached]
),
(int) 72 => array(
[maximum depth reached]
),
(int) 73 => array(
[maximum depth reached]
),
(int) 74 => array(
[maximum depth reached]
),
(int) 75 => array(
[maximum depth reached]
),
(int) 76 => array(
[maximum depth reached]
),
(int) 77 => array(
[maximum depth reached]
),
(int) 78 => array(
[maximum depth reached]
),
(int) 79 => array(
[maximum depth reached]
),
(int) 80 => array(
[maximum depth reached]
),
(int) 81 => array(
[maximum depth reached]
),
(int) 82 => array(
[maximum depth reached]
),
(int) 83 => array(
[maximum depth reached]
),
(int) 84 => array(
[maximum depth reached]
),
(int) 85 => array(
[maximum depth reached]
),
(int) 86 => array(
[maximum depth reached]
),
(int) 87 => array(
[maximum depth reached]
),
(int) 88 => array(
[maximum depth reached]
),
(int) 89 => array(
[maximum depth reached]
),
(int) 90 => array(
[maximum depth reached]
),
(int) 91 => array(
[maximum depth reached]
),
(int) 92 => array(
[maximum depth reached]
),
(int) 93 => array(
[maximum depth reached]
),
(int) 94 => array(
[maximum depth reached]
),
(int) 95 => array(
[maximum depth reached]
),
(int) 96 => array(
[maximum depth reached]
),
(int) 97 => array(
[maximum depth reached]
),
(int) 98 => array(
[maximum depth reached]
)
)
),
'widget' => array(
'id' => (int) 768,
'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://galia.es/especialidades/vacaciones/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '01/10/2024 05:59:40',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 249,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '123',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
'hash' => 'dflisd;fjkhsdkll;sdjk ',
'name' => 'Widget for automatic form Webind',
'description' => 'Widget for automatic form Webind like widget28 but with changed steps',
'owner_id' => null,
'created' => null,
'modified' => null,
'active' => (int) 1,
'publish' => (int) 1,
'id' => (int) 21,
'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,',
'long_description' => '',
'quotelayout' => null,
'core' => '$category_id = $Category.id;
$pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id;
$step = $param1;
$pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step;
if(!empty($param2)){
$quote_hash = $param2;
}
$categorieswebsite = $this->Categorieswebsite->find('first', array(
'conditions' => array(
'Categorieswebsite.website_id' => Configure::read('Website.website_id'),
'Categorieswebsite.category_id' => $category_id
),
'contain' => array(
'Content' => array(
'fields' => array(
'id',
'full_url',
'maintitle',
'use_steps',
),
'conditions' => array(
'Content.active' => 1
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite;
if(!empty($param2)){
$quote_hash = $param2;
}
if(!empty($step)){
if($step == 1){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'category_id',
'retro_effect_id',
'retro_effect',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
// here we are creating all the questions type, what is displayed it decided in the steps
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
$this->loadModel('Item');
$item = $this->Item->find('first', array(
'fields' => array(
'id'
),
'conditions' => array(
'Item.category_id' => $quote['Quote']['category_id'],
),
'contain' => array(
'Option' => array(
'fields' => array(
'id',
'name',
),
'conditions' => array(
'Option.active' => 1,
'Option.macro_option' => 'retroattivita'
),
'order' => array(
'Option.id ASC',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item;
}elseif($step == 2){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST'
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Document8' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document8.active' => 1,
'Document8.public' => 1,
'Document8.documenttype_id' => 8,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document8.id DESC',
),
),
'Document23' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document23.active' => 1,
'Document23.public' => 1,
'Document23.documenttype_id' => 23,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document23.id DESC',
),
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'Optionlabel',
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'premium',
'minimum_premium',
),
),
),
));
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){
foreach($quote['Item']['Option'] as $key => $option){
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
if(!empty($quote['Quote']['value_id'])) {
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.value_id' => $quote['Quote']['value_id'],
),
'contain' => $contain,
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote;
}
}elseif($step == 3){
$this->loadModel('Quote');
$this->Quote->setDataSource('default');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'last_turnover',
'maximum',
'date_effect',
'date_end',
'item_id',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
'Item' => array(
'fields' => array(
'id',
'date_effect_limit_down',
'date_effect_limit_up',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
}elseif($step == 4){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Zipcode');
$zipcodes = $this->Zipcode->list_zipcodes();
$pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes;
}elseif($step == 5){
$this->loadModel('Payment');
$payments = $this->Payment->find('all', array(
'conditions' => array(
'AND' => array(
'Payment.active' => 1,
'Payment.website_id' => Configure::read('Website.website_id'),
'Payment.type' => 2,
),
),
'order' => 'Payment.order',
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments;
$today = date('d/m/Y');
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'fields' => array(
'id',
'name',
'weblabel',
'turnover_type',
'extra_option',
'gross_rate',
'taxes',
'accessories',
),
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST',
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Category' => array(
'fields' => array(
'id',
'name',
)
),
'Document' => array(
'Documenttype',
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'conditions' => array(
'Option.active' => 1,
'Option.default' => 0,
'Option.macro_option' => 'extra',
),
),
'Itemdiscount' => array(
'fields' => array(
'id',
'value',
'code',
),
'conditions' => array(
'Itemdiscount.active' => 1,
'Itemdiscount.apply_id' => 1,
'AND' => array(
'Itemdiscount.date_start <=' => $today,
'Itemdiscount.date_end >=' => $today,
),
),
'order' => array(
'Itemdiscount.id DESC',
),
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'minimum_premium',
'premium',
'deductible',
),
),
),
));
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) {
foreach($quote['Item']['Option'] as $option_key => $option) {
$opt = array();
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$option_key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.value_id' => $quote['Quote']['value_id'],
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.active' => '1'
),
'contain' => $contain,
'recursive' => -1
));
$quote['Quote']['Tempquote'] = $tempquote['Tempquote'];
for ($x = 1; $x <= $options_count; $x++) {
if(!empty($tempquote['Option' . $x])){
$quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Option' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value;
}
}
for ($x = 1; $x <= $extra_count; $x++) {
if(!empty($tempquote['Extra' . $x])){
$quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Extra' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value;
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
}
} else {
$this->loadModel('Privacy');
$privacies = $this->Privacy->getprivacies($category_id);
$pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies;
}
$this->loadModel('Categoryform');
$forms = $this->Categoryform->find('all', array(
'conditions' => array(
'AND' => array(
'Categoryform.active' => 1,
'Categoryform.category_id' => $category_id,
'Categoryform.specialization_id is null',
'Categoryform.option is null',
),
),
'order' => array(
'Categoryform.ord'
),
));
if (!empty($forms)) {
$this->loadModel('Value');
foreach ($forms as $formkey => $form) {
if (!empty($form['Categoryform']['json_values'])) {
$forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true);
}
if (empty($form['Categoryform']['values'])) {
if ($form['Categoryform']['type_form'] == '1') {
$forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label'];
continue;
}
if ($form['Categoryform']['field'] == 'last_turnover') {
$turnovers = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.turnover',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.turnover ASC'
)
));
//$this->log('$turnovers');
//$this->log($turnovers);
//Preparo l'array dei massimali
$turnovers_formatted = array();
foreach ($turnovers as $turnover) {
$turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $turnovers_formatted;
//$this->log('$turnovers_formatted');
//$this->log($turnovers_formatted);
}
if ($form['Categoryform']['field'] == 'maximum') {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
if ($form['Categoryform']['field'] == 'specialization_id') {
$specializations = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.specialization_id',
'Specialization.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Specialization' => array(
'fields' => array(
'id',
'name',
'svg',
),
),
),
'order' => array('Specialization.name asc'),
));
//$this->log('$specializations');
//$this->log($specializations);
if (!empty($specializations)) {
foreach ($specializations as $specialization) {
$forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array(
'id' => $specialization['Specialization']['id'],
'name' => $specialization['Specialization']['name'],
'svg' => $specialization['Specialization']['svg'],
);
}
}
$specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name');
$forms[$formkey]['Categoryform']['values'] = $specializations;
}
if ($form['Categoryform']['field'] == 'option') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'option1') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'year_loan') {
$year_contracts = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.year_contract',
'Value.year_contract'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.year_contract ASC'
),
));
$year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract');
$forms[$formkey]['Categoryform']['values'] = $year_contracts;
}
if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.option' => $form['Categoryform']['option'],
'Value.minimum_premium !=' => '0',
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
}
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms;
',
'filter' => ''
),
'Objectsbox' => array(),
'Objectsboxform' => array(),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
'category_id' => (int) 123,
'step' => '',
'categorieswebsite' => array(
[maximum depth reached]
),
'privacies' => array(
[maximum depth reached]
),
'forms' => array(
[maximum depth reached]
)
)
),
'sitemaps' => '',
'meanrating' => '',
'content_id' => (int) 249,
'ref_categorieswebsite_id' => (int) 122,
'contentColor' => '0'
)
$website_id = '1'
$folder_img = 'galia'
$pageContent = array(
'Content' => array(
'id' => (int) 249,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 122,
'class_button' => '0',
'maintitle' => '13 Calcular Seguro de Asistencia en Viaje Galia',
'subtitle' => 'Calcular Seguro de Asistencia en Viaje Galia',
'meta_title' => 'Calcular Seguro de Asistencia en Viaje Galia',
'meta_key' => 'Calcular seguro de asistencia en viaje galia',
'meta_desc' => 'Calcular Seguro de Asistencia en Viaje Galia',
'canonical' => null,
'nofollow' => (int) 0,
'robot' => null,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => null,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 122,
'category_id' => (int) 123,
'Category' => array(
'id' => (int) 123,
'contact_type' => (int) 2
)
),
'Objectswidget' => array(
(int) 0 => array(
'id' => (int) 768,
'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://galia.es/especialidades/vacaciones/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '01/10/2024 05:59:40',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 249,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '123',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
[maximum depth reached]
),
'Objectsbox' => array([maximum depth reached]),
'Objectsboxform' => array([maximum depth reached]),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
[maximum depth reached]
)
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-asistencia-viaje-galia',
'param1' => null,
'param2' => null,
'websites' => array(
(int) 0 => array(
'Website' => array(
[maximum depth reached]
)
)
),
'main_menu' => array(
(int) 0 => array(
'id' => (int) 4,
'title' => 'Productos',
'slogan' => '',
'button' => 'Productos',
'link' => 'Productos',
'n_items' => (int) 5,
'url' => 'seguros',
'color' => 'green'
)
),
'footer_menu' => array(
(int) 0 => array(
'title' => null,
'url' => null,
'n_items' => null,
'menu' => array(
[maximum depth reached]
)
)
),
'objectsheader' => array(
'Objectsheader' => array(
'id' => (int) 1,
'header_id' => (int) 1
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
)
),
'objectsfooter' => array(),
'all_categories' => array(
(int) 0 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 3 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 4 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 5 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 6 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 7 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 8 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 9 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 10 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 11 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 12 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 13 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 14 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 15 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 16 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 17 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 18 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 19 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 20 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 21 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 22 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 23 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 24 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 25 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 26 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 27 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 28 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 29 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 30 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 31 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 32 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 33 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 34 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 35 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 36 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 37 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 38 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 39 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 40 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 41 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 42 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 43 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 44 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 45 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 46 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 47 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 48 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 49 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 50 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 51 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 52 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 53 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 54 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 55 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 56 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 57 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 58 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 59 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 60 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 61 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 62 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 63 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 64 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 65 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 66 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 67 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 68 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 69 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 70 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 71 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 72 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 73 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 74 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 75 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 76 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 77 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 78 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 79 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 80 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 81 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 82 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 83 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 84 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 85 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 86 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 87 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 88 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 89 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 90 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 91 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 92 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 93 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 94 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 95 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 96 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 97 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 98 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
)
)
)
$widget = array(
'id' => (int) 768,
'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://galia.es/especialidades/vacaciones/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '01/10/2024 05:59:40',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 249,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '123',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
'hash' => 'dflisd;fjkhsdkll;sdjk ',
'name' => 'Widget for automatic form Webind',
'description' => 'Widget for automatic form Webind like widget28 but with changed steps',
'owner_id' => null,
'created' => null,
'modified' => null,
'active' => (int) 1,
'publish' => (int) 1,
'id' => (int) 21,
'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,',
'long_description' => '',
'quotelayout' => null,
'core' => '$category_id = $Category.id;
$pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id;
$step = $param1;
$pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step;
if(!empty($param2)){
$quote_hash = $param2;
}
$categorieswebsite = $this->Categorieswebsite->find('first', array(
'conditions' => array(
'Categorieswebsite.website_id' => Configure::read('Website.website_id'),
'Categorieswebsite.category_id' => $category_id
),
'contain' => array(
'Content' => array(
'fields' => array(
'id',
'full_url',
'maintitle',
'use_steps',
),
'conditions' => array(
'Content.active' => 1
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite;
if(!empty($param2)){
$quote_hash = $param2;
}
if(!empty($step)){
if($step == 1){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'category_id',
'retro_effect_id',
'retro_effect',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
// here we are creating all the questions type, what is displayed it decided in the steps
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
$this->loadModel('Item');
$item = $this->Item->find('first', array(
'fields' => array(
'id'
),
'conditions' => array(
'Item.category_id' => $quote['Quote']['category_id'],
),
'contain' => array(
'Option' => array(
'fields' => array(
'id',
'name',
),
'conditions' => array(
'Option.active' => 1,
'Option.macro_option' => 'retroattivita'
),
'order' => array(
'Option.id ASC',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item;
}elseif($step == 2){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST'
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Document8' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document8.active' => 1,
'Document8.public' => 1,
'Document8.documenttype_id' => 8,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document8.id DESC',
),
),
'Document23' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document23.active' => 1,
'Document23.public' => 1,
'Document23.documenttype_id' => 23,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document23.id DESC',
),
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'Optionlabel',
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'premium',
'minimum_premium',
),
),
),
));
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){
foreach($quote['Item']['Option'] as $key => $option){
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
if(!empty($quote['Quote']['value_id'])) {
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.value_id' => $quote['Quote']['value_id'],
),
'contain' => $contain,
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote;
}
}elseif($step == 3){
$this->loadModel('Quote');
$this->Quote->setDataSource('default');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'last_turnover',
'maximum',
'date_effect',
'date_end',
'item_id',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
'Item' => array(
'fields' => array(
'id',
'date_effect_limit_down',
'date_effect_limit_up',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
}elseif($step == 4){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Zipcode');
$zipcodes = $this->Zipcode->list_zipcodes();
$pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes;
}elseif($step == 5){
$this->loadModel('Payment');
$payments = $this->Payment->find('all', array(
'conditions' => array(
'AND' => array(
'Payment.active' => 1,
'Payment.website_id' => Configure::read('Website.website_id'),
'Payment.type' => 2,
),
),
'order' => 'Payment.order',
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments;
$today = date('d/m/Y');
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'fields' => array(
'id',
'name',
'weblabel',
'turnover_type',
'extra_option',
'gross_rate',
'taxes',
'accessories',
),
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST',
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Category' => array(
'fields' => array(
'id',
'name',
)
),
'Document' => array(
'Documenttype',
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'conditions' => array(
'Option.active' => 1,
'Option.default' => 0,
'Option.macro_option' => 'extra',
),
),
'Itemdiscount' => array(
'fields' => array(
'id',
'value',
'code',
),
'conditions' => array(
'Itemdiscount.active' => 1,
'Itemdiscount.apply_id' => 1,
'AND' => array(
'Itemdiscount.date_start <=' => $today,
'Itemdiscount.date_end >=' => $today,
),
),
'order' => array(
'Itemdiscount.id DESC',
),
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'minimum_premium',
'premium',
'deductible',
),
),
),
));
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) {
foreach($quote['Item']['Option'] as $option_key => $option) {
$opt = array();
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$option_key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.value_id' => $quote['Quote']['value_id'],
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.active' => '1'
),
'contain' => $contain,
'recursive' => -1
));
$quote['Quote']['Tempquote'] = $tempquote['Tempquote'];
for ($x = 1; $x <= $options_count; $x++) {
if(!empty($tempquote['Option' . $x])){
$quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Option' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value;
}
}
for ($x = 1; $x <= $extra_count; $x++) {
if(!empty($tempquote['Extra' . $x])){
$quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Extra' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value;
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
}
} else {
$this->loadModel('Privacy');
$privacies = $this->Privacy->getprivacies($category_id);
$pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies;
}
$this->loadModel('Categoryform');
$forms = $this->Categoryform->find('all', array(
'conditions' => array(
'AND' => array(
'Categoryform.active' => 1,
'Categoryform.category_id' => $category_id,
'Categoryform.specialization_id is null',
'Categoryform.option is null',
),
),
'order' => array(
'Categoryform.ord'
),
));
if (!empty($forms)) {
$this->loadModel('Value');
foreach ($forms as $formkey => $form) {
if (!empty($form['Categoryform']['json_values'])) {
$forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true);
}
if (empty($form['Categoryform']['values'])) {
if ($form['Categoryform']['type_form'] == '1') {
$forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label'];
continue;
}
if ($form['Categoryform']['field'] == 'last_turnover') {
$turnovers = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.turnover',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.turnover ASC'
)
));
//$this->log('$turnovers');
//$this->log($turnovers);
//Preparo l'array dei massimali
$turnovers_formatted = array();
foreach ($turnovers as $turnover) {
$turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $turnovers_formatted;
//$this->log('$turnovers_formatted');
//$this->log($turnovers_formatted);
}
if ($form['Categoryform']['field'] == 'maximum') {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
if ($form['Categoryform']['field'] == 'specialization_id') {
$specializations = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.specialization_id',
'Specialization.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Specialization' => array(
'fields' => array(
'id',
'name',
'svg',
),
),
),
'order' => array('Specialization.name asc'),
));
//$this->log('$specializations');
//$this->log($specializations);
if (!empty($specializations)) {
foreach ($specializations as $specialization) {
$forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array(
'id' => $specialization['Specialization']['id'],
'name' => $specialization['Specialization']['name'],
'svg' => $specialization['Specialization']['svg'],
);
}
}
$specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name');
$forms[$formkey]['Categoryform']['values'] = $specializations;
}
if ($form['Categoryform']['field'] == 'option') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'option1') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'year_loan') {
$year_contracts = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.year_contract',
'Value.year_contract'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.year_contract ASC'
),
));
$year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract');
$forms[$formkey]['Categoryform']['values'] = $year_contracts;
}
if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.option' => $form['Categoryform']['option'],
'Value.minimum_premium !=' => '0',
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
}
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms;
',
'filter' => ''
),
'Objectsbox' => array(),
'Objectsboxform' => array(),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
'category_id' => (int) 123,
'step' => '',
'categorieswebsite' => array(
'Categorieswebsite' => array(
[maximum depth reached]
),
'Content' => array(
[maximum depth reached]
)
),
'privacies' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'forms' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
)
)
)
)
$sitemaps = ''
$meanrating = ''
$content_id = (int) 249
$ref_categorieswebsite_id = (int) 122
$contentColor = '0'
$quoteview_id = (int) 37
$category_id = (int) 123
$step = (int) 0
$use_steps = (int) 1
$quote_url = '/quotes/steps_beforeselect'
$categorieswebsite = array(
'Categorieswebsite' => array(
'id' => (int) 122,
'category_id' => (int) 123,
'website_id' => (int) 1,
'active' => (int) 1,
'weblabel' => 'Seguro de Asistencia en Viaje Galia',
'online_enable' => (int) 1,
'internal_enable' => (int) 1,
'sender_name' => 'Galia - Seguros',
'sender_email' => 'info@galia.qbind.eu',
'parent_id' => (int) 121,
'content_type' => (int) 3,
'hash' => '120fba8758b6660a05ba6a59524a2cd67488a7ec',
'host_id' => null,
'created' => '30/07/2024 09:07:56',
'modified' => '25/04/2025 07:42:54',
'ord' => (int) 1
),
'Content' => array(
(int) 0 => array(
'id' => (int) 235,
'full_url' => 'galia/seguros-galia/calcular-seguro-asistencia-viaje-galia',
'maintitle' => 'Seguro de Asistencia en Viaje Galia',
'use_steps' => null,
'categorieswebsite_id' => (int) 122
)
)
)
$privacies = array(
(int) 0 => array(
'Privacy' => array(
'id' => (int) 4,
'parent_id' => null,
'type_form' => (int) 1,
'is_parent' => null,
'name' => 'Privacy for Seguros',
'description' => 'He leído y acepto los términos y condiciones de <a class="link-pink" href="https://galia.es/politica-privacidad/" target="_blank">La política de privacidad</a>.',
'error_msg' => 'Por favor confirme que ha leído y aceptado los términos y condiciones de la política de privacidad',
'ord' => (int) 2,
'required' => (int) 1
)
)
)
$forms = array(
(int) 0 => array(
'Categoryform' => array(
'id' => (int) 234,
'active' => (int) 1,
'hash' => '0063330aa76f93c808e98204dfc0126ea2f8e160',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'date_effect',
'type_form' => (int) 5,
'conditions' => null,
'sort' => null,
'json_values' => 'Fecha de Inicio del viaje',
'label' => 'Fecha de inicio',
'ord' => (int) 1,
'created' => '04/09/2024 09:46:28',
'modified' => '17/06/2025 10:56:27',
'parent_field' => '',
'tooltip_title' => 'Fecha de inicio',
'tooltip_content' => 'Selecciona el día a partir del cual la póliza entrará en vigor.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => null
)
),
(int) 1 => array(
'Categoryform' => array(
'id' => (int) 235,
'active' => (int) 1,
'hash' => 'bf5d78016afc87be2af17a6dc420d63aaf762ba1',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'date_end',
'type_form' => (int) 5,
'conditions' => null,
'sort' => null,
'json_values' => 'Fecha de finalización de la póliza',
'label' => 'Fecha de finalización',
'ord' => (int) 2,
'created' => '04/09/2024 09:47:06',
'modified' => '17/06/2025 10:56:45',
'parent_field' => '',
'tooltip_title' => 'Fecha de finalización',
'tooltip_content' => 'Selecciona el último día de validez de la póliza. No puede superar los 49 días luego de la fecha de inicio.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => null
)
),
(int) 2 => array(
'Categoryform' => array(
'id' => (int) 191,
'active' => (int) 1,
'hash' => '28d39749c9ae852aaa76890abd9a1a7aaff07837',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'maximum',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => 'Maximo',
'label' => 'Límite máximo de cobertura',
'ord' => (int) 3,
'created' => '01/08/2024 10:52:10',
'modified' => '31/10/2024 11:39:41',
'parent_field' => '',
'tooltip_title' => 'Límite de cobertura',
'tooltip_content' => 'Seleccione el máximo límite que desee asegurar.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 3 => array(
'Categoryform' => array(
'id' => (int) 236,
'active' => (int) 1,
'hash' => '058459c16364aee7539d1526cc8093a8c7b9da22',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'option',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Lugar de destino',
'ord' => (int) 4,
'created' => '04/09/2024 10:04:27',
'modified' => '31/10/2024 10:27:27',
'parent_field' => '',
'tooltip_title' => 'Detalle de las opciones:',
'tooltip_content' => 'Listado de países de EUROPA incluye países ribereños del mediterráneo:
Albania, Austria, Alemania, Andorra, Armenia, Azerbaiyán, Bélgica, Bielorrusia, Bosnia y Herzegovina, Bulgaria, Ciudad del Vaticano, Chipre, Croacia, Dinamarca, Eslovaquia, Eslovenia, España, Estonia, Finlandia, Francia, Georgia, Grecia, Hungría, Irlanda, Islandia, Italia, Letonia, Liechtenstein, Lituania, Luxemburgo, República de Macedonia del Norte, Malta, Moldavia, Mónaco, Montenegro, Noruega, Países Bajos, Polonia, Portugal, Reino Unido, República Checa, Rumania, San Marino, Serbia, Suecia, Suiza, Turquía y Ucrania, Islas Canarias, Azores, Madeira, Marruecos, Argelia, Túnez, Libia, Líbano, Egipto e Israel.
Listado de países MUNDO:
Afganistán,Albania,Alemania,Andorra,Angola,Antártida,Antigua y Barbuda,Antillas Neerlandesas, Arabia Saudí, Argelia, Argentina, Armenia, Aruba, Australia, Austria, Azerbaiyán, Bahamas, Bahráin, Bangladesh, Barbados, Bélgica, Belice, Benín, Bermudas, Bielorrusia, Bolivia, Bosnia-Herzegovina, Botsuana, Brasil, Brunei, Darussalam, Bulgaria, Burkina Faso, Burundi, Bután, Cabo Verde, Camboya, Camerún, Canadá, Chad, Chile, China, Chipre, Ciudad Vaticano, Colombia, Comoras, Corea del Norte, Corea del Sur, Costa de Marfil, Costa Rica, Croacia, Cuba, de Anguilla, Dinamarca, Dominica, Ecuador, EE.UU., Egipto, El Salvador, Emiratos Árabes Unidos, Eritrea, Eslovaquia, Eslovenia, España, Estonia, Etiopía, Federación Rusa, Filipinas, Finlandia, Fiyi, Francia, Gabón, Gambia, Georgia, Ghana, Gibraltar, Granada, Grecia, Groenlandia, Guadalupe, Guam, Guatemala, Guayana Francesa, Guinea, Guinea Ecuatorial, Guinea-Bissau, Guyana, Haití, Honduras, Hong Kong, Hungría, India, Indonesia, Irán, Iraq, Irlanda, Isla Christmas, Islandia, Islas Bouvet, Islas Caimán, Islas Cocos, Islas Cook, Islas Feroe, Islas Heard y Mcdonald, Islas Malvinas, Islas Marianas del Norte, Islas Marshall, Islas menores alejadas de EE.UU., Islas Niue, IslasNorfolk, Islas Pitcairn, Islas Salomón, Islas Sur Georgia y Sur Sandwich, Islas Tokelau, Islas Turcas y Caicos, Islas Vírgenes (americanas), Islas Vírgenes GB, Israel, Italia, Jamaica, Japón, Jordania, Kazajistán, Kenia, Kirguizistán, Kiribati, Kuwait, Laos, Lesoto, Letonia, Líbano, Liberia, Libia, Liechtenstein, Lituania, Luxemburgo, Macao, Macedonia, Madagascar, Malasia, Malaui, Maldivas, Malí, Malta, Marruecos, Martinica, Mauricio (Isl.), Mauritania, Mayotte, México, Micronesia, Moldavia, Mónaco, Mongolia, Montenegro, Montserrat, Mozambique, Myanmar, Namibia, Nauru, Nepal, Nicaragua, Níger, Nigeria, Noruega, Nueva Caledonia, Nueva Zelanda, Omán, Países Bajos, Pakistán, Palaos, Palestina, Panamá, Papúa Nueva Guinea, Paraguay, Perú, Polinesia francesa, Polonia, Portugal, Puerto Rico, Qatar, Reino Unido, República centroafricana, República Checa, República del Congo, República del Congo, República Dominicana, Reunión, Ruanda, Rumanía, Sáhara occidental, Saint Kitts y Nevis, Samoa americana, Samoa Occidental, San Marino, San Vicente y las Granadinas, Santa Helena, Santa Lucía,Santo Tomé y Príncipe, Senegal, Serbia, Seychelles,Sierra Leona, Singapur, Siria, Somalia,Sri Lanka,St. Pedro y Miquelón, Suazilandia, Sudáfrica,S udán,Sudán Sur, Suecia, Suiza, Surinam, Svalbard, Tailandia, Taiwan, Tanzania, Tayikistán, Territorio británico en Océano Índico, Timor Oriental, Timor oriental, Togo, Tonga,Trinidad y Tobago, Túnez,Turkmenistán,Turquía, Tuvalu, Ucrania, Uganda, Uruguay, Uzbekistán, Vanuatu, Venezuela, Vietnam, Wallis, Futuna, Yemen, Yibuti, Zambia, Zimbabue.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 4 => array(
'Categoryform' => array(
'id' => (int) 238,
'active' => (int) 1,
'hash' => '93acdecf4eaf3aba020a38e8d3870224ca0ada8f',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'option1',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Altitud del destino turístico',
'ord' => (int) 6,
'created' => '04/09/2024 11:27:40',
'modified' => '11/10/2024 09:22:47',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '¿Cúal es el límite máximo de altitud que vas a alcanzar realizando tus actividades de aventura?',
'host_id' => null,
'tooltip_content_modal' => null,
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 5 => array(
'Categoryform' => array(
'id' => (int) 239,
'active' => (int) 1,
'hash' => 'df31afe9e05363175cb15f60dd5ae16da74ce3b3',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'nr_people',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '{"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9"}',
'label' => 'Datos de los participantes',
'ord' => (int) 7,
'created' => '04/09/2024 11:37:04',
'modified' => '03/06/2025 06:30:33',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => 'Selecciona el número máximo de personas aseguradas, teniendo en cuenta que la edad máxima de cualquier viaje al momento de la contratación de la póliza es de 70 años.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
)
)
$user_agent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)'
$autocomplete = 'off'
$class = 'green'
$contact_type = (int) 2
$use_query = null
$current_url = 'galia/seguros-galia/calcular-seguro-asistencia-viaje-galia'
$urls = array(
(int) 0 => 'galia',
(int) 1 => 'seguros-galia',
(int) 2 => 'calcular-seguro-asistencia-viaje-galia'
)
$step_title = ''
$steps = (int) 0include - APP/View/Elements/Widgets/widget21.ctp, line 1612
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Pages/content.ctp, line 33
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
Notice (8): Trying to access array offset on value of type null [APP/View/Elements/Widgets/widget21.ctp, line 1612]
</div>
<div class="modal-body">
<p>Recibirás la documentación en <span class="text-mail"><?php echo $quote['Contact']['email']; ?></span></p>$viewFile = '/var/www/www.galia.qbind.eu/app/View/Elements/Widgets/widget21.ctp'
$dataForView = array(
'website_id' => '1',
'folder_img' => 'galia',
'pageContent' => array(
'Content' => array(
'id' => (int) 249,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 122,
'class_button' => '0',
'maintitle' => '13 Calcular Seguro de Asistencia en Viaje Galia',
'subtitle' => 'Calcular Seguro de Asistencia en Viaje Galia',
'meta_title' => 'Calcular Seguro de Asistencia en Viaje Galia',
'meta_key' => 'Calcular seguro de asistencia en viaje galia',
'meta_desc' => 'Calcular Seguro de Asistencia en Viaje Galia',
'canonical' => null,
'nofollow' => (int) 0,
'robot' => null,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => null,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 122,
'category_id' => (int) 123,
'Category' => array(
[maximum depth reached]
)
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-asistencia-viaje-galia',
'param1' => null,
'param2' => null,
'websites' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'main_menu' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'footer_menu' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'objectsheader' => array(
'Objectsheader' => array(
[maximum depth reached]
),
'Objectswidget' => array(
[maximum depth reached]
)
),
'objectsfooter' => array(),
'all_categories' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
),
(int) 25 => array(
[maximum depth reached]
),
(int) 26 => array(
[maximum depth reached]
),
(int) 27 => array(
[maximum depth reached]
),
(int) 28 => array(
[maximum depth reached]
),
(int) 29 => array(
[maximum depth reached]
),
(int) 30 => array(
[maximum depth reached]
),
(int) 31 => array(
[maximum depth reached]
),
(int) 32 => array(
[maximum depth reached]
),
(int) 33 => array(
[maximum depth reached]
),
(int) 34 => array(
[maximum depth reached]
),
(int) 35 => array(
[maximum depth reached]
),
(int) 36 => array(
[maximum depth reached]
),
(int) 37 => array(
[maximum depth reached]
),
(int) 38 => array(
[maximum depth reached]
),
(int) 39 => array(
[maximum depth reached]
),
(int) 40 => array(
[maximum depth reached]
),
(int) 41 => array(
[maximum depth reached]
),
(int) 42 => array(
[maximum depth reached]
),
(int) 43 => array(
[maximum depth reached]
),
(int) 44 => array(
[maximum depth reached]
),
(int) 45 => array(
[maximum depth reached]
),
(int) 46 => array(
[maximum depth reached]
),
(int) 47 => array(
[maximum depth reached]
),
(int) 48 => array(
[maximum depth reached]
),
(int) 49 => array(
[maximum depth reached]
),
(int) 50 => array(
[maximum depth reached]
),
(int) 51 => array(
[maximum depth reached]
),
(int) 52 => array(
[maximum depth reached]
),
(int) 53 => array(
[maximum depth reached]
),
(int) 54 => array(
[maximum depth reached]
),
(int) 55 => array(
[maximum depth reached]
),
(int) 56 => array(
[maximum depth reached]
),
(int) 57 => array(
[maximum depth reached]
),
(int) 58 => array(
[maximum depth reached]
),
(int) 59 => array(
[maximum depth reached]
),
(int) 60 => array(
[maximum depth reached]
),
(int) 61 => array(
[maximum depth reached]
),
(int) 62 => array(
[maximum depth reached]
),
(int) 63 => array(
[maximum depth reached]
),
(int) 64 => array(
[maximum depth reached]
),
(int) 65 => array(
[maximum depth reached]
),
(int) 66 => array(
[maximum depth reached]
),
(int) 67 => array(
[maximum depth reached]
),
(int) 68 => array(
[maximum depth reached]
),
(int) 69 => array(
[maximum depth reached]
),
(int) 70 => array(
[maximum depth reached]
),
(int) 71 => array(
[maximum depth reached]
),
(int) 72 => array(
[maximum depth reached]
),
(int) 73 => array(
[maximum depth reached]
),
(int) 74 => array(
[maximum depth reached]
),
(int) 75 => array(
[maximum depth reached]
),
(int) 76 => array(
[maximum depth reached]
),
(int) 77 => array(
[maximum depth reached]
),
(int) 78 => array(
[maximum depth reached]
),
(int) 79 => array(
[maximum depth reached]
),
(int) 80 => array(
[maximum depth reached]
),
(int) 81 => array(
[maximum depth reached]
),
(int) 82 => array(
[maximum depth reached]
),
(int) 83 => array(
[maximum depth reached]
),
(int) 84 => array(
[maximum depth reached]
),
(int) 85 => array(
[maximum depth reached]
),
(int) 86 => array(
[maximum depth reached]
),
(int) 87 => array(
[maximum depth reached]
),
(int) 88 => array(
[maximum depth reached]
),
(int) 89 => array(
[maximum depth reached]
),
(int) 90 => array(
[maximum depth reached]
),
(int) 91 => array(
[maximum depth reached]
),
(int) 92 => array(
[maximum depth reached]
),
(int) 93 => array(
[maximum depth reached]
),
(int) 94 => array(
[maximum depth reached]
),
(int) 95 => array(
[maximum depth reached]
),
(int) 96 => array(
[maximum depth reached]
),
(int) 97 => array(
[maximum depth reached]
),
(int) 98 => array(
[maximum depth reached]
)
)
),
'widget' => array(
'id' => (int) 768,
'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://galia.es/especialidades/vacaciones/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '01/10/2024 05:59:40',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 249,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '123',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
'hash' => 'dflisd;fjkhsdkll;sdjk ',
'name' => 'Widget for automatic form Webind',
'description' => 'Widget for automatic form Webind like widget28 but with changed steps',
'owner_id' => null,
'created' => null,
'modified' => null,
'active' => (int) 1,
'publish' => (int) 1,
'id' => (int) 21,
'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,',
'long_description' => '',
'quotelayout' => null,
'core' => '$category_id = $Category.id;
$pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id;
$step = $param1;
$pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step;
if(!empty($param2)){
$quote_hash = $param2;
}
$categorieswebsite = $this->Categorieswebsite->find('first', array(
'conditions' => array(
'Categorieswebsite.website_id' => Configure::read('Website.website_id'),
'Categorieswebsite.category_id' => $category_id
),
'contain' => array(
'Content' => array(
'fields' => array(
'id',
'full_url',
'maintitle',
'use_steps',
),
'conditions' => array(
'Content.active' => 1
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite;
if(!empty($param2)){
$quote_hash = $param2;
}
if(!empty($step)){
if($step == 1){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'category_id',
'retro_effect_id',
'retro_effect',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
// here we are creating all the questions type, what is displayed it decided in the steps
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
$this->loadModel('Item');
$item = $this->Item->find('first', array(
'fields' => array(
'id'
),
'conditions' => array(
'Item.category_id' => $quote['Quote']['category_id'],
),
'contain' => array(
'Option' => array(
'fields' => array(
'id',
'name',
),
'conditions' => array(
'Option.active' => 1,
'Option.macro_option' => 'retroattivita'
),
'order' => array(
'Option.id ASC',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item;
}elseif($step == 2){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST'
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Document8' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document8.active' => 1,
'Document8.public' => 1,
'Document8.documenttype_id' => 8,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document8.id DESC',
),
),
'Document23' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document23.active' => 1,
'Document23.public' => 1,
'Document23.documenttype_id' => 23,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document23.id DESC',
),
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'Optionlabel',
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'premium',
'minimum_premium',
),
),
),
));
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){
foreach($quote['Item']['Option'] as $key => $option){
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
if(!empty($quote['Quote']['value_id'])) {
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.value_id' => $quote['Quote']['value_id'],
),
'contain' => $contain,
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote;
}
}elseif($step == 3){
$this->loadModel('Quote');
$this->Quote->setDataSource('default');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'last_turnover',
'maximum',
'date_effect',
'date_end',
'item_id',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
'Item' => array(
'fields' => array(
'id',
'date_effect_limit_down',
'date_effect_limit_up',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
}elseif($step == 4){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Zipcode');
$zipcodes = $this->Zipcode->list_zipcodes();
$pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes;
}elseif($step == 5){
$this->loadModel('Payment');
$payments = $this->Payment->find('all', array(
'conditions' => array(
'AND' => array(
'Payment.active' => 1,
'Payment.website_id' => Configure::read('Website.website_id'),
'Payment.type' => 2,
),
),
'order' => 'Payment.order',
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments;
$today = date('d/m/Y');
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'fields' => array(
'id',
'name',
'weblabel',
'turnover_type',
'extra_option',
'gross_rate',
'taxes',
'accessories',
),
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST',
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Category' => array(
'fields' => array(
'id',
'name',
)
),
'Document' => array(
'Documenttype',
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'conditions' => array(
'Option.active' => 1,
'Option.default' => 0,
'Option.macro_option' => 'extra',
),
),
'Itemdiscount' => array(
'fields' => array(
'id',
'value',
'code',
),
'conditions' => array(
'Itemdiscount.active' => 1,
'Itemdiscount.apply_id' => 1,
'AND' => array(
'Itemdiscount.date_start <=' => $today,
'Itemdiscount.date_end >=' => $today,
),
),
'order' => array(
'Itemdiscount.id DESC',
),
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'minimum_premium',
'premium',
'deductible',
),
),
),
));
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) {
foreach($quote['Item']['Option'] as $option_key => $option) {
$opt = array();
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$option_key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.value_id' => $quote['Quote']['value_id'],
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.active' => '1'
),
'contain' => $contain,
'recursive' => -1
));
$quote['Quote']['Tempquote'] = $tempquote['Tempquote'];
for ($x = 1; $x <= $options_count; $x++) {
if(!empty($tempquote['Option' . $x])){
$quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Option' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value;
}
}
for ($x = 1; $x <= $extra_count; $x++) {
if(!empty($tempquote['Extra' . $x])){
$quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Extra' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value;
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
}
} else {
$this->loadModel('Privacy');
$privacies = $this->Privacy->getprivacies($category_id);
$pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies;
}
$this->loadModel('Categoryform');
$forms = $this->Categoryform->find('all', array(
'conditions' => array(
'AND' => array(
'Categoryform.active' => 1,
'Categoryform.category_id' => $category_id,
'Categoryform.specialization_id is null',
'Categoryform.option is null',
),
),
'order' => array(
'Categoryform.ord'
),
));
if (!empty($forms)) {
$this->loadModel('Value');
foreach ($forms as $formkey => $form) {
if (!empty($form['Categoryform']['json_values'])) {
$forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true);
}
if (empty($form['Categoryform']['values'])) {
if ($form['Categoryform']['type_form'] == '1') {
$forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label'];
continue;
}
if ($form['Categoryform']['field'] == 'last_turnover') {
$turnovers = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.turnover',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.turnover ASC'
)
));
//$this->log('$turnovers');
//$this->log($turnovers);
//Preparo l'array dei massimali
$turnovers_formatted = array();
foreach ($turnovers as $turnover) {
$turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $turnovers_formatted;
//$this->log('$turnovers_formatted');
//$this->log($turnovers_formatted);
}
if ($form['Categoryform']['field'] == 'maximum') {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
if ($form['Categoryform']['field'] == 'specialization_id') {
$specializations = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.specialization_id',
'Specialization.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Specialization' => array(
'fields' => array(
'id',
'name',
'svg',
),
),
),
'order' => array('Specialization.name asc'),
));
//$this->log('$specializations');
//$this->log($specializations);
if (!empty($specializations)) {
foreach ($specializations as $specialization) {
$forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array(
'id' => $specialization['Specialization']['id'],
'name' => $specialization['Specialization']['name'],
'svg' => $specialization['Specialization']['svg'],
);
}
}
$specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name');
$forms[$formkey]['Categoryform']['values'] = $specializations;
}
if ($form['Categoryform']['field'] == 'option') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'option1') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'year_loan') {
$year_contracts = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.year_contract',
'Value.year_contract'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.year_contract ASC'
),
));
$year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract');
$forms[$formkey]['Categoryform']['values'] = $year_contracts;
}
if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.option' => $form['Categoryform']['option'],
'Value.minimum_premium !=' => '0',
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
}
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms;
',
'filter' => ''
),
'Objectsbox' => array(),
'Objectsboxform' => array(),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
'category_id' => (int) 123,
'step' => '',
'categorieswebsite' => array(
[maximum depth reached]
),
'privacies' => array(
[maximum depth reached]
),
'forms' => array(
[maximum depth reached]
)
)
),
'sitemaps' => '',
'meanrating' => '',
'content_id' => (int) 249,
'ref_categorieswebsite_id' => (int) 122,
'contentColor' => '0'
)
$website_id = '1'
$folder_img = 'galia'
$pageContent = array(
'Content' => array(
'id' => (int) 249,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 122,
'class_button' => '0',
'maintitle' => '13 Calcular Seguro de Asistencia en Viaje Galia',
'subtitle' => 'Calcular Seguro de Asistencia en Viaje Galia',
'meta_title' => 'Calcular Seguro de Asistencia en Viaje Galia',
'meta_key' => 'Calcular seguro de asistencia en viaje galia',
'meta_desc' => 'Calcular Seguro de Asistencia en Viaje Galia',
'canonical' => null,
'nofollow' => (int) 0,
'robot' => null,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => null,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 122,
'category_id' => (int) 123,
'Category' => array(
'id' => (int) 123,
'contact_type' => (int) 2
)
),
'Objectswidget' => array(
(int) 0 => array(
'id' => (int) 768,
'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://galia.es/especialidades/vacaciones/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '01/10/2024 05:59:40',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 249,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '123',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
[maximum depth reached]
),
'Objectsbox' => array([maximum depth reached]),
'Objectsboxform' => array([maximum depth reached]),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
[maximum depth reached]
)
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-asistencia-viaje-galia',
'param1' => null,
'param2' => null,
'websites' => array(
(int) 0 => array(
'Website' => array(
[maximum depth reached]
)
)
),
'main_menu' => array(
(int) 0 => array(
'id' => (int) 4,
'title' => 'Productos',
'slogan' => '',
'button' => 'Productos',
'link' => 'Productos',
'n_items' => (int) 5,
'url' => 'seguros',
'color' => 'green'
)
),
'footer_menu' => array(
(int) 0 => array(
'title' => null,
'url' => null,
'n_items' => null,
'menu' => array(
[maximum depth reached]
)
)
),
'objectsheader' => array(
'Objectsheader' => array(
'id' => (int) 1,
'header_id' => (int) 1
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
)
),
'objectsfooter' => array(),
'all_categories' => array(
(int) 0 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 3 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 4 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 5 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 6 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 7 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 8 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 9 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 10 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 11 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 12 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 13 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 14 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 15 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 16 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 17 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 18 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 19 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 20 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 21 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 22 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 23 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 24 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 25 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 26 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 27 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 28 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 29 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 30 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 31 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 32 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 33 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 34 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 35 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 36 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 37 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 38 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 39 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 40 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 41 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 42 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 43 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 44 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 45 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 46 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 47 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 48 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 49 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 50 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 51 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 52 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 53 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 54 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 55 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 56 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 57 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 58 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 59 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 60 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 61 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 62 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 63 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 64 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 65 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 66 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 67 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 68 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 69 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 70 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 71 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 72 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 73 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 74 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 75 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 76 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 77 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 78 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 79 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 80 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 81 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 82 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 83 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 84 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 85 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 86 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 87 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 88 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 89 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 90 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 91 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 92 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 93 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 94 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 95 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 96 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 97 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 98 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
)
)
)
$widget = array(
'id' => (int) 768,
'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://galia.es/especialidades/vacaciones/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '01/10/2024 05:59:40',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 249,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '123',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
'hash' => 'dflisd;fjkhsdkll;sdjk ',
'name' => 'Widget for automatic form Webind',
'description' => 'Widget for automatic form Webind like widget28 but with changed steps',
'owner_id' => null,
'created' => null,
'modified' => null,
'active' => (int) 1,
'publish' => (int) 1,
'id' => (int) 21,
'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,',
'long_description' => '',
'quotelayout' => null,
'core' => '$category_id = $Category.id;
$pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id;
$step = $param1;
$pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step;
if(!empty($param2)){
$quote_hash = $param2;
}
$categorieswebsite = $this->Categorieswebsite->find('first', array(
'conditions' => array(
'Categorieswebsite.website_id' => Configure::read('Website.website_id'),
'Categorieswebsite.category_id' => $category_id
),
'contain' => array(
'Content' => array(
'fields' => array(
'id',
'full_url',
'maintitle',
'use_steps',
),
'conditions' => array(
'Content.active' => 1
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite;
if(!empty($param2)){
$quote_hash = $param2;
}
if(!empty($step)){
if($step == 1){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'category_id',
'retro_effect_id',
'retro_effect',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
// here we are creating all the questions type, what is displayed it decided in the steps
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
$this->loadModel('Item');
$item = $this->Item->find('first', array(
'fields' => array(
'id'
),
'conditions' => array(
'Item.category_id' => $quote['Quote']['category_id'],
),
'contain' => array(
'Option' => array(
'fields' => array(
'id',
'name',
),
'conditions' => array(
'Option.active' => 1,
'Option.macro_option' => 'retroattivita'
),
'order' => array(
'Option.id ASC',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item;
}elseif($step == 2){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST'
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Document8' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document8.active' => 1,
'Document8.public' => 1,
'Document8.documenttype_id' => 8,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document8.id DESC',
),
),
'Document23' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document23.active' => 1,
'Document23.public' => 1,
'Document23.documenttype_id' => 23,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document23.id DESC',
),
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'Optionlabel',
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'premium',
'minimum_premium',
),
),
),
));
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){
foreach($quote['Item']['Option'] as $key => $option){
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
if(!empty($quote['Quote']['value_id'])) {
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.value_id' => $quote['Quote']['value_id'],
),
'contain' => $contain,
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote;
}
}elseif($step == 3){
$this->loadModel('Quote');
$this->Quote->setDataSource('default');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'last_turnover',
'maximum',
'date_effect',
'date_end',
'item_id',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
'Item' => array(
'fields' => array(
'id',
'date_effect_limit_down',
'date_effect_limit_up',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
}elseif($step == 4){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Zipcode');
$zipcodes = $this->Zipcode->list_zipcodes();
$pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes;
}elseif($step == 5){
$this->loadModel('Payment');
$payments = $this->Payment->find('all', array(
'conditions' => array(
'AND' => array(
'Payment.active' => 1,
'Payment.website_id' => Configure::read('Website.website_id'),
'Payment.type' => 2,
),
),
'order' => 'Payment.order',
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments;
$today = date('d/m/Y');
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'fields' => array(
'id',
'name',
'weblabel',
'turnover_type',
'extra_option',
'gross_rate',
'taxes',
'accessories',
),
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST',
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Category' => array(
'fields' => array(
'id',
'name',
)
),
'Document' => array(
'Documenttype',
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'conditions' => array(
'Option.active' => 1,
'Option.default' => 0,
'Option.macro_option' => 'extra',
),
),
'Itemdiscount' => array(
'fields' => array(
'id',
'value',
'code',
),
'conditions' => array(
'Itemdiscount.active' => 1,
'Itemdiscount.apply_id' => 1,
'AND' => array(
'Itemdiscount.date_start <=' => $today,
'Itemdiscount.date_end >=' => $today,
),
),
'order' => array(
'Itemdiscount.id DESC',
),
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'minimum_premium',
'premium',
'deductible',
),
),
),
));
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) {
foreach($quote['Item']['Option'] as $option_key => $option) {
$opt = array();
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$option_key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.value_id' => $quote['Quote']['value_id'],
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.active' => '1'
),
'contain' => $contain,
'recursive' => -1
));
$quote['Quote']['Tempquote'] = $tempquote['Tempquote'];
for ($x = 1; $x <= $options_count; $x++) {
if(!empty($tempquote['Option' . $x])){
$quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Option' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value;
}
}
for ($x = 1; $x <= $extra_count; $x++) {
if(!empty($tempquote['Extra' . $x])){
$quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Extra' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value;
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
}
} else {
$this->loadModel('Privacy');
$privacies = $this->Privacy->getprivacies($category_id);
$pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies;
}
$this->loadModel('Categoryform');
$forms = $this->Categoryform->find('all', array(
'conditions' => array(
'AND' => array(
'Categoryform.active' => 1,
'Categoryform.category_id' => $category_id,
'Categoryform.specialization_id is null',
'Categoryform.option is null',
),
),
'order' => array(
'Categoryform.ord'
),
));
if (!empty($forms)) {
$this->loadModel('Value');
foreach ($forms as $formkey => $form) {
if (!empty($form['Categoryform']['json_values'])) {
$forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true);
}
if (empty($form['Categoryform']['values'])) {
if ($form['Categoryform']['type_form'] == '1') {
$forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label'];
continue;
}
if ($form['Categoryform']['field'] == 'last_turnover') {
$turnovers = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.turnover',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.turnover ASC'
)
));
//$this->log('$turnovers');
//$this->log($turnovers);
//Preparo l'array dei massimali
$turnovers_formatted = array();
foreach ($turnovers as $turnover) {
$turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $turnovers_formatted;
//$this->log('$turnovers_formatted');
//$this->log($turnovers_formatted);
}
if ($form['Categoryform']['field'] == 'maximum') {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
if ($form['Categoryform']['field'] == 'specialization_id') {
$specializations = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.specialization_id',
'Specialization.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Specialization' => array(
'fields' => array(
'id',
'name',
'svg',
),
),
),
'order' => array('Specialization.name asc'),
));
//$this->log('$specializations');
//$this->log($specializations);
if (!empty($specializations)) {
foreach ($specializations as $specialization) {
$forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array(
'id' => $specialization['Specialization']['id'],
'name' => $specialization['Specialization']['name'],
'svg' => $specialization['Specialization']['svg'],
);
}
}
$specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name');
$forms[$formkey]['Categoryform']['values'] = $specializations;
}
if ($form['Categoryform']['field'] == 'option') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'option1') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'year_loan') {
$year_contracts = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.year_contract',
'Value.year_contract'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.year_contract ASC'
),
));
$year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract');
$forms[$formkey]['Categoryform']['values'] = $year_contracts;
}
if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.option' => $form['Categoryform']['option'],
'Value.minimum_premium !=' => '0',
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
}
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms;
',
'filter' => ''
),
'Objectsbox' => array(),
'Objectsboxform' => array(),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
'category_id' => (int) 123,
'step' => '',
'categorieswebsite' => array(
'Categorieswebsite' => array(
[maximum depth reached]
),
'Content' => array(
[maximum depth reached]
)
),
'privacies' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'forms' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
)
)
)
)
$sitemaps = ''
$meanrating = ''
$content_id = (int) 249
$ref_categorieswebsite_id = (int) 122
$contentColor = '0'
$quoteview_id = (int) 37
$category_id = (int) 123
$step = (int) 0
$use_steps = (int) 1
$quote_url = '/quotes/steps_beforeselect'
$categorieswebsite = array(
'Categorieswebsite' => array(
'id' => (int) 122,
'category_id' => (int) 123,
'website_id' => (int) 1,
'active' => (int) 1,
'weblabel' => 'Seguro de Asistencia en Viaje Galia',
'online_enable' => (int) 1,
'internal_enable' => (int) 1,
'sender_name' => 'Galia - Seguros',
'sender_email' => 'info@galia.qbind.eu',
'parent_id' => (int) 121,
'content_type' => (int) 3,
'hash' => '120fba8758b6660a05ba6a59524a2cd67488a7ec',
'host_id' => null,
'created' => '30/07/2024 09:07:56',
'modified' => '25/04/2025 07:42:54',
'ord' => (int) 1
),
'Content' => array(
(int) 0 => array(
'id' => (int) 235,
'full_url' => 'galia/seguros-galia/calcular-seguro-asistencia-viaje-galia',
'maintitle' => 'Seguro de Asistencia en Viaje Galia',
'use_steps' => null,
'categorieswebsite_id' => (int) 122
)
)
)
$privacies = array(
(int) 0 => array(
'Privacy' => array(
'id' => (int) 4,
'parent_id' => null,
'type_form' => (int) 1,
'is_parent' => null,
'name' => 'Privacy for Seguros',
'description' => 'He leído y acepto los términos y condiciones de <a class="link-pink" href="https://galia.es/politica-privacidad/" target="_blank">La política de privacidad</a>.',
'error_msg' => 'Por favor confirme que ha leído y aceptado los términos y condiciones de la política de privacidad',
'ord' => (int) 2,
'required' => (int) 1
)
)
)
$forms = array(
(int) 0 => array(
'Categoryform' => array(
'id' => (int) 234,
'active' => (int) 1,
'hash' => '0063330aa76f93c808e98204dfc0126ea2f8e160',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'date_effect',
'type_form' => (int) 5,
'conditions' => null,
'sort' => null,
'json_values' => 'Fecha de Inicio del viaje',
'label' => 'Fecha de inicio',
'ord' => (int) 1,
'created' => '04/09/2024 09:46:28',
'modified' => '17/06/2025 10:56:27',
'parent_field' => '',
'tooltip_title' => 'Fecha de inicio',
'tooltip_content' => 'Selecciona el día a partir del cual la póliza entrará en vigor.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => null
)
),
(int) 1 => array(
'Categoryform' => array(
'id' => (int) 235,
'active' => (int) 1,
'hash' => 'bf5d78016afc87be2af17a6dc420d63aaf762ba1',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'date_end',
'type_form' => (int) 5,
'conditions' => null,
'sort' => null,
'json_values' => 'Fecha de finalización de la póliza',
'label' => 'Fecha de finalización',
'ord' => (int) 2,
'created' => '04/09/2024 09:47:06',
'modified' => '17/06/2025 10:56:45',
'parent_field' => '',
'tooltip_title' => 'Fecha de finalización',
'tooltip_content' => 'Selecciona el último día de validez de la póliza. No puede superar los 49 días luego de la fecha de inicio.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => null
)
),
(int) 2 => array(
'Categoryform' => array(
'id' => (int) 191,
'active' => (int) 1,
'hash' => '28d39749c9ae852aaa76890abd9a1a7aaff07837',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'maximum',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => 'Maximo',
'label' => 'Límite máximo de cobertura',
'ord' => (int) 3,
'created' => '01/08/2024 10:52:10',
'modified' => '31/10/2024 11:39:41',
'parent_field' => '',
'tooltip_title' => 'Límite de cobertura',
'tooltip_content' => 'Seleccione el máximo límite que desee asegurar.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 3 => array(
'Categoryform' => array(
'id' => (int) 236,
'active' => (int) 1,
'hash' => '058459c16364aee7539d1526cc8093a8c7b9da22',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'option',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Lugar de destino',
'ord' => (int) 4,
'created' => '04/09/2024 10:04:27',
'modified' => '31/10/2024 10:27:27',
'parent_field' => '',
'tooltip_title' => 'Detalle de las opciones:',
'tooltip_content' => 'Listado de países de EUROPA incluye países ribereños del mediterráneo:
Albania, Austria, Alemania, Andorra, Armenia, Azerbaiyán, Bélgica, Bielorrusia, Bosnia y Herzegovina, Bulgaria, Ciudad del Vaticano, Chipre, Croacia, Dinamarca, Eslovaquia, Eslovenia, España, Estonia, Finlandia, Francia, Georgia, Grecia, Hungría, Irlanda, Islandia, Italia, Letonia, Liechtenstein, Lituania, Luxemburgo, República de Macedonia del Norte, Malta, Moldavia, Mónaco, Montenegro, Noruega, Países Bajos, Polonia, Portugal, Reino Unido, República Checa, Rumania, San Marino, Serbia, Suecia, Suiza, Turquía y Ucrania, Islas Canarias, Azores, Madeira, Marruecos, Argelia, Túnez, Libia, Líbano, Egipto e Israel.
Listado de países MUNDO:
Afganistán,Albania,Alemania,Andorra,Angola,Antártida,Antigua y Barbuda,Antillas Neerlandesas, Arabia Saudí, Argelia, Argentina, Armenia, Aruba, Australia, Austria, Azerbaiyán, Bahamas, Bahráin, Bangladesh, Barbados, Bélgica, Belice, Benín, Bermudas, Bielorrusia, Bolivia, Bosnia-Herzegovina, Botsuana, Brasil, Brunei, Darussalam, Bulgaria, Burkina Faso, Burundi, Bután, Cabo Verde, Camboya, Camerún, Canadá, Chad, Chile, China, Chipre, Ciudad Vaticano, Colombia, Comoras, Corea del Norte, Corea del Sur, Costa de Marfil, Costa Rica, Croacia, Cuba, de Anguilla, Dinamarca, Dominica, Ecuador, EE.UU., Egipto, El Salvador, Emiratos Árabes Unidos, Eritrea, Eslovaquia, Eslovenia, España, Estonia, Etiopía, Federación Rusa, Filipinas, Finlandia, Fiyi, Francia, Gabón, Gambia, Georgia, Ghana, Gibraltar, Granada, Grecia, Groenlandia, Guadalupe, Guam, Guatemala, Guayana Francesa, Guinea, Guinea Ecuatorial, Guinea-Bissau, Guyana, Haití, Honduras, Hong Kong, Hungría, India, Indonesia, Irán, Iraq, Irlanda, Isla Christmas, Islandia, Islas Bouvet, Islas Caimán, Islas Cocos, Islas Cook, Islas Feroe, Islas Heard y Mcdonald, Islas Malvinas, Islas Marianas del Norte, Islas Marshall, Islas menores alejadas de EE.UU., Islas Niue, IslasNorfolk, Islas Pitcairn, Islas Salomón, Islas Sur Georgia y Sur Sandwich, Islas Tokelau, Islas Turcas y Caicos, Islas Vírgenes (americanas), Islas Vírgenes GB, Israel, Italia, Jamaica, Japón, Jordania, Kazajistán, Kenia, Kirguizistán, Kiribati, Kuwait, Laos, Lesoto, Letonia, Líbano, Liberia, Libia, Liechtenstein, Lituania, Luxemburgo, Macao, Macedonia, Madagascar, Malasia, Malaui, Maldivas, Malí, Malta, Marruecos, Martinica, Mauricio (Isl.), Mauritania, Mayotte, México, Micronesia, Moldavia, Mónaco, Mongolia, Montenegro, Montserrat, Mozambique, Myanmar, Namibia, Nauru, Nepal, Nicaragua, Níger, Nigeria, Noruega, Nueva Caledonia, Nueva Zelanda, Omán, Países Bajos, Pakistán, Palaos, Palestina, Panamá, Papúa Nueva Guinea, Paraguay, Perú, Polinesia francesa, Polonia, Portugal, Puerto Rico, Qatar, Reino Unido, República centroafricana, República Checa, República del Congo, República del Congo, República Dominicana, Reunión, Ruanda, Rumanía, Sáhara occidental, Saint Kitts y Nevis, Samoa americana, Samoa Occidental, San Marino, San Vicente y las Granadinas, Santa Helena, Santa Lucía,Santo Tomé y Príncipe, Senegal, Serbia, Seychelles,Sierra Leona, Singapur, Siria, Somalia,Sri Lanka,St. Pedro y Miquelón, Suazilandia, Sudáfrica,S udán,Sudán Sur, Suecia, Suiza, Surinam, Svalbard, Tailandia, Taiwan, Tanzania, Tayikistán, Territorio británico en Océano Índico, Timor Oriental, Timor oriental, Togo, Tonga,Trinidad y Tobago, Túnez,Turkmenistán,Turquía, Tuvalu, Ucrania, Uganda, Uruguay, Uzbekistán, Vanuatu, Venezuela, Vietnam, Wallis, Futuna, Yemen, Yibuti, Zambia, Zimbabue.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 4 => array(
'Categoryform' => array(
'id' => (int) 238,
'active' => (int) 1,
'hash' => '93acdecf4eaf3aba020a38e8d3870224ca0ada8f',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'option1',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Altitud del destino turístico',
'ord' => (int) 6,
'created' => '04/09/2024 11:27:40',
'modified' => '11/10/2024 09:22:47',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '¿Cúal es el límite máximo de altitud que vas a alcanzar realizando tus actividades de aventura?',
'host_id' => null,
'tooltip_content_modal' => null,
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 5 => array(
'Categoryform' => array(
'id' => (int) 239,
'active' => (int) 1,
'hash' => 'df31afe9e05363175cb15f60dd5ae16da74ce3b3',
'category_id' => (int) 123,
'specialization_id' => null,
'option' => null,
'field' => 'nr_people',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '{"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9"}',
'label' => 'Datos de los participantes',
'ord' => (int) 7,
'created' => '04/09/2024 11:37:04',
'modified' => '03/06/2025 06:30:33',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => 'Selecciona el número máximo de personas aseguradas, teniendo en cuenta que la edad máxima de cualquier viaje al momento de la contratación de la póliza es de 70 años.',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
)
)
$user_agent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)'
$autocomplete = 'off'
$class = 'green'
$contact_type = (int) 2
$use_query = null
$current_url = 'galia/seguros-galia/calcular-seguro-asistencia-viaje-galia'
$urls = array(
(int) 0 => 'galia',
(int) 1 => 'seguros-galia',
(int) 2 => 'calcular-seguro-asistencia-viaje-galia'
)
$step_title = ''
$steps = (int) 0include - APP/View/Elements/Widgets/widget21.ctp, line 1612
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Pages/content.ctp, line 33
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
¿Confirmas que quieres realizar el pago a través de domiciliación bancaria?
La póliza será emitida automáticamente, pero no estará activa hasta que el pago no este confirmado y los documentos firmados.
Datos de tu cuenta
- Nombre
- IBAN
Verifica tu información personal.
En caso de cambios escríbenos a info@galia.es
Redsys
closeNotice (8): Undefined variable: objectsboxkey [APP/View/Elements/Widgets/widget21.ctp, line 1662]Code Context<div class="jcf-scrollable"><div class="hold-text hold-text-rules"><?php echo $this->element('Boxes/box12', array('box' => $widget['Objectsbox'][$objectsboxkey])); ?>$viewFile = '/var/www/www.galia.qbind.eu/app/View/Elements/Widgets/widget21.ctp' $dataForView = array( 'website_id' => '1', 'folder_img' => 'galia', 'pageContent' => array( 'Content' => array( 'id' => (int) 249, 'categorieswebsite_id' => null, 'ref_categorieswebsite_id' => (int) 122, 'class_button' => '0', 'maintitle' => '13 Calcular Seguro de Asistencia en Viaje Galia', 'subtitle' => 'Calcular Seguro de Asistencia en Viaje Galia', 'meta_title' => 'Calcular Seguro de Asistencia en Viaje Galia', 'meta_key' => 'Calcular seguro de asistencia en viaje galia', 'meta_desc' => 'Calcular Seguro de Asistencia en Viaje Galia', 'canonical' => null, 'nofollow' => (int) 0, 'robot' => null, 'quoteview_id' => (int) 37, 'use_steps' => (int) 1, 'filter_position' => (int) 0, 'use_query' => null, 'class_color' => 'green' ), 'Categorieswebsite' => array( 'id' => null, 'category_id' => null, 'parent_id' => null ), 'Refcategorieswebsite' => array( 'id' => (int) 122, 'category_id' => (int) 123, 'Category' => array( [maximum depth reached] ) ), 'Objectswidget' => array( (int) 0 => array( [maximum depth reached] ) ), 'one' => 'galia', 'two' => 'seguros-galia', 'tree' => 'calcular-seguro-asistencia-viaje-galia', 'param1' => null, 'param2' => null, 'websites' => array( (int) 0 => array( [maximum depth reached] ) ), 'main_menu' => array( (int) 0 => array( [maximum depth reached] ) ), 'footer_menu' => array( (int) 0 => array( [maximum depth reached] ) ), 'objectsheader' => array( 'Objectsheader' => array( [maximum depth reached] ), 'Objectswidget' => array( [maximum depth reached] ) ), 'objectsfooter' => array(), 'all_categories' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ), (int) 9 => array( [maximum depth reached] ), (int) 10 => array( [maximum depth reached] ), (int) 11 => array( [maximum depth reached] ), (int) 12 => array( [maximum depth reached] ), (int) 13 => array( [maximum depth reached] ), (int) 14 => array( [maximum depth reached] ), (int) 15 => array( [maximum depth reached] ), (int) 16 => array( [maximum depth reached] ), (int) 17 => array( [maximum depth reached] ), (int) 18 => array( [maximum depth reached] ), (int) 19 => array( [maximum depth reached] ), (int) 20 => array( [maximum depth reached] ), (int) 21 => array( [maximum depth reached] ), (int) 22 => array( [maximum depth reached] ), (int) 23 => array( [maximum depth reached] ), (int) 24 => array( [maximum depth reached] ), (int) 25 => array( [maximum depth reached] ), (int) 26 => array( [maximum depth reached] ), (int) 27 => array( [maximum depth reached] ), (int) 28 => array( [maximum depth reached] ), (int) 29 => array( [maximum depth reached] ), (int) 30 => array( [maximum depth reached] ), (int) 31 => array( [maximum depth reached] ), (int) 32 => array( [maximum depth reached] ), (int) 33 => array( [maximum depth reached] ), (int) 34 => array( [maximum depth reached] ), (int) 35 => array( [maximum depth reached] ), (int) 36 => array( [maximum depth reached] ), (int) 37 => array( [maximum depth reached] ), (int) 38 => array( [maximum depth reached] ), (int) 39 => array( [maximum depth reached] ), (int) 40 => array( [maximum depth reached] ), (int) 41 => array( [maximum depth reached] ), (int) 42 => array( [maximum depth reached] ), (int) 43 => array( [maximum depth reached] ), (int) 44 => array( [maximum depth reached] ), (int) 45 => array( [maximum depth reached] ), (int) 46 => array( [maximum depth reached] ), (int) 47 => array( [maximum depth reached] ), (int) 48 => array( [maximum depth reached] ), (int) 49 => array( [maximum depth reached] ), (int) 50 => array( [maximum depth reached] ), (int) 51 => array( [maximum depth reached] ), (int) 52 => array( [maximum depth reached] ), (int) 53 => array( [maximum depth reached] ), (int) 54 => array( [maximum depth reached] ), (int) 55 => array( [maximum depth reached] ), (int) 56 => array( [maximum depth reached] ), (int) 57 => array( [maximum depth reached] ), (int) 58 => array( [maximum depth reached] ), (int) 59 => array( [maximum depth reached] ), (int) 60 => array( [maximum depth reached] ), (int) 61 => array( [maximum depth reached] ), (int) 62 => array( [maximum depth reached] ), (int) 63 => array( [maximum depth reached] ), (int) 64 => array( [maximum depth reached] ), (int) 65 => array( [maximum depth reached] ), (int) 66 => array( [maximum depth reached] ), (int) 67 => array( [maximum depth reached] ), (int) 68 => array( [maximum depth reached] ), (int) 69 => array( [maximum depth reached] ), (int) 70 => array( [maximum depth reached] ), (int) 71 => array( [maximum depth reached] ), (int) 72 => array( [maximum depth reached] ), (int) 73 => array( [maximum depth reached] ), (int) 74 => array( [maximum depth reached] ), (int) 75 => array( [maximum depth reached] ), (int) 76 => array( [maximum depth reached] ), (int) 77 => array( [maximum depth reached] ), (int) 78 => array( [maximum depth reached] ), (int) 79 => array( [maximum depth reached] ), (int) 80 => array( [maximum depth reached] ), (int) 81 => array( [maximum depth reached] ), (int) 82 => array( [maximum depth reached] ), (int) 83 => array( [maximum depth reached] ), (int) 84 => array( [maximum depth reached] ), (int) 85 => array( [maximum depth reached] ), (int) 86 => array( [maximum depth reached] ), (int) 87 => array( [maximum depth reached] ), (int) 88 => array( [maximum depth reached] ), (int) 89 => array( [maximum depth reached] ), (int) 90 => array( [maximum depth reached] ), (int) 91 => array( [maximum depth reached] ), (int) 92 => array( [maximum depth reached] ), (int) 93 => array( [maximum depth reached] ), (int) 94 => array( [maximum depth reached] ), (int) 95 => array( [maximum depth reached] ), (int) 96 => array( [maximum depth reached] ), (int) 97 => array( [maximum depth reached] ), (int) 98 => array( [maximum depth reached] ) ) ), 'widget' => array( 'id' => (int) 768, 'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba', 'main_title' => 'Necesitamos algunos datos para calcular tu seguro', 'main_title1' => '', 'sub_title' => '¿Quién va a contratar el seguro?', 'subsub_title' => 'Es obligatorio completar todos los campos', 'icon' => null, 'icon_alt' => null, 'main_text' => '', 'main_text_1' => null, 'tab_title' => '', 'tab_title_1' => '', 'tab_title_2' => '', 'tab_title_3' => '', 'tab_text' => null, 'tab_text_1' => '', 'tab_text_2' => '<ul> <li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li> <li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li> <li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li> </ul> ', 'tab_text_3' => null, 'main_img' => null, 'main_img_1' => null, 'main_img_alt' => '', 'main_img_1_alt' => '', 'button_label' => 'SIGUIENTE', 'main_link_1' => 'https://galia.es/especialidades/vacaciones/', 'main_link_2' => null, 'main_link_3' => null, 'description' => '', 'description_1' => null, 'description_2' => null, 'lon' => null, 'lat' => null, 'slogan' => null, 'author' => (int) 5, 'where_clause' => null, 'filter' => '', 'created' => '01/10/2024 05:59:40', 'modified' => '22/12/2025 07:05:51', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 249, 'main_img_2' => null, 'main_img_2_alt' => '', 'dynamic' => (int) 0, 'label0' => '', 'label1' => 'esta póliza es para ti', 'label2' => '', 'label3' => '', 'label4' => '', 'label5' => '', 'main_video' => null, 'contact' => null, 'script' => null, 'run_core' => (int) 1, 'core' => null, 'js_mobile' => (int) 0, 'js_desktop' => null, 'query_id' => null, 'quantity' => null, 'multiselect' => '123', 'msd_content_type' => null, 'dmultiselect' => null, 'label6' => null, 'label7' => null, 'label8' => null, 'mscwo_order' => null, 'objectsfooter_id' => null, 'objectsheader_id' => null, 'Widget' => array( 'hash' => 'dflisd;fjkhsdkll;sdjk ', 'name' => 'Widget for automatic form Webind', 'description' => 'Widget for automatic form Webind like widget28 but with changed steps', 'owner_id' => null, 'created' => null, 'modified' => null, 'active' => (int) 1, 'publish' => (int) 1, 'id' => (int) 21, 'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,', 'long_description' => '', 'quotelayout' => null, 'core' => '$category_id = $Category.id; $pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id; $step = $param1; $pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step; if(!empty($param2)){ $quote_hash = $param2; } $categorieswebsite = $this->Categorieswebsite->find('first', array( 'conditions' => array( 'Categorieswebsite.website_id' => Configure::read('Website.website_id'), 'Categorieswebsite.category_id' => $category_id ), 'contain' => array( 'Content' => array( 'fields' => array( 'id', 'full_url', 'maintitle', 'use_steps', ), 'conditions' => array( 'Content.active' => 1 ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite; if(!empty($param2)){ $quote_hash = $param2; } if(!empty($step)){ if($step == 1){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'category_id', 'retro_effect_id', 'retro_effect', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); // here we are creating all the questions type, what is displayed it decided in the steps $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; $this->loadModel('Item'); $item = $this->Item->find('first', array( 'fields' => array( 'id' ), 'conditions' => array( 'Item.category_id' => $quote['Quote']['category_id'], ), 'contain' => array( 'Option' => array( 'fields' => array( 'id', 'name', ), 'conditions' => array( 'Option.active' => 1, 'Option.macro_option' => 'retroattivita' ), 'order' => array( 'Option.id ASC', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item; }elseif($step == 2){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST' ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Document8' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document8.active' => 1, 'Document8.public' => 1, 'Document8.documenttype_id' => 8, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document8.id DESC', ), ), 'Document23' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document23.active' => 1, 'Document23.public' => 1, 'Document23.documenttype_id' => 23, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document23.id DESC', ), ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'Optionlabel', ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'premium', 'minimum_premium', ), ), ), )); if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){ foreach($quote['Item']['Option'] as $key => $option){ $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; if(!empty($quote['Quote']['value_id'])) { $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.value_id' => $quote['Quote']['value_id'], ), 'contain' => $contain, )); $pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote; } }elseif($step == 3){ $this->loadModel('Quote'); $this->Quote->setDataSource('default'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'last_turnover', 'maximum', 'date_effect', 'date_end', 'item_id', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), 'Item' => array( 'fields' => array( 'id', 'date_effect_limit_down', 'date_effect_limit_up', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; }elseif($step == 4){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Zipcode'); $zipcodes = $this->Zipcode->list_zipcodes(); $pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes; }elseif($step == 5){ $this->loadModel('Payment'); $payments = $this->Payment->find('all', array( 'conditions' => array( 'AND' => array( 'Payment.active' => 1, 'Payment.website_id' => Configure::read('Website.website_id'), 'Payment.type' => 2, ), ), 'order' => 'Payment.order', )); $pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments; $today = date('d/m/Y'); $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'fields' => array( 'id', 'name', 'weblabel', 'turnover_type', 'extra_option', 'gross_rate', 'taxes', 'accessories', ), 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST', ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Category' => array( 'fields' => array( 'id', 'name', ) ), 'Document' => array( 'Documenttype', ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'conditions' => array( 'Option.active' => 1, 'Option.default' => 0, 'Option.macro_option' => 'extra', ), ), 'Itemdiscount' => array( 'fields' => array( 'id', 'value', 'code', ), 'conditions' => array( 'Itemdiscount.active' => 1, 'Itemdiscount.apply_id' => 1, 'AND' => array( 'Itemdiscount.date_start <=' => $today, 'Itemdiscount.date_end >=' => $today, ), ), 'order' => array( 'Itemdiscount.id DESC', ), ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'minimum_premium', 'premium', 'deductible', ), ), ), )); $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) { foreach($quote['Item']['Option'] as $option_key => $option) { $opt = array(); $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$option_key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.value_id' => $quote['Quote']['value_id'], 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.active' => '1' ), 'contain' => $contain, 'recursive' => -1 )); $quote['Quote']['Tempquote'] = $tempquote['Tempquote']; for ($x = 1; $x <= $options_count; $x++) { if(!empty($tempquote['Option' . $x])){ $quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Option' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value; } } for ($x = 1; $x <= $extra_count; $x++) { if(!empty($tempquote['Extra' . $x])){ $quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Extra' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value; } } $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; } } else { $this->loadModel('Privacy'); $privacies = $this->Privacy->getprivacies($category_id); $pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies; } $this->loadModel('Categoryform'); $forms = $this->Categoryform->find('all', array( 'conditions' => array( 'AND' => array( 'Categoryform.active' => 1, 'Categoryform.category_id' => $category_id, 'Categoryform.specialization_id is null', 'Categoryform.option is null', ), ), 'order' => array( 'Categoryform.ord' ), )); if (!empty($forms)) { $this->loadModel('Value'); foreach ($forms as $formkey => $form) { if (!empty($form['Categoryform']['json_values'])) { $forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true); } if (empty($form['Categoryform']['values'])) { if ($form['Categoryform']['type_form'] == '1') { $forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label']; continue; } if ($form['Categoryform']['field'] == 'last_turnover') { $turnovers = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.turnover', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.turnover ASC' ) )); //$this->log('$turnovers'); //$this->log($turnovers); //Preparo l'array dei massimali $turnovers_formatted = array(); foreach ($turnovers as $turnover) { $turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $turnovers_formatted; //$this->log('$turnovers_formatted'); //$this->log($turnovers_formatted); } if ($form['Categoryform']['field'] == 'maximum') { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } if ($form['Categoryform']['field'] == 'specialization_id') { $specializations = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.specialization_id', 'Specialization.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Specialization' => array( 'fields' => array( 'id', 'name', 'svg', ), ), ), 'order' => array('Specialization.name asc'), )); //$this->log('$specializations'); //$this->log($specializations); if (!empty($specializations)) { foreach ($specializations as $specialization) { $forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array( 'id' => $specialization['Specialization']['id'], 'name' => $specialization['Specialization']['name'], 'svg' => $specialization['Specialization']['svg'], ); } } $specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name'); $forms[$formkey]['Categoryform']['values'] = $specializations; } if ($form['Categoryform']['field'] == 'option') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'option1') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'year_loan') { $year_contracts = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.year_contract', 'Value.year_contract' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.year_contract ASC' ), )); $year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract'); $forms[$formkey]['Categoryform']['values'] = $year_contracts; } if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.option' => $form['Categoryform']['option'], 'Value.minimum_premium !=' => '0', ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } } } } $pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms; ', 'filter' => '' ), 'Objectsbox' => array(), 'Objectsboxform' => array(), 'folder_img' => 'galia', 'param1' => '', 'param2' => '', 'apidata' => array( 'category_id' => (int) 123, 'step' => '', 'categorieswebsite' => array( [maximum depth reached] ), 'privacies' => array( [maximum depth reached] ), 'forms' => array( [maximum depth reached] ) ) ), 'sitemaps' => '', 'meanrating' => '', 'content_id' => (int) 249, 'ref_categorieswebsite_id' => (int) 122, 'contentColor' => '0' ) $website_id = '1' $folder_img = 'galia' $pageContent = array( 'Content' => array( 'id' => (int) 249, 'categorieswebsite_id' => null, 'ref_categorieswebsite_id' => (int) 122, 'class_button' => '0', 'maintitle' => '13 Calcular Seguro de Asistencia en Viaje Galia', 'subtitle' => 'Calcular Seguro de Asistencia en Viaje Galia', 'meta_title' => 'Calcular Seguro de Asistencia en Viaje Galia', 'meta_key' => 'Calcular seguro de asistencia en viaje galia', 'meta_desc' => 'Calcular Seguro de Asistencia en Viaje Galia', 'canonical' => null, 'nofollow' => (int) 0, 'robot' => null, 'quoteview_id' => (int) 37, 'use_steps' => (int) 1, 'filter_position' => (int) 0, 'use_query' => null, 'class_color' => 'green' ), 'Categorieswebsite' => array( 'id' => null, 'category_id' => null, 'parent_id' => null ), 'Refcategorieswebsite' => array( 'id' => (int) 122, 'category_id' => (int) 123, 'Category' => array( 'id' => (int) 123, 'contact_type' => (int) 2 ) ), 'Objectswidget' => array( (int) 0 => array( 'id' => (int) 768, 'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba', 'main_title' => 'Necesitamos algunos datos para calcular tu seguro', 'main_title1' => '', 'sub_title' => '¿Quién va a contratar el seguro?', 'subsub_title' => 'Es obligatorio completar todos los campos', 'icon' => null, 'icon_alt' => null, 'main_text' => '', 'main_text_1' => null, 'tab_title' => '', 'tab_title_1' => '', 'tab_title_2' => '', 'tab_title_3' => '', 'tab_text' => null, 'tab_text_1' => '', 'tab_text_2' => '<ul> <li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li> <li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li> <li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li> </ul> ', 'tab_text_3' => null, 'main_img' => null, 'main_img_1' => null, 'main_img_alt' => '', 'main_img_1_alt' => '', 'button_label' => 'SIGUIENTE', 'main_link_1' => 'https://galia.es/especialidades/vacaciones/', 'main_link_2' => null, 'main_link_3' => null, 'description' => '', 'description_1' => null, 'description_2' => null, 'lon' => null, 'lat' => null, 'slogan' => null, 'author' => (int) 5, 'where_clause' => null, 'filter' => '', 'created' => '01/10/2024 05:59:40', 'modified' => '22/12/2025 07:05:51', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 249, 'main_img_2' => null, 'main_img_2_alt' => '', 'dynamic' => (int) 0, 'label0' => '', 'label1' => 'esta póliza es para ti', 'label2' => '', 'label3' => '', 'label4' => '', 'label5' => '', 'main_video' => null, 'contact' => null, 'script' => null, 'run_core' => (int) 1, 'core' => null, 'js_mobile' => (int) 0, 'js_desktop' => null, 'query_id' => null, 'quantity' => null, 'multiselect' => '123', 'msd_content_type' => null, 'dmultiselect' => null, 'label6' => null, 'label7' => null, 'label8' => null, 'mscwo_order' => null, 'objectsfooter_id' => null, 'objectsheader_id' => null, 'Widget' => array( [maximum depth reached] ), 'Objectsbox' => array([maximum depth reached]), 'Objectsboxform' => array([maximum depth reached]), 'folder_img' => 'galia', 'param1' => '', 'param2' => '', 'apidata' => array( [maximum depth reached] ) ) ), 'one' => 'galia', 'two' => 'seguros-galia', 'tree' => 'calcular-seguro-asistencia-viaje-galia', 'param1' => null, 'param2' => null, 'websites' => array( (int) 0 => array( 'Website' => array( [maximum depth reached] ) ) ), 'main_menu' => array( (int) 0 => array( 'id' => (int) 4, 'title' => 'Productos', 'slogan' => '', 'button' => 'Productos', 'link' => 'Productos', 'n_items' => (int) 5, 'url' => 'seguros', 'color' => 'green' ) ), 'footer_menu' => array( (int) 0 => array( 'title' => null, 'url' => null, 'n_items' => null, 'menu' => array( [maximum depth reached] ) ) ), 'objectsheader' => array( 'Objectsheader' => array( 'id' => (int) 1, 'header_id' => (int) 1 ), 'Objectswidget' => array( (int) 0 => array( [maximum depth reached] ) ) ), 'objectsfooter' => array(), 'all_categories' => array( (int) 0 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 1 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 2 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 3 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 4 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 5 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 6 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 7 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 8 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 9 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 10 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 11 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 12 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 13 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 14 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 15 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 16 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 17 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 18 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 19 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 20 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 21 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 22 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 23 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 24 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 25 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 26 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 27 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 28 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 29 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 30 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 31 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 32 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 33 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 34 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 35 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 36 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 37 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 38 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 39 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 40 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 41 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 42 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 43 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 44 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 45 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 46 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 47 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 48 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 49 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 50 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 51 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 52 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 53 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 54 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 55 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 56 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 57 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 58 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 59 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 60 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 61 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 62 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 63 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 64 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 65 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 66 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 67 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 68 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 69 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 70 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 71 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 72 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 73 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 74 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 75 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 76 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 77 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 78 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 79 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 80 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 81 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 82 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 83 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 84 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 85 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 86 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 87 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 88 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 89 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 90 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 91 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 92 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 93 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 94 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 95 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 96 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 97 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 98 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ) ) ) $widget = array( 'id' => (int) 768, 'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba', 'main_title' => 'Necesitamos algunos datos para calcular tu seguro', 'main_title1' => '', 'sub_title' => '¿Quién va a contratar el seguro?', 'subsub_title' => 'Es obligatorio completar todos los campos', 'icon' => null, 'icon_alt' => null, 'main_text' => '', 'main_text_1' => null, 'tab_title' => '', 'tab_title_1' => '', 'tab_title_2' => '', 'tab_title_3' => '', 'tab_text' => null, 'tab_text_1' => '', 'tab_text_2' => '<ul> <li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li> <li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li> <li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li> </ul> ', 'tab_text_3' => null, 'main_img' => null, 'main_img_1' => null, 'main_img_alt' => '', 'main_img_1_alt' => '', 'button_label' => 'SIGUIENTE', 'main_link_1' => 'https://galia.es/especialidades/vacaciones/', 'main_link_2' => null, 'main_link_3' => null, 'description' => '', 'description_1' => null, 'description_2' => null, 'lon' => null, 'lat' => null, 'slogan' => null, 'author' => (int) 5, 'where_clause' => null, 'filter' => '', 'created' => '01/10/2024 05:59:40', 'modified' => '22/12/2025 07:05:51', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 249, 'main_img_2' => null, 'main_img_2_alt' => '', 'dynamic' => (int) 0, 'label0' => '', 'label1' => 'esta póliza es para ti', 'label2' => '', 'label3' => '', 'label4' => '', 'label5' => '', 'main_video' => null, 'contact' => null, 'script' => null, 'run_core' => (int) 1, 'core' => null, 'js_mobile' => (int) 0, 'js_desktop' => null, 'query_id' => null, 'quantity' => null, 'multiselect' => '123', 'msd_content_type' => null, 'dmultiselect' => null, 'label6' => null, 'label7' => null, 'label8' => null, 'mscwo_order' => null, 'objectsfooter_id' => null, 'objectsheader_id' => null, 'Widget' => array( 'hash' => 'dflisd;fjkhsdkll;sdjk ', 'name' => 'Widget for automatic form Webind', 'description' => 'Widget for automatic form Webind like widget28 but with changed steps', 'owner_id' => null, 'created' => null, 'modified' => null, 'active' => (int) 1, 'publish' => (int) 1, 'id' => (int) 21, 'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,', 'long_description' => '', 'quotelayout' => null, 'core' => '$category_id = $Category.id; $pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id; $step = $param1; $pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step; if(!empty($param2)){ $quote_hash = $param2; } $categorieswebsite = $this->Categorieswebsite->find('first', array( 'conditions' => array( 'Categorieswebsite.website_id' => Configure::read('Website.website_id'), 'Categorieswebsite.category_id' => $category_id ), 'contain' => array( 'Content' => array( 'fields' => array( 'id', 'full_url', 'maintitle', 'use_steps', ), 'conditions' => array( 'Content.active' => 1 ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite; if(!empty($param2)){ $quote_hash = $param2; } if(!empty($step)){ if($step == 1){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'category_id', 'retro_effect_id', 'retro_effect', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); // here we are creating all the questions type, what is displayed it decided in the steps $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; $this->loadModel('Item'); $item = $this->Item->find('first', array( 'fields' => array( 'id' ), 'conditions' => array( 'Item.category_id' => $quote['Quote']['category_id'], ), 'contain' => array( 'Option' => array( 'fields' => array( 'id', 'name', ), 'conditions' => array( 'Option.active' => 1, 'Option.macro_option' => 'retroattivita' ), 'order' => array( 'Option.id ASC', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item; }elseif($step == 2){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST' ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Document8' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document8.active' => 1, 'Document8.public' => 1, 'Document8.documenttype_id' => 8, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document8.id DESC', ), ), 'Document23' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document23.active' => 1, 'Document23.public' => 1, 'Document23.documenttype_id' => 23, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document23.id DESC', ), ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'Optionlabel', ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'premium', 'minimum_premium', ), ), ), )); if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){ foreach($quote['Item']['Option'] as $key => $option){ $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; if(!empty($quote['Quote']['value_id'])) { $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.value_id' => $quote['Quote']['value_id'], ), 'contain' => $contain, )); $pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote; } }elseif($step == 3){ $this->loadModel('Quote'); $this->Quote->setDataSource('default'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'last_turnover', 'maximum', 'date_effect', 'date_end', 'item_id', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), 'Item' => array( 'fields' => array( 'id', 'date_effect_limit_down', 'date_effect_limit_up', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; }elseif($step == 4){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Zipcode'); $zipcodes = $this->Zipcode->list_zipcodes(); $pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes; }elseif($step == 5){ $this->loadModel('Payment'); $payments = $this->Payment->find('all', array( 'conditions' => array( 'AND' => array( 'Payment.active' => 1, 'Payment.website_id' => Configure::read('Website.website_id'), 'Payment.type' => 2, ), ), 'order' => 'Payment.order', )); $pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments; $today = date('d/m/Y'); $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'fields' => array( 'id', 'name', 'weblabel', 'turnover_type', 'extra_option', 'gross_rate', 'taxes', 'accessories', ), 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST', ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Category' => array( 'fields' => array( 'id', 'name', ) ), 'Document' => array( 'Documenttype', ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'conditions' => array( 'Option.active' => 1, 'Option.default' => 0, 'Option.macro_option' => 'extra', ), ), 'Itemdiscount' => array( 'fields' => array( 'id', 'value', 'code', ), 'conditions' => array( 'Itemdiscount.active' => 1, 'Itemdiscount.apply_id' => 1, 'AND' => array( 'Itemdiscount.date_start <=' => $today, 'Itemdiscount.date_end >=' => $today, ), ), 'order' => array( 'Itemdiscount.id DESC', ), ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'minimum_premium', 'premium', 'deductible', ), ), ), )); $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) { foreach($quote['Item']['Option'] as $option_key => $option) { $opt = array(); $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$option_key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.value_id' => $quote['Quote']['value_id'], 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.active' => '1' ), 'contain' => $contain, 'recursive' => -1 )); $quote['Quote']['Tempquote'] = $tempquote['Tempquote']; for ($x = 1; $x <= $options_count; $x++) { if(!empty($tempquote['Option' . $x])){ $quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Option' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value; } } for ($x = 1; $x <= $extra_count; $x++) { if(!empty($tempquote['Extra' . $x])){ $quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Extra' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value; } } $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; } } else { $this->loadModel('Privacy'); $privacies = $this->Privacy->getprivacies($category_id); $pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies; } $this->loadModel('Categoryform'); $forms = $this->Categoryform->find('all', array( 'conditions' => array( 'AND' => array( 'Categoryform.active' => 1, 'Categoryform.category_id' => $category_id, 'Categoryform.specialization_id is null', 'Categoryform.option is null', ), ), 'order' => array( 'Categoryform.ord' ), )); if (!empty($forms)) { $this->loadModel('Value'); foreach ($forms as $formkey => $form) { if (!empty($form['Categoryform']['json_values'])) { $forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true); } if (empty($form['Categoryform']['values'])) { if ($form['Categoryform']['type_form'] == '1') { $forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label']; continue; } if ($form['Categoryform']['field'] == 'last_turnover') { $turnovers = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.turnover', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.turnover ASC' ) )); //$this->log('$turnovers'); //$this->log($turnovers); //Preparo l'array dei massimali $turnovers_formatted = array(); foreach ($turnovers as $turnover) { $turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $turnovers_formatted; //$this->log('$turnovers_formatted'); //$this->log($turnovers_formatted); } if ($form['Categoryform']['field'] == 'maximum') { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } if ($form['Categoryform']['field'] == 'specialization_id') { $specializations = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.specialization_id', 'Specialization.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Specialization' => array( 'fields' => array( 'id', 'name', 'svg', ), ), ), 'order' => array('Specialization.name asc'), )); //$this->log('$specializations'); //$this->log($specializations); if (!empty($specializations)) { foreach ($specializations as $specialization) { $forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array( 'id' => $specialization['Specialization']['id'], 'name' => $specialization['Specialization']['name'], 'svg' => $specialization['Specialization']['svg'], ); } } $specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name'); $forms[$formkey]['Categoryform']['values'] = $specializations; } if ($form['Categoryform']['field'] == 'option') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'option1') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'year_loan') { $year_contracts = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.year_contract', 'Value.year_contract' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.year_contract ASC' ), )); $year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract'); $forms[$formkey]['Categoryform']['values'] = $year_contracts; } if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.option' => $form['Categoryform']['option'], 'Value.minimum_premium !=' => '0', ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } } } } $pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms; ', 'filter' => '' ), 'Objectsbox' => array(), 'Objectsboxform' => array(), 'folder_img' => 'galia', 'param1' => '', 'param2' => '', 'apidata' => array( 'category_id' => (int) 123, 'step' => '', 'categorieswebsite' => array( 'Categorieswebsite' => array( [maximum depth reached] ), 'Content' => array( [maximum depth reached] ) ), 'privacies' => array( (int) 0 => array( [maximum depth reached] ) ), 'forms' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ) ) ) ) $sitemaps = '' $meanrating = '' $content_id = (int) 249 $ref_categorieswebsite_id = (int) 122 $contentColor = '0' $quoteview_id = (int) 37 $category_id = (int) 123 $step = (int) 0 $use_steps = (int) 1 $quote_url = '/quotes/steps_beforeselect' $categorieswebsite = array( 'Categorieswebsite' => array( 'id' => (int) 122, 'category_id' => (int) 123, 'website_id' => (int) 1, 'active' => (int) 1, 'weblabel' => 'Seguro de Asistencia en Viaje Galia', 'online_enable' => (int) 1, 'internal_enable' => (int) 1, 'sender_name' => 'Galia - Seguros', 'sender_email' => 'info@galia.qbind.eu', 'parent_id' => (int) 121, 'content_type' => (int) 3, 'hash' => '120fba8758b6660a05ba6a59524a2cd67488a7ec', 'host_id' => null, 'created' => '30/07/2024 09:07:56', 'modified' => '25/04/2025 07:42:54', 'ord' => (int) 1 ), 'Content' => array( (int) 0 => array( 'id' => (int) 235, 'full_url' => 'galia/seguros-galia/calcular-seguro-asistencia-viaje-galia', 'maintitle' => 'Seguro de Asistencia en Viaje Galia', 'use_steps' => null, 'categorieswebsite_id' => (int) 122 ) ) ) $privacies = array( (int) 0 => array( 'Privacy' => array( 'id' => (int) 4, 'parent_id' => null, 'type_form' => (int) 1, 'is_parent' => null, 'name' => 'Privacy for Seguros', 'description' => 'He leído y acepto los términos y condiciones de <a class="link-pink" href="https://galia.es/politica-privacidad/" target="_blank">La política de privacidad</a>.', 'error_msg' => 'Por favor confirme que ha leído y aceptado los términos y condiciones de la política de privacidad', 'ord' => (int) 2, 'required' => (int) 1 ) ) ) $forms = array( (int) 0 => array( 'Categoryform' => array( 'id' => (int) 234, 'active' => (int) 1, 'hash' => '0063330aa76f93c808e98204dfc0126ea2f8e160', 'category_id' => (int) 123, 'specialization_id' => null, 'option' => null, 'field' => 'date_effect', 'type_form' => (int) 5, 'conditions' => null, 'sort' => null, 'json_values' => 'Fecha de Inicio del viaje', 'label' => 'Fecha de inicio', 'ord' => (int) 1, 'created' => '04/09/2024 09:46:28', 'modified' => '17/06/2025 10:56:27', 'parent_field' => '', 'tooltip_title' => 'Fecha de inicio', 'tooltip_content' => 'Selecciona el día a partir del cual la póliza entrará en vigor.', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null, 'values' => null ) ), (int) 1 => array( 'Categoryform' => array( 'id' => (int) 235, 'active' => (int) 1, 'hash' => 'bf5d78016afc87be2af17a6dc420d63aaf762ba1', 'category_id' => (int) 123, 'specialization_id' => null, 'option' => null, 'field' => 'date_end', 'type_form' => (int) 5, 'conditions' => null, 'sort' => null, 'json_values' => 'Fecha de finalización de la póliza', 'label' => 'Fecha de finalización', 'ord' => (int) 2, 'created' => '04/09/2024 09:47:06', 'modified' => '17/06/2025 10:56:45', 'parent_field' => '', 'tooltip_title' => 'Fecha de finalización', 'tooltip_content' => 'Selecciona el último día de validez de la póliza. No puede superar los 49 días luego de la fecha de inicio.', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null, 'values' => null ) ), (int) 2 => array( 'Categoryform' => array( 'id' => (int) 191, 'active' => (int) 1, 'hash' => '28d39749c9ae852aaa76890abd9a1a7aaff07837', 'category_id' => (int) 123, 'specialization_id' => null, 'option' => null, 'field' => 'maximum', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => 'Maximo', 'label' => 'Límite máximo de cobertura', 'ord' => (int) 3, 'created' => '01/08/2024 10:52:10', 'modified' => '31/10/2024 11:39:41', 'parent_field' => '', 'tooltip_title' => 'Límite de cobertura', 'tooltip_content' => 'Seleccione el máximo límite que desee asegurar.', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null, 'values' => array( [maximum depth reached] ) ) ), (int) 3 => array( 'Categoryform' => array( 'id' => (int) 236, 'active' => (int) 1, 'hash' => '058459c16364aee7539d1526cc8093a8c7b9da22', 'category_id' => (int) 123, 'specialization_id' => null, 'option' => null, 'field' => 'option', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => 'Lugar de destino', 'ord' => (int) 4, 'created' => '04/09/2024 10:04:27', 'modified' => '31/10/2024 10:27:27', 'parent_field' => '', 'tooltip_title' => 'Detalle de las opciones:', 'tooltip_content' => 'Listado de países de EUROPA incluye países ribereños del mediterráneo: Albania, Austria, Alemania, Andorra, Armenia, Azerbaiyán, Bélgica, Bielorrusia, Bosnia y Herzegovina, Bulgaria, Ciudad del Vaticano, Chipre, Croacia, Dinamarca, Eslovaquia, Eslovenia, España, Estonia, Finlandia, Francia, Georgia, Grecia, Hungría, Irlanda, Islandia, Italia, Letonia, Liechtenstein, Lituania, Luxemburgo, República de Macedonia del Norte, Malta, Moldavia, Mónaco, Montenegro, Noruega, Países Bajos, Polonia, Portugal, Reino Unido, República Checa, Rumania, San Marino, Serbia, Suecia, Suiza, Turquía y Ucrania, Islas Canarias, Azores, Madeira, Marruecos, Argelia, Túnez, Libia, Líbano, Egipto e Israel. Listado de países MUNDO: Afganistán,Albania,Alemania,Andorra,Angola,Antártida,Antigua y Barbuda,Antillas Neerlandesas, Arabia Saudí, Argelia, Argentina, Armenia, Aruba, Australia, Austria, Azerbaiyán, Bahamas, Bahráin, Bangladesh, Barbados, Bélgica, Belice, Benín, Bermudas, Bielorrusia, Bolivia, Bosnia-Herzegovina, Botsuana, Brasil, Brunei, Darussalam, Bulgaria, Burkina Faso, Burundi, Bután, Cabo Verde, Camboya, Camerún, Canadá, Chad, Chile, China, Chipre, Ciudad Vaticano, Colombia, Comoras, Corea del Norte, Corea del Sur, Costa de Marfil, Costa Rica, Croacia, Cuba, de Anguilla, Dinamarca, Dominica, Ecuador, EE.UU., Egipto, El Salvador, Emiratos Árabes Unidos, Eritrea, Eslovaquia, Eslovenia, España, Estonia, Etiopía, Federación Rusa, Filipinas, Finlandia, Fiyi, Francia, Gabón, Gambia, Georgia, Ghana, Gibraltar, Granada, Grecia, Groenlandia, Guadalupe, Guam, Guatemala, Guayana Francesa, Guinea, Guinea Ecuatorial, Guinea-Bissau, Guyana, Haití, Honduras, Hong Kong, Hungría, India, Indonesia, Irán, Iraq, Irlanda, Isla Christmas, Islandia, Islas Bouvet, Islas Caimán, Islas Cocos, Islas Cook, Islas Feroe, Islas Heard y Mcdonald, Islas Malvinas, Islas Marianas del Norte, Islas Marshall, Islas menores alejadas de EE.UU., Islas Niue, IslasNorfolk, Islas Pitcairn, Islas Salomón, Islas Sur Georgia y Sur Sandwich, Islas Tokelau, Islas Turcas y Caicos, Islas Vírgenes (americanas), Islas Vírgenes GB, Israel, Italia, Jamaica, Japón, Jordania, Kazajistán, Kenia, Kirguizistán, Kiribati, Kuwait, Laos, Lesoto, Letonia, Líbano, Liberia, Libia, Liechtenstein, Lituania, Luxemburgo, Macao, Macedonia, Madagascar, Malasia, Malaui, Maldivas, Malí, Malta, Marruecos, Martinica, Mauricio (Isl.), Mauritania, Mayotte, México, Micronesia, Moldavia, Mónaco, Mongolia, Montenegro, Montserrat, Mozambique, Myanmar, Namibia, Nauru, Nepal, Nicaragua, Níger, Nigeria, Noruega, Nueva Caledonia, Nueva Zelanda, Omán, Países Bajos, Pakistán, Palaos, Palestina, Panamá, Papúa Nueva Guinea, Paraguay, Perú, Polinesia francesa, Polonia, Portugal, Puerto Rico, Qatar, Reino Unido, República centroafricana, República Checa, República del Congo, República del Congo, República Dominicana, Reunión, Ruanda, Rumanía, Sáhara occidental, Saint Kitts y Nevis, Samoa americana, Samoa Occidental, San Marino, San Vicente y las Granadinas, Santa Helena, Santa Lucía,Santo Tomé y Príncipe, Senegal, Serbia, Seychelles,Sierra Leona, Singapur, Siria, Somalia,Sri Lanka,St. Pedro y Miquelón, Suazilandia, Sudáfrica,S udán,Sudán Sur, Suecia, Suiza, Surinam, Svalbard, Tailandia, Taiwan, Tanzania, Tayikistán, Territorio británico en Océano Índico, Timor Oriental, Timor oriental, Togo, Tonga,Trinidad y Tobago, Túnez,Turkmenistán,Turquía, Tuvalu, Ucrania, Uganda, Uruguay, Uzbekistán, Vanuatu, Venezuela, Vietnam, Wallis, Futuna, Yemen, Yibuti, Zambia, Zimbabue.', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null, 'values' => array( [maximum depth reached] ) ) ), (int) 4 => array( 'Categoryform' => array( 'id' => (int) 238, 'active' => (int) 1, 'hash' => '93acdecf4eaf3aba020a38e8d3870224ca0ada8f', 'category_id' => (int) 123, 'specialization_id' => null, 'option' => null, 'field' => 'option1', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => 'Altitud del destino turístico', 'ord' => (int) 6, 'created' => '04/09/2024 11:27:40', 'modified' => '11/10/2024 09:22:47', 'parent_field' => '', 'tooltip_title' => '', 'tooltip_content' => '¿Cúal es el límite máximo de altitud que vas a alcanzar realizando tus actividades de aventura?', 'host_id' => null, 'tooltip_content_modal' => null, 'item_id' => null, 'values' => array( [maximum depth reached] ) ) ), (int) 5 => array( 'Categoryform' => array( 'id' => (int) 239, 'active' => (int) 1, 'hash' => 'df31afe9e05363175cb15f60dd5ae16da74ce3b3', 'category_id' => (int) 123, 'specialization_id' => null, 'option' => null, 'field' => 'nr_people', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '{"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9"}', 'label' => 'Datos de los participantes', 'ord' => (int) 7, 'created' => '04/09/2024 11:37:04', 'modified' => '03/06/2025 06:30:33', 'parent_field' => '', 'tooltip_title' => '', 'tooltip_content' => 'Selecciona el número máximo de personas aseguradas, teniendo en cuenta que la edad máxima de cualquier viaje al momento de la contratación de la póliza es de 70 años.', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null, 'values' => array( [maximum depth reached] ) ) ) ) $user_agent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' $autocomplete = 'off' $class = 'green' $contact_type = (int) 2 $use_query = null $current_url = 'galia/seguros-galia/calcular-seguro-asistencia-viaje-galia' $urls = array( (int) 0 => 'galia', (int) 1 => 'seguros-galia', (int) 2 => 'calcular-seguro-asistencia-viaje-galia' ) $step_title = '' $steps = (int) 0include - APP/View/Elements/Widgets/widget21.ctp, line 1662 View::_evaluate() - CORE/Cake/View/View.php, line 971 View::_render() - CORE/Cake/View/View.php, line 933 View::_renderElement() - CORE/Cake/View/View.php, line 1224 View::element() - CORE/Cake/View/View.php, line 418 include - APP/View/Pages/content.ctp, line 33 View::_evaluate() - CORE/Cake/View/View.php, line 971 View::_render() - CORE/Cake/View/View.php, line 933 View::render() - CORE/Cake/View/View.php, line 473 Controller::render() - CORE/Cake/Controller/Controller.php, line 968 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 107
Notice (8): Undefined index: [APP/View/Elements/Widgets/widget21.ctp, line 1662]Code Context<div class="jcf-scrollable"><div class="hold-text hold-text-rules"><?php echo $this->element('Boxes/box12', array('box' => $widget['Objectsbox'][$objectsboxkey])); ?>$viewFile = '/var/www/www.galia.qbind.eu/app/View/Elements/Widgets/widget21.ctp' $dataForView = array( 'website_id' => '1', 'folder_img' => 'galia', 'pageContent' => array( 'Content' => array( 'id' => (int) 249, 'categorieswebsite_id' => null, 'ref_categorieswebsite_id' => (int) 122, 'class_button' => '0', 'maintitle' => '13 Calcular Seguro de Asistencia en Viaje Galia', 'subtitle' => 'Calcular Seguro de Asistencia en Viaje Galia', 'meta_title' => 'Calcular Seguro de Asistencia en Viaje Galia', 'meta_key' => 'Calcular seguro de asistencia en viaje galia', 'meta_desc' => 'Calcular Seguro de Asistencia en Viaje Galia', 'canonical' => null, 'nofollow' => (int) 0, 'robot' => null, 'quoteview_id' => (int) 37, 'use_steps' => (int) 1, 'filter_position' => (int) 0, 'use_query' => null, 'class_color' => 'green' ), 'Categorieswebsite' => array( 'id' => null, 'category_id' => null, 'parent_id' => null ), 'Refcategorieswebsite' => array( 'id' => (int) 122, 'category_id' => (int) 123, 'Category' => array( [maximum depth reached] ) ), 'Objectswidget' => array( (int) 0 => array( [maximum depth reached] ) ), 'one' => 'galia', 'two' => 'seguros-galia', 'tree' => 'calcular-seguro-asistencia-viaje-galia', 'param1' => null, 'param2' => null, 'websites' => array( (int) 0 => array( [maximum depth reached] ) ), 'main_menu' => array( (int) 0 => array( [maximum depth reached] ) ), 'footer_menu' => array( (int) 0 => array( [maximum depth reached] ) ), 'objectsheader' => array( 'Objectsheader' => array( [maximum depth reached] ), 'Objectswidget' => array( [maximum depth reached] ) ), 'objectsfooter' => array(), 'all_categories' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ), (int) 9 => array( [maximum depth reached] ), (int) 10 => array( [maximum depth reached] ), (int) 11 => array( [maximum depth reached] ), (int) 12 => array( [maximum depth reached] ), (int) 13 => array( [maximum depth reached] ), (int) 14 => array( [maximum depth reached] ), (int) 15 => array( [maximum depth reached] ), (int) 16 => array( [maximum depth reached] ), (int) 17 => array( [maximum depth reached] ), (int) 18 => array( [maximum depth reached] ), (int) 19 => array( [maximum depth reached] ), (int) 20 => array( [maximum depth reached] ), (int) 21 => array( [maximum depth reached] ), (int) 22 => array( [maximum depth reached] ), (int) 23 => array( [maximum depth reached] ), (int) 24 => array( [maximum depth reached] ), (int) 25 => array( [maximum depth reached] ), (int) 26 => array( [maximum depth reached] ), (int) 27 => array( [maximum depth reached] ), (int) 28 => array( [maximum depth reached] ), (int) 29 => array( [maximum depth reached] ), (int) 30 => array( [maximum depth reached] ), (int) 31 => array( [maximum depth reached] ), (int) 32 => array( [maximum depth reached] ), (int) 33 => array( [maximum depth reached] ), (int) 34 => array( [maximum depth reached] ), (int) 35 => array( [maximum depth reached] ), (int) 36 => array( [maximum depth reached] ), (int) 37 => array( [maximum depth reached] ), (int) 38 => array( [maximum depth reached] ), (int) 39 => array( [maximum depth reached] ), (int) 40 => array( [maximum depth reached] ), (int) 41 => array( [maximum depth reached] ), (int) 42 => array( [maximum depth reached] ), (int) 43 => array( [maximum depth reached] ), (int) 44 => array( [maximum depth reached] ), (int) 45 => array( [maximum depth reached] ), (int) 46 => array( [maximum depth reached] ), (int) 47 => array( [maximum depth reached] ), (int) 48 => array( [maximum depth reached] ), (int) 49 => array( [maximum depth reached] ), (int) 50 => array( [maximum depth reached] ), (int) 51 => array( [maximum depth reached] ), (int) 52 => array( [maximum depth reached] ), (int) 53 => array( [maximum depth reached] ), (int) 54 => array( [maximum depth reached] ), (int) 55 => array( [maximum depth reached] ), (int) 56 => array( [maximum depth reached] ), (int) 57 => array( [maximum depth reached] ), (int) 58 => array( [maximum depth reached] ), (int) 59 => array( [maximum depth reached] ), (int) 60 => array( [maximum depth reached] ), (int) 61 => array( [maximum depth reached] ), (int) 62 => array( [maximum depth reached] ), (int) 63 => array( [maximum depth reached] ), (int) 64 => array( [maximum depth reached] ), (int) 65 => array( [maximum depth reached] ), (int) 66 => array( [maximum depth reached] ), (int) 67 => array( [maximum depth reached] ), (int) 68 => array( [maximum depth reached] ), (int) 69 => array( [maximum depth reached] ), (int) 70 => array( [maximum depth reached] ), (int) 71 => array( [maximum depth reached] ), (int) 72 => array( [maximum depth reached] ), (int) 73 => array( [maximum depth reached] ), (int) 74 => array( [maximum depth reached] ), (int) 75 => array( [maximum depth reached] ), (int) 76 => array( [maximum depth reached] ), (int) 77 => array( [maximum depth reached] ), (int) 78 => array( [maximum depth reached] ), (int) 79 => array( [maximum depth reached] ), (int) 80 => array( [maximum depth reached] ), (int) 81 => array( [maximum depth reached] ), (int) 82 => array( [maximum depth reached] ), (int) 83 => array( [maximum depth reached] ), (int) 84 => array( [maximum depth reached] ), (int) 85 => array( [maximum depth reached] ), (int) 86 => array( [maximum depth reached] ), (int) 87 => array( [maximum depth reached] ), (int) 88 => array( [maximum depth reached] ), (int) 89 => array( [maximum depth reached] ), (int) 90 => array( [maximum depth reached] ), (int) 91 => array( [maximum depth reached] ), (int) 92 => array( [maximum depth reached] ), (int) 93 => array( [maximum depth reached] ), (int) 94 => array( [maximum depth reached] ), (int) 95 => array( [maximum depth reached] ), (int) 96 => array( [maximum depth reached] ), (int) 97 => array( [maximum depth reached] ), (int) 98 => array( [maximum depth reached] ) ) ), 'widget' => array( 'id' => (int) 768, 'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba', 'main_title' => 'Necesitamos algunos datos para calcular tu seguro', 'main_title1' => '', 'sub_title' => '¿Quién va a contratar el seguro?', 'subsub_title' => 'Es obligatorio completar todos los campos', 'icon' => null, 'icon_alt' => null, 'main_text' => '', 'main_text_1' => null, 'tab_title' => '', 'tab_title_1' => '', 'tab_title_2' => '', 'tab_title_3' => '', 'tab_text' => null, 'tab_text_1' => '', 'tab_text_2' => '<ul> <li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li> <li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li> <li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li> </ul> ', 'tab_text_3' => null, 'main_img' => null, 'main_img_1' => null, 'main_img_alt' => '', 'main_img_1_alt' => '', 'button_label' => 'SIGUIENTE', 'main_link_1' => 'https://galia.es/especialidades/vacaciones/', 'main_link_2' => null, 'main_link_3' => null, 'description' => '', 'description_1' => null, 'description_2' => null, 'lon' => null, 'lat' => null, 'slogan' => null, 'author' => (int) 5, 'where_clause' => null, 'filter' => '', 'created' => '01/10/2024 05:59:40', 'modified' => '22/12/2025 07:05:51', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 249, 'main_img_2' => null, 'main_img_2_alt' => '', 'dynamic' => (int) 0, 'label0' => '', 'label1' => 'esta póliza es para ti', 'label2' => '', 'label3' => '', 'label4' => '', 'label5' => '', 'main_video' => null, 'contact' => null, 'script' => null, 'run_core' => (int) 1, 'core' => null, 'js_mobile' => (int) 0, 'js_desktop' => null, 'query_id' => null, 'quantity' => null, 'multiselect' => '123', 'msd_content_type' => null, 'dmultiselect' => null, 'label6' => null, 'label7' => null, 'label8' => null, 'mscwo_order' => null, 'objectsfooter_id' => null, 'objectsheader_id' => null, 'Widget' => array( 'hash' => 'dflisd;fjkhsdkll;sdjk ', 'name' => 'Widget for automatic form Webind', 'description' => 'Widget for automatic form Webind like widget28 but with changed steps', 'owner_id' => null, 'created' => null, 'modified' => null, 'active' => (int) 1, 'publish' => (int) 1, 'id' => (int) 21, 'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,', 'long_description' => '', 'quotelayout' => null, 'core' => '$category_id = $Category.id; $pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id; $step = $param1; $pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step; if(!empty($param2)){ $quote_hash = $param2; } $categorieswebsite = $this->Categorieswebsite->find('first', array( 'conditions' => array( 'Categorieswebsite.website_id' => Configure::read('Website.website_id'), 'Categorieswebsite.category_id' => $category_id ), 'contain' => array( 'Content' => array( 'fields' => array( 'id', 'full_url', 'maintitle', 'use_steps', ), 'conditions' => array( 'Content.active' => 1 ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite; if(!empty($param2)){ $quote_hash = $param2; } if(!empty($step)){ if($step == 1){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'category_id', 'retro_effect_id', 'retro_effect', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); // here we are creating all the questions type, what is displayed it decided in the steps $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; $this->loadModel('Item'); $item = $this->Item->find('first', array( 'fields' => array( 'id' ), 'conditions' => array( 'Item.category_id' => $quote['Quote']['category_id'], ), 'contain' => array( 'Option' => array( 'fields' => array( 'id', 'name', ), 'conditions' => array( 'Option.active' => 1, 'Option.macro_option' => 'retroattivita' ), 'order' => array( 'Option.id ASC', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item; }elseif($step == 2){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST' ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Document8' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document8.active' => 1, 'Document8.public' => 1, 'Document8.documenttype_id' => 8, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document8.id DESC', ), ), 'Document23' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document23.active' => 1, 'Document23.public' => 1, 'Document23.documenttype_id' => 23, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document23.id DESC', ), ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'Optionlabel', ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'premium', 'minimum_premium', ), ), ), )); if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){ foreach($quote['Item']['Option'] as $key => $option){ $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; if(!empty($quote['Quote']['value_id'])) { $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.value_id' => $quote['Quote']['value_id'], ), 'contain' => $contain, )); $pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote; } }elseif($step == 3){ $this->loadModel('Quote'); $this->Quote->setDataSource('default'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'last_turnover', 'maximum', 'date_effect', 'date_end', 'item_id', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), 'Item' => array( 'fields' => array( 'id', 'date_effect_limit_down', 'date_effect_limit_up', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; }elseif($step == 4){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Zipcode'); $zipcodes = $this->Zipcode->list_zipcodes(); $pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes; }elseif($step == 5){ $this->loadModel('Payment'); $payments = $this->Payment->find('all', array( 'conditions' => array( 'AND' => array( 'Payment.active' => 1, 'Payment.website_id' => Configure::read('Website.website_id'), 'Payment.type' => 2, ), ), 'order' => 'Payment.order', )); $pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments; $today = date('d/m/Y'); $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'fields' => array( 'id', 'name', 'weblabel', 'turnover_type', 'extra_option', 'gross_rate', 'taxes', 'accessories', ), 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST', ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Category' => array( 'fields' => array( 'id', 'name', ) ), 'Document' => array( 'Documenttype', ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'conditions' => array( 'Option.active' => 1, 'Option.default' => 0, 'Option.macro_option' => 'extra', ), ), 'Itemdiscount' => array( 'fields' => array( 'id', 'value', 'code', ), 'conditions' => array( 'Itemdiscount.active' => 1, 'Itemdiscount.apply_id' => 1, 'AND' => array( 'Itemdiscount.date_start <=' => $today, 'Itemdiscount.date_end >=' => $today, ), ), 'order' => array( 'Itemdiscount.id DESC', ), ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'minimum_premium', 'premium', 'deductible', ), ), ), )); $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) { foreach($quote['Item']['Option'] as $option_key => $option) { $opt = array(); $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$option_key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.value_id' => $quote['Quote']['value_id'], 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.active' => '1' ), 'contain' => $contain, 'recursive' => -1 )); $quote['Quote']['Tempquote'] = $tempquote['Tempquote']; for ($x = 1; $x <= $options_count; $x++) { if(!empty($tempquote['Option' . $x])){ $quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Option' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value; } } for ($x = 1; $x <= $extra_count; $x++) { if(!empty($tempquote['Extra' . $x])){ $quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Extra' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value; } } $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; } } else { $this->loadModel('Privacy'); $privacies = $this->Privacy->getprivacies($category_id); $pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies; } $this->loadModel('Categoryform'); $forms = $this->Categoryform->find('all', array( 'conditions' => array( 'AND' => array( 'Categoryform.active' => 1, 'Categoryform.category_id' => $category_id, 'Categoryform.specialization_id is null', 'Categoryform.option is null', ), ), 'order' => array( 'Categoryform.ord' ), )); if (!empty($forms)) { $this->loadModel('Value'); foreach ($forms as $formkey => $form) { if (!empty($form['Categoryform']['json_values'])) { $forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true); } if (empty($form['Categoryform']['values'])) { if ($form['Categoryform']['type_form'] == '1') { $forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label']; continue; } if ($form['Categoryform']['field'] == 'last_turnover') { $turnovers = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.turnover', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.turnover ASC' ) )); //$this->log('$turnovers'); //$this->log($turnovers); //Preparo l'array dei massimali $turnovers_formatted = array(); foreach ($turnovers as $turnover) { $turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $turnovers_formatted; //$this->log('$turnovers_formatted'); //$this->log($turnovers_formatted); } if ($form['Categoryform']['field'] == 'maximum') { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } if ($form['Categoryform']['field'] == 'specialization_id') { $specializations = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.specialization_id', 'Specialization.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Specialization' => array( 'fields' => array( 'id', 'name', 'svg', ), ), ), 'order' => array('Specialization.name asc'), )); //$this->log('$specializations'); //$this->log($specializations); if (!empty($specializations)) { foreach ($specializations as $specialization) { $forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array( 'id' => $specialization['Specialization']['id'], 'name' => $specialization['Specialization']['name'], 'svg' => $specialization['Specialization']['svg'], ); } } $specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name'); $forms[$formkey]['Categoryform']['values'] = $specializations; } if ($form['Categoryform']['field'] == 'option') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'option1') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'year_loan') { $year_contracts = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.year_contract', 'Value.year_contract' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.year_contract ASC' ), )); $year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract'); $forms[$formkey]['Categoryform']['values'] = $year_contracts; } if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.option' => $form['Categoryform']['option'], 'Value.minimum_premium !=' => '0', ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } } } } $pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms; ', 'filter' => '' ), 'Objectsbox' => array(), 'Objectsboxform' => array(), 'folder_img' => 'galia', 'param1' => '', 'param2' => '', 'apidata' => array( 'category_id' => (int) 123, 'step' => '', 'categorieswebsite' => array( [maximum depth reached] ), 'privacies' => array( [maximum depth reached] ), 'forms' => array( [maximum depth reached] ) ) ), 'sitemaps' => '', 'meanrating' => '', 'content_id' => (int) 249, 'ref_categorieswebsite_id' => (int) 122, 'contentColor' => '0' ) $website_id = '1' $folder_img = 'galia' $pageContent = array( 'Content' => array( 'id' => (int) 249, 'categorieswebsite_id' => null, 'ref_categorieswebsite_id' => (int) 122, 'class_button' => '0', 'maintitle' => '13 Calcular Seguro de Asistencia en Viaje Galia', 'subtitle' => 'Calcular Seguro de Asistencia en Viaje Galia', 'meta_title' => 'Calcular Seguro de Asistencia en Viaje Galia', 'meta_key' => 'Calcular seguro de asistencia en viaje galia', 'meta_desc' => 'Calcular Seguro de Asistencia en Viaje Galia', 'canonical' => null, 'nofollow' => (int) 0, 'robot' => null, 'quoteview_id' => (int) 37, 'use_steps' => (int) 1, 'filter_position' => (int) 0, 'use_query' => null, 'class_color' => 'green' ), 'Categorieswebsite' => array( 'id' => null, 'category_id' => null, 'parent_id' => null ), 'Refcategorieswebsite' => array( 'id' => (int) 122, 'category_id' => (int) 123, 'Category' => array( 'id' => (int) 123, 'contact_type' => (int) 2 ) ), 'Objectswidget' => array( (int) 0 => array( 'id' => (int) 768, 'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba', 'main_title' => 'Necesitamos algunos datos para calcular tu seguro', 'main_title1' => '', 'sub_title' => '¿Quién va a contratar el seguro?', 'subsub_title' => 'Es obligatorio completar todos los campos', 'icon' => null, 'icon_alt' => null, 'main_text' => '', 'main_text_1' => null, 'tab_title' => '', 'tab_title_1' => '', 'tab_title_2' => '', 'tab_title_3' => '', 'tab_text' => null, 'tab_text_1' => '', 'tab_text_2' => '<ul> <li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li> <li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li> <li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li> </ul> ', 'tab_text_3' => null, 'main_img' => null, 'main_img_1' => null, 'main_img_alt' => '', 'main_img_1_alt' => '', 'button_label' => 'SIGUIENTE', 'main_link_1' => 'https://galia.es/especialidades/vacaciones/', 'main_link_2' => null, 'main_link_3' => null, 'description' => '', 'description_1' => null, 'description_2' => null, 'lon' => null, 'lat' => null, 'slogan' => null, 'author' => (int) 5, 'where_clause' => null, 'filter' => '', 'created' => '01/10/2024 05:59:40', 'modified' => '22/12/2025 07:05:51', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 249, 'main_img_2' => null, 'main_img_2_alt' => '', 'dynamic' => (int) 0, 'label0' => '', 'label1' => 'esta póliza es para ti', 'label2' => '', 'label3' => '', 'label4' => '', 'label5' => '', 'main_video' => null, 'contact' => null, 'script' => null, 'run_core' => (int) 1, 'core' => null, 'js_mobile' => (int) 0, 'js_desktop' => null, 'query_id' => null, 'quantity' => null, 'multiselect' => '123', 'msd_content_type' => null, 'dmultiselect' => null, 'label6' => null, 'label7' => null, 'label8' => null, 'mscwo_order' => null, 'objectsfooter_id' => null, 'objectsheader_id' => null, 'Widget' => array( [maximum depth reached] ), 'Objectsbox' => array([maximum depth reached]), 'Objectsboxform' => array([maximum depth reached]), 'folder_img' => 'galia', 'param1' => '', 'param2' => '', 'apidata' => array( [maximum depth reached] ) ) ), 'one' => 'galia', 'two' => 'seguros-galia', 'tree' => 'calcular-seguro-asistencia-viaje-galia', 'param1' => null, 'param2' => null, 'websites' => array( (int) 0 => array( 'Website' => array( [maximum depth reached] ) ) ), 'main_menu' => array( (int) 0 => array( 'id' => (int) 4, 'title' => 'Productos', 'slogan' => '', 'button' => 'Productos', 'link' => 'Productos', 'n_items' => (int) 5, 'url' => 'seguros', 'color' => 'green' ) ), 'footer_menu' => array( (int) 0 => array( 'title' => null, 'url' => null, 'n_items' => null, 'menu' => array( [maximum depth reached] ) ) ), 'objectsheader' => array( 'Objectsheader' => array( 'id' => (int) 1, 'header_id' => (int) 1 ), 'Objectswidget' => array( (int) 0 => array( [maximum depth reached] ) ) ), 'objectsfooter' => array(), 'all_categories' => array( (int) 0 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 1 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 2 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 3 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 4 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 5 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 6 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 7 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 8 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 9 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 10 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 11 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 12 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 13 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 14 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 15 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 16 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 17 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 18 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 19 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 20 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 21 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 22 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 23 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 24 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 25 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 26 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 27 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 28 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 29 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 30 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 31 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 32 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 33 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 34 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 35 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 36 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 37 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 38 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 39 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 40 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 41 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 42 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 43 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 44 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 45 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 46 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 47 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 48 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 49 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 50 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 51 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 52 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 53 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 54 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 55 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 56 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 57 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 58 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 59 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 60 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 61 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 62 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 63 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 64 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 65 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 66 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 67 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 68 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 69 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 70 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 71 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 72 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 73 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 74 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 75 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 76 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 77 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 78 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 79 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 80 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 81 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 82 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 83 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 84 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 85 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 86 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 87 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 88 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 89 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 90 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 91 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 92 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 93 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 94 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 95 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 96 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 97 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 98 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ) ) ) $widget = array( 'id' => (int) 768, 'hash' => 'ce2c58aa161b73c261d666219a511d51bdb8d6ba', 'main_title' => 'Necesitamos algunos datos para calcular tu seguro', 'main_title1' => '', 'sub_title' => '¿Quién va a contratar el seguro?', 'subsub_title' => 'Es obligatorio completar todos los campos', 'icon' => null, 'icon_alt' => null, 'main_text' => '', 'main_text_1' => null, 'tab_title' => '', 'tab_title_1' => '', 'tab_title_2' => '', 'tab_title_3' => '', 'tab_text' => null, 'tab_text_1' => '', 'tab_text_2' => '<ul> <li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li> <li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li> <li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li> </ul> ', 'tab_text_3' => null, 'main_img' => null, 'main_img_1' => null, 'main_img_alt' => '', 'main_img_1_alt' => '', 'button_label' => 'SIGUIENTE', 'main_link_1' => 'https://galia.es/especialidades/vacaciones/', 'main_link_2' => null, 'main_link_3' => null, 'description' => '', 'description_1' => null, 'description_2' => null, 'lon' => null, 'lat' => null, 'slogan' => null, 'author' => (int) 5, 'where_clause' => null, 'filter' => '', 'created' => '01/10/2024 05:59:40', 'modified' => '22/12/2025 07:05:51', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 249, 'main_img_2' => null, 'main_img_2_alt' => '', 'dynamic' => (int) 0, 'label0' => '', 'label1' => 'esta póliza es para ti', 'label2' => '', 'label3' => '', 'label4' => '', 'label5' => '', 'main_video' => null, 'contact' => null, 'script' => null, 'run_core' => (int) 1, 'core' => null, 'js_mobile' => (int) 0, 'js_desktop' => null, 'query_id' => null, 'quantity' => null, 'multiselect' => '123', 'msd_content_type' => null, 'dmultiselect' => null, 'label6' => null, 'label7' => null, 'label8' => null, 'mscwo_order' => null, 'objectsfooter_id' => null, 'objectsheader_id' => null, 'Widget' => array( 'hash' => 'dflisd;fjkhsdkll;sdjk ', 'name' => 'Widget for automatic form Webind', 'description' => 'Widget for automatic form Webind like widget28 but with changed steps', 'owner_id' => null, 'created' => null, 'modified' => null, 'active' => (int) 1, 'publish' => (int) 1, 'id' => (int) 21, 'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,', 'long_description' => '', 'quotelayout' => null, 'core' => '$category_id = $Category.id; $pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id; $step = $param1; $pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step; if(!empty($param2)){ $quote_hash = $param2; } $categorieswebsite = $this->Categorieswebsite->find('first', array( 'conditions' => array( 'Categorieswebsite.website_id' => Configure::read('Website.website_id'), 'Categorieswebsite.category_id' => $category_id ), 'contain' => array( 'Content' => array( 'fields' => array( 'id', 'full_url', 'maintitle', 'use_steps', ), 'conditions' => array( 'Content.active' => 1 ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite; if(!empty($param2)){ $quote_hash = $param2; } if(!empty($step)){ if($step == 1){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'category_id', 'retro_effect_id', 'retro_effect', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); // here we are creating all the questions type, what is displayed it decided in the steps $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; $this->loadModel('Item'); $item = $this->Item->find('first', array( 'fields' => array( 'id' ), 'conditions' => array( 'Item.category_id' => $quote['Quote']['category_id'], ), 'contain' => array( 'Option' => array( 'fields' => array( 'id', 'name', ), 'conditions' => array( 'Option.active' => 1, 'Option.macro_option' => 'retroattivita' ), 'order' => array( 'Option.id ASC', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item; }elseif($step == 2){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST' ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Document8' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document8.active' => 1, 'Document8.public' => 1, 'Document8.documenttype_id' => 8, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document8.id DESC', ), ), 'Document23' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document23.active' => 1, 'Document23.public' => 1, 'Document23.documenttype_id' => 23, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document23.id DESC', ), ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'Optionlabel', ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'premium', 'minimum_premium', ), ), ), )); if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){ foreach($quote['Item']['Option'] as $key => $option){ $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; if(!empty($quote['Quote']['value_id'])) { $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.value_id' => $quote['Quote']['value_id'], ), 'contain' => $contain, )); $pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote; } }elseif($step == 3){ $this->loadModel('Quote'); $this->Quote->setDataSource('default'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'last_turnover', 'maximum', 'date_effect', 'date_end', 'item_id', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), 'Item' => array( 'fields' => array( 'id', 'date_effect_limit_down', 'date_effect_limit_up', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; }elseif($step == 4){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Zipcode'); $zipcodes = $this->Zipcode->list_zipcodes(); $pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes; }elseif($step == 5){ $this->loadModel('Payment'); $payments = $this->Payment->find('all', array( 'conditions' => array( 'AND' => array( 'Payment.active' => 1, 'Payment.website_id' => Configure::read('Website.website_id'), 'Payment.type' => 2, ), ), 'order' => 'Payment.order', )); $pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments; $today = date('d/m/Y'); $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'fields' => array( 'id', 'name', 'weblabel', 'turnover_type', 'extra_option', 'gross_rate', 'taxes', 'accessories', ), 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST', ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Category' => array( 'fields' => array( 'id', 'name', ) ), 'Document' => array( 'Documenttype', ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'conditions' => array( 'Option.active' => 1, 'Option.default' => 0, 'Option.macro_option' => 'extra', ), ), 'Itemdiscount' => array( 'fields' => array( 'id', 'value', 'code', ), 'conditions' => array( 'Itemdiscount.active' => 1, 'Itemdiscount.apply_id' => 1, 'AND' => array( 'Itemdiscount.date_start <=' => $today, 'Itemdiscount.date_end >=' => $today, ), ), 'order' => array( 'Itemdiscount.id DESC', ), ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'minimum_premium', 'premium', 'deductible', ), ), ), )); $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) { foreach($quote['Item']['Option'] as $option_key => $option) { $opt = array(); $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$option_key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.value_id' => $quote['Quote']['value_id'], 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.active' => '1' ), 'contain' => $contain, 'recursive' => -1 )); $quote['Quote']['Tempquote'] = $tempquote['Tempquote']; for ($x = 1; $x <= $options_count; $x++) { if(!empty($tempquote['Option' . $x])){ $quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Option' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value; } } for ($x = 1; $x <= $extra_count; $x++) { if(!empty($tempquote['Extra' . $x])){ $quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Extra' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value; } } $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; } } else { $this->loadModel('Privacy'); $privacies = $this->Privacy->getprivacies($category_id); $pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies; } $this->loadModel('Categoryform'); $forms = $this->Categoryform->find('all', array( 'conditions' => array( 'AND' => array( 'Categoryform.active' => 1, 'Categoryform.category_id' => $category_id, 'Categoryform.specialization_id is null', 'Categoryform.option is null', ), ), 'order' => array( 'Categoryform.ord' ), )); if (!empty($forms)) { $this->loadModel('Value'); foreach ($forms as $formkey => $form) { if (!empty($form['Categoryform']['json_values'])) { $forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true); } if (empty($form['Categoryform']['values'])) { if ($form['Categoryform']['type_form'] == '1') { $forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label']; continue; } if ($form['Categoryform']['field'] == 'last_turnover') { $turnovers = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.turnover', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.turnover ASC' ) )); //$this->log('$turnovers'); //$this->log($turnovers); //Preparo l'array dei massimali $turnovers_formatted = array(); foreach ($turnovers as $turnover) { $turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $turnovers_formatted; //$this->log('$turnovers_formatted'); //$this->log($turnovers_formatted); } if ($form['Categoryform']['field'] == 'maximum') { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } if ($form['Categoryform']['field'] == 'specialization_id') { $specializations = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.specialization_id', 'Specialization.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Specialization' => array( 'fields' => array( 'id', 'name', 'svg', ), ), ), 'order' => array('Specialization.name asc'), )); //$this->log('$specializations'); //$this->log($specializations); if (!empty($specializations)) { foreach ($specializations as $specialization) { $forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array( 'id' => $specialization['Specialization']['id'], 'name' => $specialization['Specialization']['name'], 'svg' => $specialization['Specialization']['svg'], ); } } $specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name'); $forms[$formkey]['Categoryform']['values'] = $specializations; } if ($form['Categoryform']['field'] == 'option') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'option1') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'year_loan') { $year_contracts = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.year_contract', 'Value.year_contract' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.year_contract ASC' ), )); $year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract'); $forms[$formkey]['Categoryform']['values'] = $year_contracts; } if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.option' => $form['Categoryform']['option'], 'Value.minimum_premium !=' => '0', ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } } } } $pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms; ', 'filter' => '' ), 'Objectsbox' => array(), 'Objectsboxform' => array(), 'folder_img' => 'galia', 'param1' => '', 'param2' => '', 'apidata' => array( 'category_id' => (int) 123, 'step' => '', 'categorieswebsite' => array( 'Categorieswebsite' => array( [maximum depth reached] ), 'Content' => array( [maximum depth reached] ) ), 'privacies' => array( (int) 0 => array( [maximum depth reached] ) ), 'forms' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ) ) ) ) $sitemaps = '' $meanrating = '' $content_id = (int) 249 $ref_categorieswebsite_id = (int) 122 $contentColor = '0' $quoteview_id = (int) 37 $category_id = (int) 123 $step = (int) 0 $use_steps = (int) 1 $quote_url = '/quotes/steps_beforeselect' $categorieswebsite = array( 'Categorieswebsite' => array( 'id' => (int) 122, 'category_id' => (int) 123, 'website_id' => (int) 1, 'active' => (int) 1, 'weblabel' => 'Seguro de Asistencia en Viaje Galia', 'online_enable' => (int) 1, 'internal_enable' => (int) 1, 'sender_name' => 'Galia - Seguros', 'sender_email' => 'info@galia.qbind.eu', 'parent_id' => (int) 121, 'content_type' => (int) 3, 'hash' => '120fba8758b6660a05ba6a59524a2cd67488a7ec', 'host_id' => null, 'created' => '30/07/2024 09:07:56', 'modified' => '25/04/2025 07:42:54', 'ord' => (int) 1 ), 'Content' => array( (int) 0 => array( 'id' => (int) 235, 'full_url' => 'galia/seguros-galia/calcular-seguro-asistencia-viaje-galia', 'maintitle' => 'Seguro de Asistencia en Viaje Galia', 'use_steps' => null, 'categorieswebsite_id' => (int) 122 ) ) ) $privacies = array( (int) 0 => array( 'Privacy' => array( 'id' => (int) 4, 'parent_id' => null, 'type_form' => (int) 1, 'is_parent' => null, 'name' => 'Privacy for Seguros', 'description' => 'He leído y acepto los términos y condiciones de <a class="link-pink" href="https://galia.es/politica-privacidad/" target="_blank">La política de privacidad</a>.', 'error_msg' => 'Por favor confirme que ha leído y aceptado los términos y condiciones de la política de privacidad', 'ord' => (int) 2, 'required' => (int) 1 ) ) ) $forms = array( (int) 0 => array( 'Categoryform' => array( 'id' => (int) 234, 'active' => (int) 1, 'hash' => '0063330aa76f93c808e98204dfc0126ea2f8e160', 'category_id' => (int) 123, 'specialization_id' => null, 'option' => null, 'field' => 'date_effect', 'type_form' => (int) 5, 'conditions' => null, 'sort' => null, 'json_values' => 'Fecha de Inicio del viaje', 'label' => 'Fecha de inicio', 'ord' => (int) 1, 'created' => '04/09/2024 09:46:28', 'modified' => '17/06/2025 10:56:27', 'parent_field' => '', 'tooltip_title' => 'Fecha de inicio', 'tooltip_content' => 'Selecciona el día a partir del cual la póliza entrará en vigor.', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null, 'values' => null ) ), (int) 1 => array( 'Categoryform' => array( 'id' => (int) 235, 'active' => (int) 1, 'hash' => 'bf5d78016afc87be2af17a6dc420d63aaf762ba1', 'category_id' => (int) 123, 'specialization_id' => null, 'option' => null, 'field' => 'date_end', 'type_form' => (int) 5, 'conditions' => null, 'sort' => null, 'json_values' => 'Fecha de finalización de la póliza', 'label' => 'Fecha de finalización', 'ord' => (int) 2, 'created' => '04/09/2024 09:47:06', 'modified' => '17/06/2025 10:56:45', 'parent_field' => '', 'tooltip_title' => 'Fecha de finalización', 'tooltip_content' => 'Selecciona el último día de validez de la póliza. No puede superar los 49 días luego de la fecha de inicio.', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null, 'values' => null ) ), (int) 2 => array( 'Categoryform' => array( 'id' => (int) 191, 'active' => (int) 1, 'hash' => '28d39749c9ae852aaa76890abd9a1a7aaff07837', 'category_id' => (int) 123, 'specialization_id' => null, 'option' => null, 'field' => 'maximum', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => 'Maximo', 'label' => 'Límite máximo de cobertura', 'ord' => (int) 3, 'created' => '01/08/2024 10:52:10', 'modified' => '31/10/2024 11:39:41', 'parent_field' => '', 'tooltip_title' => 'Límite de cobertura', 'tooltip_content' => 'Seleccione el máximo límite que desee asegurar.', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null, 'values' => array( [maximum depth reached] ) ) ), (int) 3 => array( 'Categoryform' => array( 'id' => (int) 236, 'active' => (int) 1, 'hash' => '058459c16364aee7539d1526cc8093a8c7b9da22', 'category_id' => (int) 123, 'specialization_id' => null, 'option' => null, 'field' => 'option', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => 'Lugar de destino', 'ord' => (int) 4, 'created' => '04/09/2024 10:04:27', 'modified' => '31/10/2024 10:27:27', 'parent_field' => '', 'tooltip_title' => 'Detalle de las opciones:', 'tooltip_content' => 'Listado de países de EUROPA incluye países ribereños del mediterráneo: Albania, Austria, Alemania, Andorra, Armenia, Azerbaiyán, Bélgica, Bielorrusia, Bosnia y Herzegovina, Bulgaria, Ciudad del Vaticano, Chipre, Croacia, Dinamarca, Eslovaquia, Eslovenia, España, Estonia, Finlandia, Francia, Georgia, Grecia, Hungría, Irlanda, Islandia, Italia, Letonia, Liechtenstein, Lituania, Luxemburgo, República de Macedonia del Norte, Malta, Moldavia, Mónaco, Montenegro, Noruega, Países Bajos, Polonia, Portugal, Reino Unido, República Checa, Rumania, San Marino, Serbia, Suecia, Suiza, Turquía y Ucrania, Islas Canarias, Azores, Madeira, Marruecos, Argelia, Túnez, Libia, Líbano, Egipto e Israel. Listado de países MUNDO: Afganistán,Albania,Alemania,Andorra,Angola,Antártida,Antigua y Barbuda,Antillas Neerlandesas, Arabia Saudí, Argelia, Argentina, Armenia, Aruba, Australia, Austria, Azerbaiyán, Bahamas, Bahráin, Bangladesh, Barbados, Bélgica, Belice, Benín, Bermudas, Bielorrusia, Bolivia, Bosnia-Herzegovina, Botsuana, Brasil, Brunei, Darussalam, Bulgaria, Burkina Faso, Burundi, Bután, Cabo Verde, Camboya, Camerún, Canadá, Chad, Chile, China, Chipre, Ciudad Vaticano, Colombia, Comoras, Corea del Norte, Corea del Sur, Costa de Marfil, Costa Rica, Croacia, Cuba, de Anguilla, Dinamarca, Dominica, Ecuador, EE.UU., Egipto, El Salvador, Emiratos Árabes Unidos, Eritrea, Eslovaquia, Eslovenia, España, Estonia, Etiopía, Federación Rusa, Filipinas, Finlandia, Fiyi, Francia, Gabón, Gambia, Georgia, Ghana, Gibraltar, Granada, Grecia, Groenlandia, Guadalupe, Guam, Guatemala, Guayana Francesa, Guinea, Guinea Ecuatorial, Guinea-Bissau, Guyana, Haití, Honduras, Hong Kong, Hungría, India, Indonesia, Irán, Iraq, Irlanda, Isla Christmas, Islandia, Islas Bouvet, Islas Caimán, Islas Cocos, Islas Cook, Islas Feroe, Islas Heard y Mcdonald, Islas Malvinas, Islas Marianas del Norte, Islas Marshall, Islas menores alejadas de EE.UU., Islas Niue, IslasNorfolk, Islas Pitcairn, Islas Salomón, Islas Sur Georgia y Sur Sandwich, Islas Tokelau, Islas Turcas y Caicos, Islas Vírgenes (americanas), Islas Vírgenes GB, Israel, Italia, Jamaica, Japón, Jordania, Kazajistán, Kenia, Kirguizistán, Kiribati, Kuwait, Laos, Lesoto, Letonia, Líbano, Liberia, Libia, Liechtenstein, Lituania, Luxemburgo, Macao, Macedonia, Madagascar, Malasia, Malaui, Maldivas, Malí, Malta, Marruecos, Martinica, Mauricio (Isl.), Mauritania, Mayotte, México, Micronesia, Moldavia, Mónaco, Mongolia, Montenegro, Montserrat, Mozambique, Myanmar, Namibia, Nauru, Nepal, Nicaragua, Níger, Nigeria, Noruega, Nueva Caledonia, Nueva Zelanda, Omán, Países Bajos, Pakistán, Palaos, Palestina, Panamá, Papúa Nueva Guinea, Paraguay, Perú, Polinesia francesa, Polonia, Portugal, Puerto Rico, Qatar, Reino Unido, República centroafricana, República Checa, República del Congo, República del Congo, República Dominicana, Reunión, Ruanda, Rumanía, Sáhara occidental, Saint Kitts y Nevis, Samoa americana, Samoa Occidental, San Marino, San Vicente y las Granadinas, Santa Helena, Santa Lucía,Santo Tomé y Príncipe, Senegal, Serbia, Seychelles,Sierra Leona, Singapur, Siria, Somalia,Sri Lanka,St. Pedro y Miquelón, Suazilandia, Sudáfrica,S udán,Sudán Sur, Suecia, Suiza, Surinam, Svalbard, Tailandia, Taiwan, Tanzania, Tayikistán, Territorio británico en Océano Índico, Timor Oriental, Timor oriental, Togo, Tonga,Trinidad y Tobago, Túnez,Turkmenistán,Turquía, Tuvalu, Ucrania, Uganda, Uruguay, Uzbekistán, Vanuatu, Venezuela, Vietnam, Wallis, Futuna, Yemen, Yibuti, Zambia, Zimbabue.', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null, 'values' => array( [maximum depth reached] ) ) ), (int) 4 => array( 'Categoryform' => array( 'id' => (int) 238, 'active' => (int) 1, 'hash' => '93acdecf4eaf3aba020a38e8d3870224ca0ada8f', 'category_id' => (int) 123, 'specialization_id' => null, 'option' => null, 'field' => 'option1', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => 'Altitud del destino turístico', 'ord' => (int) 6, 'created' => '04/09/2024 11:27:40', 'modified' => '11/10/2024 09:22:47', 'parent_field' => '', 'tooltip_title' => '', 'tooltip_content' => '¿Cúal es el límite máximo de altitud que vas a alcanzar realizando tus actividades de aventura?', 'host_id' => null, 'tooltip_content_modal' => null, 'item_id' => null, 'values' => array( [maximum depth reached] ) ) ), (int) 5 => array( 'Categoryform' => array( 'id' => (int) 239, 'active' => (int) 1, 'hash' => 'df31afe9e05363175cb15f60dd5ae16da74ce3b3', 'category_id' => (int) 123, 'specialization_id' => null, 'option' => null, 'field' => 'nr_people', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '{"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9"}', 'label' => 'Datos de los participantes', 'ord' => (int) 7, 'created' => '04/09/2024 11:37:04', 'modified' => '03/06/2025 06:30:33', 'parent_field' => '', 'tooltip_title' => '', 'tooltip_content' => 'Selecciona el número máximo de personas aseguradas, teniendo en cuenta que la edad máxima de cualquier viaje al momento de la contratación de la póliza es de 70 años.', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null, 'values' => array( [maximum depth reached] ) ) ) ) $user_agent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' $autocomplete = 'off' $class = 'green' $contact_type = (int) 2 $use_query = null $current_url = 'galia/seguros-galia/calcular-seguro-asistencia-viaje-galia' $urls = array( (int) 0 => 'galia', (int) 1 => 'seguros-galia', (int) 2 => 'calcular-seguro-asistencia-viaje-galia' ) $step_title = '' $steps = (int) 0include - APP/View/Elements/Widgets/widget21.ctp, line 1662 View::_evaluate() - CORE/Cake/View/View.php, line 971 View::_render() - CORE/Cake/View/View.php, line 933 View::_renderElement() - CORE/Cake/View/View.php, line 1224 View::element() - CORE/Cake/View/View.php, line 418 include - APP/View/Pages/content.ctp, line 33 View::_evaluate() - CORE/Cake/View/View.php, line 971 View::_render() - CORE/Cake/View/View.php, line 933 View::render() - CORE/Cake/View/View.php, line 473 Controller::render() - CORE/Cake/Controller/Controller.php, line 968 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 107