Skip to content

Commit 85f7ec6

Browse files
authored
fix: Storefront plugin error for ACDC in After Order (#170)
1 parent c65e68f commit 85f7ec6

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 9.7.3
2+
- Fixes an issue, where card fields were not displayed in the after order payment process (shopware/shopware#7643)
3+
14
# 9.7.2
25
- Fixes an issue, where guest checkout was not possible (shopware/SwagPayPal#165)
36

CHANGELOG_de-DE.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 9.7.3
2+
- Behebt ein Problem, bei dem Kartenfelder im Zahlungsprozess nach einer Bestellung nicht angezeigt wurden (shopware/shopware#7643)
3+
14
# 9.7.2
25
- Behebt ein Problem, bei dem der Checkout als Gast nicht möglich war (shopware/SwagPayPal#165)
36

src/Resources/app/storefront/src/checkout/swag-paypal.abstract-standalone.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ export default class SwagPaypalAbstractStandalone extends SwagPaypalAbstractButt
6767
// catch sync and async errors - `.catch()` or similar aren't able to do so
6868
try {
6969
await this.render(paypal);
70-
ElementLoadingIndicatorUtil.remove(this.el);
7170
} catch (error) {
7271
this.handleError(this.SCRIPT_ERROR, true, error);
7372
}
73+
ElementLoadingIndicatorUtil.remove(this.el);
7474
});
7575
}
7676

src/Resources/app/storefront/src/checkout/swag-paypal.acdc-fields.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ export default class SwagPaypalAcdcFields extends SwagPaypalAbstractStandalone {
159159
this.confirmOrderForm.addEventListener('submit', this.onFieldSubmit.bind(this, cardFields));
160160

161161
// remove history listener, it messes up errors
162-
window.PluginManager.getPluginInstanceFromElement(this.confirmOrderForm, 'FormAddHistory').options.entries = [];
162+
const formAddHistoryPlugin = window.PluginManager.getPluginInstanceFromElement(this.confirmOrderForm, 'FormAddHistory');
163+
if (formAddHistoryPlugin) {
164+
formAddHistoryPlugin.options.entries = [];
165+
}
163166
}
164167

165168
onFieldSubmit(cardFields, event) {

0 commit comments

Comments
 (0)