Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fastlane - Block checkout static meta comment is missing (3757) #2834

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

stracker-phil
Copy link
Contributor

Description

This PR moves the feature-detection code into a separate hook that is always fired on checkout, cart and shop pages.

Before this PR, the flag was only output if AXO was eligible, the cart did not contain a subscription and the session was not in continuation mode:

if ( ! $is_paypal_enabled
|| ! $c->get( 'axo.eligible' )
|| $this->is_paypal_continuation()
|| $subscription_helper->cart_contains_subscription()
) {
return;
}

@danieldudzic
Copy link
Contributor

So this will fire each time ACDC and Fastlane are enabled, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants