WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Can't Pay/Checkout with myCred as only method of payment (2 posts)

  1. jeffmace
    Member
    Posted 9 months ago #

    I have just installed the a fresh copy of woocommerce and using myCred. I can not get through checkout with myCred as my only form of payment. I get the error message:

    Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.

    I have shipping disabled (also tried it as free shipping). I have myCred setup as a currency (points), and it will not allow me to finish. Is there something else I need to do so that it recognizes the points as a form of payment.

    http://wordpress.org/plugins/woocommerce/

  2. colson73
    Member
    Posted 1 month ago #

    Add the following to your functions.php file in your theme.

    add_action( 'after_setup_theme', 'customize_woo_mycred_gateway', 999 );
    function customize_woo_mycred_gateway() {
    // Remove the gateway hook
    remove_filter( 'woocommerce_available_payment_gateways', 'mycred_woo_available_gateways' );
    // Add our own gateway hook
    add_filter( 'woocommerce_available_payment_gateways', 'mycred_always_show_payment_option_in_woo' );
    function mycred_always_show_payment_option_in_woo( $gateways )
    {
    return $gateways;
    }
    }

Reply

You must log in to post.

About this Plugin

About this Topic

Tags