diff --git a/purchase/includes/formPurchase.php b/purchase/includes/formPurchase.php index a1377b5..4db5923 100644 --- a/purchase/includes/formPurchase.php +++ b/purchase/includes/formPurchase.php @@ -110,7 +110,7 @@ class FormPurchase extends Form {

Asiento(s):".$seats."

Fecha: ".date_format(date_create($this->session->getDate()), 'd-m-Y')."

Hora: ".$this->session->getStartTime()."

-

Precio: ".$this->session->getSeatPrice()*count($this->seat)."€

+

Precio Total: ".$this->session->getSeatPrice()*count($this->seat)."€ (Precio por asiento: ".$this->session->getSeatPrice()." €)

".$htmlErroresGlobales."
Datos Bancarios diff --git a/purchase/resume.php b/purchase/resume.php index f27eee4..f29c2b9 100644 --- a/purchase/resume.php +++ b/purchase/resume.php @@ -20,8 +20,8 @@ $seatsArray = array_combine(unserialize($purchase->getRow()), unserialize($purchase->getColumn())); $seats = ""; - foreach($seatsArray as $key=>$value){ - $seats .= $key."-".$value.", "; + for($i=0; $i < count(unserialize($purchase->getRow())); $i++){ + $seats .= unserialize($purchase->getRow())[$i]."-".unserialize($purchase->getColumn())[$i].", "; } unset($_SESSION["purchase"]);