• Resolved alex86ita

    (@alex86ita)


    Currently, by default, if a user purchases a product on WooCommerce using credits, it is not possible to credit points. Is there a way to disable this option?I would need the user’s reward points to appear in their wallet when they use credits to purchase a product.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello @alex86ita ,

    Hope you are doing well.

    There is ambiguity in your question. We need to know are you talking about myCred gateway ‘Pay with Points’ or are you talking about our other gateway addons like BuyCred or CashCred. Can you please also clarify what you mean by credits and wallet? Are you talking about myCred point types and which gateway are you using for wallet? Please clarify.

    Thanks & Regards,
    WP Experts Support Team.

    Thread Starter alex86ita

    (@alex86ita)

    Good evening,

    I am referring to the Woocommerce gateway. If I set a product to issue points after a purchase, customers who make a purchase using credits do not receive any points credit.I have seen in the documentation that this is a default setting. Is it possible to enable customers to receive points?

    Thank you

    Hello @alex86ita ,

    When you purchase the products using ‘myCRED – Pay with myCRED’ gateway in woocommerce the respective user get the point and user logs are not created. We need to look into your scenario as to why the user is not getting points on product purchase. Can you please make a short video of the whole scenario? It will help us in replicating the scenario on our environment and test it. We have tested it. The functionality is working absolutely fine.

    Hope to hear soon from you.

    Thanks

    Thread Starter alex86ita

    (@alex86ita)

    Hello! Thank you very much for your help!

    I have found out what the problem is that prevents me from getting points. I hadn’t realized that the orders were still set to “in progress.”

    I had inserted the code that I found in the documentation:

    /**
     * Adjust myCRED Point Rewards
     * Will move the points payout from when an order is "paid" to when
     * an order is "completed".
     * @version 1.0
     */
    add_action( 'after_setup_theme', 'mycred_pro_adjust_woo_rewards', 110 );
    function mycred_pro_adjust_woo_rewards() {
    
    	remove_action( 'woocommerce_payment_complete',    'mycred_woo_payout_rewards' );
    	add_action( 'woocommerce_order_status_completed', 'mycred_woo_payout_rewards' );
    
    }

    but it doesn’t work. I tried to insert it both in the functions.php of the Astra theme and to use the “code snippets” plugin.

    Thread Starter alex86ita

    (@alex86ita)

    Please, don’t make fun of me! I fixed the problem by setting the product as “downloadable.”
    Thank you very much for your help!

    Thanks for the feedback.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Buy with credits on WooCommerce and earn points.’ is closed to new replies.