Making Pay with wallet checked default in the Checkout page2019-11-16T10:29:17+05:30

Home Forums Core Making Pay with wallet checked default in the Checkout page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • jordanbanu8
    Participant
    Post count: 1

    Thanks for the awesome plugin!!

    How can I make the Pay with wallet checked default in the Checkout page? if the customer decides not to pay with a wallet they can uncheck it.

    Note: I’m using the wallet for partial payment only (ex. only 10% of the cart value is paid using terawallet, remaining will be paid by another gateway ).

    jdizzle
    Participant
    Post count: 12

    you could use jquery to select it after the page finishes rendering.

    If their balance is 0, it can’t be shown without hacking it together.

    You can use this filter.
    add_filter( ‘woo_wallet_payment_is_available’, ‘__return_true’);
    But will need to do some more work arounds for error messages etc.

    It also creates the order still, but no payment gets captured (holding the order). You can work around this though.

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