From 1fac908cd509de09fb8f015a4fa9e769c3630b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Thu, 3 Jun 2021 11:58:10 +0200 Subject: [PATCH] Add files via upload --- purchase/includes/formPurchase.php | 2 +- purchase/resume.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"]);