• Resolved rasmuss

    (@rasmuss)


    Hi!

    First of all – great plugin. I have this situation where I want to give users bonus, when they buy enough “credit”.
    Example: If you buy 10 credits, then you’ll get 10 * 0.5 + 10 = 15 credit in total (but you’ll pay 10 euros). I believe I should be doing this action AFTER user has bought an item.
    1) Do you see a place where I could do it?
    2) How to manually update records? Is there somekind of hook or something I can attach to?

    Thank you!

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

    (@subratamal)

    @rasmuss,

    Thanks for reaching out to our support forum. Please use the code snippet to themes function.php file for above scenario.

    add_filter('woo_wallet_credit_purchase_amount', 'woo_wallet_credit_purchase_amount_callback');
    function woo_wallet_credit_purchase_amount_callback($credit){
        $credit = ($credit * 0.5) + $credit;
        return $credit;
    }

    Thanks and Regards,
    Subrata Mal

    Thread Starter rasmuss

    (@rasmuss)

    Simply amazing – Thank you so much ??

    Plugin Author Subrata Mal

    (@subratamal)

    @rasmuss,

    Could you please consider posting a review of our plugin? In addition to providing feedback, reviews can help other users to know who we are and what our plugin does.

    Cheers!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding bonus’ is closed to new replies.