From 3d8a0ab077ec9df00250d6361abc696d84b782b7 Mon Sep 17 00:00:00 2001 From: ShopWhizzy Date: Mon, 17 Jun 2024 22:52:04 +0100 Subject: [PATCH] order.loadShippingRates() Csp bug at latest magento 2.4.7 Source https://experienceleague.adobe.com/en/docs/commerce-knowledge-base/kb/troubleshooting/payments/admin-create-order-page-in-csp-restricted-mode --- .../templates/order/create/shipping/method/form.phtml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/view/adminhtml/templates/order/create/shipping/method/form.phtml b/src/view/adminhtml/templates/order/create/shipping/method/form.phtml index 26513a3..9f46c8e 100644 --- a/src/view/adminhtml/templates/order/create/shipping/method/form.phtml +++ b/src/view/adminhtml/templates/order/create/shipping/method/form.phtml @@ -128,10 +128,11 @@
- + + echo __('Get shipping methods and rates') ?> + renderEventListenerAsTag('onclick', 'order.loadShippingRates();return false;', '#loadShippingRates'); ?>