• Resolved hjroh7

    (@hjroh7)


    Hi support team,

    What should I do when I want to give cashback points when purchasing the Topup product after setting Credit Options > Cashback Rule > product wise?
    I tried to set the Cashback Amount for the Topup product, it being private and hidden, I could not enter Cashback Amount.

    Secondly, is it possible to set the Cart wise Cashback rule as a global setting to give the cashback amount and, if necessary, override each product to take a different cashback amount?

    Thanks a lot.

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

    (@subratamal)

    @hjroh7 cashback on wallet top-up product is not possible. Alternatively you can write custom code using our plugin hook to give bonus on wallet recharge.

    Thread Starter hjroh7

    (@hjroh7)

    Hi Subrata

    I completely understood. Then, is there any development document where we can get information such as provided hooks? I tried visiting the site, but couldn’t find the related doc.

    Thanks.

    Plugin Author Subrata Mal

    (@subratamal)

    @hjroh7 Please use the hook like the attached code.

    add_filter('woo_wallet_credit_purchase_amount', 'woo_wallet_credit_purchase_amount_callback');
    
    function woo_wallet_credit_purchase_amount_callback($amount){
        $bonus = 10;
        return $amount + $bonus;
    }
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Topup product purchase cacheback’ is closed to new replies.