PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
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/CheckoutRenderer.php +16 -2 1.6.0 → 1.6.5 View file →
@@ -150,9 +150,8 @@
150 150 <?php
151 151 $hookData = [
152 152 'cart' => $this->cart
153 153 ];
154 - do_action_deprecated('fluent_cart/afrer_checkout_page_start', [$hookData], '1.3.16', 'fluent_cart/after_checkout_page_start', 'Use fluent_cart/after_checkout_page_start instead of fluent_cart/afrer_checkout_page_start. It will be removed in v1.4.3.');
155 154 do_action('fluent_cart/after_checkout_page_start', $hookData);
156 155 }
157 156
158 157 public function renderNotices()
@@ -788,8 +787,23 @@
788 787 $firstMethod = reset($activePaymentMethods);
789 788 $selectedPaymentMethod = $firstMethod ? $firstMethod->getMeta('route') : '';
790 789 }
791 790
791 + /**
792 + * The payment method rendered as checked. An add-on that renders its own
793 + * selector outside this list (e.g. saved payment methods) returns a route
794 + * that is not in the list, so no gateway here is checked — the page then
795 + * arrives with the add-on's choice already selected instead of a gateway
796 + * being checked first and switched over by JS after load.
797 + *
798 + * @param string $selectedPaymentMethod
799 + * @param array $context ['cart' => Cart, 'payment_methods' => array]
800 + */
801 + $selectedPaymentMethod = (string) apply_filters('fluent_cart/checkout/selected_payment_method', $selectedPaymentMethod, [
802 + 'cart' => $this->cart,
803 + 'payment_methods' => $activePaymentMethods
804 + ]);
805 +
792 806 $checkoutMethodStyle = $this->storeSettings->get('checkout_method_style', 'logo');
793 807
794 808 ?>
795 809 <div id="fluent_payment_methods" class="fluent_payment_methods">
@@ -934,9 +948,9 @@
934 948 'route' => $route,
935 949 'method_title' => $methodTitle,
936 950 'method_style' => $methodStyle,
937 951 ];
938 - $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.');
952 + $paymentMethodClass = '';
939 953 $paymentMethodClass = apply_filters('fluent_cart/payment_method_list_class', $paymentMethodClass, $pmContext);
940 954
941 955 ?>
942 956 <div class="<?php echo "fluent-cart-checkout_embed_payment_container fluent-cart-checkout_embed_payment_container_" . esc_attr($route . ' ' . $paymentMethodClass); ?>"