Celebrate myCred's Birthday with a BANG! - Use "Birthday30" for 1 year & "Birthday50" for 3 year to get up to 50% off on Membership Plans.

mycred gateway in woocommerce not working

front page Forums Community mycred gateway in woocommerce not working

This topic contains 6 replies, has 4 voices, and was last updated by Avatar M 5 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #32032
    Avatar
    2KDesign

    Hey guys!
    Does any of you have the same problem?

    I create a product and reward it with a custom pointtype.

    If a user buys this product and pays with his points nothing happens. The points are not deducted from his balance and he’s not receiving the given reward.
    It seems that the gateway does “nothing” though its implemented correctly and should work.

    Any suggestions on this?

    Thanks in advance.

    #32039
    Avatar
    WPExperts

    If you look at the documentation, you will find that myCRED does not payout points when you pay for your order using points.

    #32052
    Avatar
    2KDesign

    Thanks for the hint Gabriel!

    But it also doesnt deduct the points from the users balance.

    #32058
    Avatar
    2KDesign

    And that mycred doesnt reward points when you pay with points is okay and makes sense…but it also doesnt reward custompointtype if you paid with points.thats sad..can’t do my project as i wanted ^^

    #32146
    Avatar
    M

    Hi,

    You can hook into the order payment process and easily do that.

    Cordially, M.

    #48019
    Avatar
    adrian26

    How do you hook into the order process so that it deduct the user points?

    #48859
    Avatar
    M

    H @adrian26,

    It is no longer necessary to do that, you can try this:

    add_filter( 'mycred_woo_reward_mycred_payment', '__return_true' );

    Insert the above code snippet into your theme’s functions.php file or make it into a custom plugin.

    Cordially, M.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

11