Show the wallet even without balance2019-08-15T14:54:26+05:30

Home Forums Core Show the wallet even without balance

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Vinicius Arcanjo
    Participant
    Post count: 1

    It is possible to show the wallet even without balance, as a means of payment.

    Is there any way to do this?

    Subrata Mal
    Keymaster
    Post count: 175

    Hi,

    Sorry, this cannot be done.

    jdizzle
    Participant
    Post count: 12

    This can’t be done without modifying core code. But you could try this depending on your setup.
    add_filter( ‘woocommerce_no_available_payment_methods_message’, ‘top_up_balance_error’ );
    function top_up_balance_error() {
    //edit content to what you would like.
    //make sure to add link to your wallet or add credits page.
    $content = ‘Your balance is not enough. Top-up now to complete checkout’;
    return $content;
    }

    This will change the output for when there are no available payment methods from the generic

    “Sorry, there is no available payment method for your current state…. etc”

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.