Merge pull request #2720 from woocommerce/PCP-3504-resolve-duplicate-css-id-place-order

Axo: Remove the submit button when Fastlane is disabled (3504)
This commit is contained in:
Emili Castells 2024-10-30 16:55:33 +01:00 committed by GitHub
commit a0518b8352
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -222,9 +222,11 @@ class AxoModule implements ServiceModule, ExtendingModule, ExecutableModule {
// Render submit button.
add_action(
$manager->checkout_button_renderer_hook(),
static function () use ( $c, $manager ) {
static function () use ( $c, $manager, $module ) {
if ( $module->should_render_fastlane( $c ) ) {
$manager->render_checkout_button();
}
}
);
/**