• Resolved ajaffarali

    (@ajaffarali)


    I have installed MyCredz plugin for Woo Commerce but at checkout, the following is displayed:

    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.

    http://wordpress.org/plugins/mycred/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author myCred

    (@designbymerovingi)

    This happens when:

    1. You only have myCRED enabled as a form of payment AND
    2. The user is either excluded from using myCRED or don’t have enough points to make a purchase.

    Thread Starter ajaffarali

    (@ajaffarali)

    You’re absolutely right- but is there a way to change the message that the user doesn’t have enough points instead of the one above? I only have Credits as a means to purchase as its a community based site that rewards on participation.

    Plugin Author myCred

    (@designbymerovingi)

    There is no way for us to show a gateway but disable it, a payment gateway in WooCommerce is either available or not.

    You could override the Gateway add-ons handling of this and force to always include the gateway. The payment processing system that fires when you select “Pay” still checks to make sure you can pay using points and would return an error in case a user insist on trying to pay.

    To do this, you would need to remove where the Gateway add-on hooks into WooCommerce and replace it with your own function:

    // Hook in after gateway has loaded
    add_action( 'plugins_loaded', 'customize_woo_mycred_gateway', 15 );
    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;
    	}
    }

    The above code goes in your themes functions.php file.

    You can also just update the review-order.php and form-pay.php in /plugins/woocommerce/templates/checkout/ assuming your theme doesn’t bypass it somehow.

    Pasting some improved search terms below for SEO as this error took me way too long to track down.

    mycred change
    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.

    woocommerce error
    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issue with WooCommerce’ is closed to new replies.