From 6214961fcc1a9b8ca63ad3577d18f566d979a0cd Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Thu, 7 Dec 2023 09:45:19 +0800 Subject: [PATCH] =?UTF-8?q?AH=20TM=20=E8=A1=A8=E5=8D=95=E6=88=90=E4=BA=BA?= =?UTF-8?q?=E7=B4=AF=E5=8A=A0=E8=A7=84=E5=88=99=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/orders.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/application/controllers/orders.php b/application/controllers/orders.php index 14751cd1..81b9276b 100644 --- a/application/controllers/orders.php +++ b/application/controllers/orders.php @@ -119,7 +119,12 @@ class Orders extends CI_Controller { $this->Orders_model->COLI_GroupType = '19006'; $this->Orders_model->COLI_OrderType = '19006'; - $adultNumber = $this->input->post('adult'); + + $adult_18_40 = $this->input->post('adult_18_40'); + $adult_41_64 = $this->input->post('adult_41_64'); + $adult_65_plus = $this->input->post('adult_65_plus'); + $adultNumber = intval($adult_18_40) + intval($adult_41_64) + intval($adult_65_plus); + // $childrenNumber = $this->input->post('children_3_9_yrs'); $teenagerNumber = $this->input->post('teenager_10_17_yrs'); $infantNumber = $this->input->post('infant_0_2_yrs');