Support » Plugin: TeraWallet - For WooCommerce » How to add a minus debit amount to users?

  • Resolved developerspark

    (@developerspark)


    We need to see how/if we can put a minus amount to users (Meaning they owe money). Can we put a negative and we need to see how it works if someone tries to purchase.
    For example, if wallet balance is 105.66 we can debit less than or equal to 105.66
    we can’t debit greater than 105.66 which occurs error
    Could you please help me out? Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    Hi @developerspark,

    The negative transaction is not recommended by this plugin. But you can activate negative transaction by placing add_filter('woo_wallet_disallow_negative_transaction', '__return_false') to active theme function.php file.

    Thread Starter developerspark

    (@developerspark)

    Hi Subrata,

    Thanks so much for this very quick reply.
    It works perfectly in adding minus debit on wp-admin and working fine on the top-up wallet section! But it’s not working fine on checkout/placing order.

    For example, if I’m having a -€ 150.00 debit in my wallet and when I go to purchase an item from the cart of total € 129.87 and if I checked “Pay by wallet” the order total will become € 279.87. I’ve placed the order successfully with another payment method and then I checked back my wallet, now it’s showing -€ 300 as wallet balance. I think it should be € 0 since I’ve done the repayment of debt, right? But now it added -€ 150 to my last debit balance -€ 150.

    Can you please help?

    Thanks in advance!

    Thread Starter developerspark

    (@developerspark)

    HI,
    Could you please let me know your feedback on the above?

    Thread Starter developerspark

    (@developerspark)

    Hi,
    Is there anyone to help?

    thank you @subratamal
    work good i test it also with paypal is work ok – and +
    i was need to this code thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add a minus debit amount to users?’ is closed to new replies.