Support » Plugin: TeraWallet - For WooCommerce » Add credits to Tera wallet when custom status order is made

  • Resolved rivduan

    (@rivduan)


    Hello, wonderful plugin. I need help with this please if possible.
    I have several custom status, and one of them is ‘order-unavailable’

    I want to know how to add credits from the total purchase to a customer when that custom status is trigered

    So this is:
    1- Customer place an order (example $2.00)
    2- Order set status to ‘order-unavailable’
    3- Customer receive the $2.00 on Credits in terawallet

    Are there a function that i can use on Woocommerce to do this?

    Thank you

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

    (@subratamal)

    @rivduan For this you have to do custom code using the WooCommerce hook.

    Thread Starter rivduan

    (@rivduan)

    What hooks can i use from the plugin Terawallet to add credits?
    So i can write a custom function

    Plugin Author Subrata Mal

    (@subratamal)

    @rivduan You can use our hook wallet_credit_purchase_order_status to set in which order status the balance will be credited to the user’s wallet.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add credits to Tera wallet when custom status order is made’ is closed to new replies.