Skip to content
Code-Schnipsel Gruppen Projekte
Commit d6db4239 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: basket calc also sends unformatted values

Übergeordneter aaecf0ce
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!127fix: basket calc also sends unformatted values,!117Update 'next-3.x' with latest changes from 'main'
Pipeline-Nr. 11954 mit Warnungen bestanden
......@@ -305,9 +305,11 @@ public function toArray(): array
// calc data
$calculations = [];
$unformatted = [];
try {
$data = $Products->getFrontendView()->toArray();
$unformatted = $Products->toArray();
unset($data['attributes']);
unset($data['products']);
......@@ -321,7 +323,8 @@ public function toArray(): array
return [
'id' => $this->getId(),
'products' => $result,
'calculations' => $calculations
'calculations' => $calculations,
'unformatted' => unformatted
];
}
......
......@@ -190,9 +190,11 @@ public function toArray(): array
// calc data
$calculations = [];
$unformatted = [];
try {
$data = $Products->getFrontendView()->toArray();
$unformatted = $Products->toArray();
unset($data['attributes']);
unset($data['products']);
......@@ -204,7 +206,8 @@ public function toArray(): array
return [
'products' => $result,
'calculations' => $calculations
'calculations' => $calculations,
'unformatted' => $unformatted
];
}
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren