PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.6
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.6
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
← All changes | app/Services/Renderer/ModalCheckoutRenderer.php +16 -1 1.6.1 → 1.6.6 View file →
@@ -689,8 +689,23 @@
689 689 $firstMethod = reset($activePaymentMethods);
690 690 $selectedPaymentMethod = $firstMethod ? $firstMethod->getMeta('route') : '';
691 691 }
692 692
693 + /**
694 + * The payment method rendered as checked. An add-on that renders its own
695 + * selector outside this list (e.g. saved payment methods) returns a route
696 + * that is not in the list, so no gateway here is checked — the page then
697 + * arrives with the add-on's choice already selected instead of a gateway
698 + * being checked first and switched over by JS after load.
699 + *
700 + * @param string $selectedPaymentMethod
701 + * @param array $context ['cart' => Cart, 'payment_methods' => array]
702 + */
703 + $selectedPaymentMethod = (string) apply_filters('fluent_cart/checkout/selected_payment_method', $selectedPaymentMethod, [
704 + 'cart' => $this->cart,
705 + 'payment_methods' => $activePaymentMethods
706 + ]);
707 +
693 708 $checkoutMethodStyle = $this->storeSettings->get('checkout_method_style', 'logo');
694 709
695 710 ?>
696 711 <div id="fluent_payment_methods" class="fct_modal_payment_methods fluent_payment_methods">
@@ -801,9 +816,9 @@
801 816 'route' => $route,
802 817 'method_title' => $methodTitle,
803 818 'method_style' => $methodStyle,
804 819 ];
805 - $paymentMethodClass = apply_filters_deprecated('fluent_cart_payment_method_list_class', ['', $pmContext], '1.3.16', 'fluent_cart/payment_method_list_class', 'Use fluent_cart/payment_method_list_class instead of fluent_cart_payment_method_list_class.');
820 + $paymentMethodClass = '';
806 821 $paymentMethodClass = apply_filters('fluent_cart/payment_method_list_class', $paymentMethodClass, $pmContext);
807 822
808 823 ?>
809 824 <div class="fluent-cart-checkout_embed_payment_wrapper">