Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 6c308e35 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: set orderHash for the order process

Übergeordneter c6897e50
No related branches found
No related tags found
2 Merge Requests!7feat: article list in basket designed,!6Dev
......@@ -287,12 +287,19 @@ define('package/quiqqer/order-simple-checkout/bin/frontend/controls/SimpleChecko
// execute order
QUIAjax.post('package_quiqqer_order-simple-checkout_ajax_frontend_orderWithCosts', (result) => {
const Container = this.getElm().getElement('.quiqqer-simple-checkout-container');
this.setAttribute('orderHash', result.orderHash);
// for the OrderProcess.js
if (this.getElm().getElement('form')) {
this.getElm().getElement('form').set('data-order-hash', result.orderHash);
}
moofx(Container).animate({
opacity: 0
}, {
callback: () => {
Container.set('html', result.html);
Container.getElement('[]');
QUI.parse(Container).then(() => {
moofx(Container).animate({
......
......@@ -166,7 +166,8 @@ public function orderWithCosts(): array
'html' => $result,
'step' => $current,
'url' => $OrderProcess->getStepUrl($current),
'hash' => $OrderProcess->getStepHash()
'hash' => $OrderProcess->getStepHash(),
'orderHash' => $Order->getHash()
];
}
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren