Skip to content

Commit

Permalink
Merge pull request #2720 from woocommerce/PCP-3504-resolve-duplicate-…
Browse files Browse the repository at this point in the history
…css-id-place-order

Axo: Remove the submit button when Fastlane is disabled (3504)
  • Loading branch information
Dinamiko authored Oct 30, 2024
2 parents 945a252 + bf52b48 commit a0518b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/ppcp-axo/src/AxoModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,10 @@ static function () use ( $c, $manager, $module ) {
// Render submit button.
add_action(
$manager->checkout_button_renderer_hook(),
static function () use ( $c, $manager ) {
$manager->render_checkout_button();
static function () use ( $c, $manager, $module ) {
if ( $module->should_render_fastlane( $c ) ) {
$manager->render_checkout_button();
}
}
);

Expand Down

0 comments on commit a0518b8

Please sign in to comment.