Created
December 22, 2017 08:17
-
-
Save corsonr/8fe997e638d553919e4e6410c39d0bf9 to your computer and use it in GitHub Desktop.
WooCommerce: disable payments on checkout page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Do not include this if already open! Code goes in theme functions.php. | |
// Disable all payment gateways on the checkout page and replace the "Pay" button by "Place order" | |
add_filter( 'woocommerce_cart_needs_payment', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment