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

Enable/disable ajax cart based on Woo settings and added a filter to … #713

Merged
merged 3 commits into from
Mar 2, 2024

Conversation

crftwrk
Copy link
Member

@crftwrk crftwrk commented Mar 1, 2024

Enable/disable ajax-add-to-cart.php based on Woo settings:

Enabled Disabled
Enabled Disabled

Disable ajax-add-to-cart.php always, no matter which settings have been made. This brings back the default Woo behaviour, good if you are using the subscription plugin but want to keep the ajax functionality in archives:

add_filter('bootscore/load_ajax', '__return_false');

@justinkruit think this is a nice one

@crftwrk crftwrk added ajax cart breaking documentation Improvements or additions to documentation and removed breaking labels Mar 1, 2024
@crftwrk crftwrk mentioned this pull request Mar 1, 2024
@crftwrk crftwrk merged commit f9fa2fb into v6.0.0-beta1 Mar 2, 2024
@crftwrk crftwrk deleted the Enable/disable-ajax-cart.php-by-Woo-settings branch March 2, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ajax cart documentation Improvements or additions to documentation
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant