• Resolved muntazir599

    (@muntazir599)


    I want to disable cashback or hold cashback for cash on delivery.Is this possible in current version of your plugin.

    The page I need help with: [log in to see the link]

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

    (@subratamal)

    @muntazir599,

    Yes, you can hold the order for cash on delivery by using below custom code to theme function.php file.

    add_filter('woocommerce_cod_process_payment_order_status', 'woocommerce_cod_process_payment_order_status_callback');
    function woocommerce_cod_process_payment_order_status_callback($status){
        $status = 'on-hold';
        return $status;
    }

    Thank you.

    Thread Starter muntazir599

    (@muntazir599)

    I don’t want to disable COD payment mode.
    let me explain this in detail.
    I started 5% cashback on wallet. What if user order any product through COD, get 5% cashback and cancel his order.
    He didn’t pay us but get 5% cashback which he can use his next order.
    Please resolve this issue

    Plugin Author Subrata Mal

    (@subratamal)

    @muntazir599,

    I understand your problem. Basically we process cashback credit after an order is in processing or completed state. In COD the default order status will be processing after placing an order. That’s why the above code force to crate an order with on-hold status in COD payment and when customer pay the money and you (as admin) mark the order as completed then only customer will have there cashback.

    Looking forward to your co-operation regarding the same

    Thanks and regards,
    Subrata Mal

    Plugin Author Subrata Mal

    (@subratamal)

    @muntazir599,

    I am not heard back from you so I believe that the issue has been resolved. I am marking this topic as resolved please feel free to create new support thread for any further assistance.

    Thank you.

    Thread Starter muntazir599

    (@muntazir599)

    Sorry Subrata, my issue is not resolved.
    I used your code in function.php file. It hold next cashback but i get another problem.
    Like if I have 100 rupees in my wallet. I purchased any product of 250 rupees with cod. then i have to pay only 150 rupees at this time. And my wallet cashback has been hold.
    But my current wallet value did not change to zero it will be still 100. if i order again any product I can use 100 rupees of my wallet again.

    can you please add a new feature where i can select wallet cashback on selected payment gateway.

    Plugin Author Subrata Mal

    (@subratamal)

    @muntazir599,

    We are looking into this issue. We will try to resolve this in our next update.

    Thank you.

    Thread Starter muntazir599

    (@muntazir599)

    Is it possible to make a button for request money for withdrawal.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Disable cashback for COD’ is closed to new replies.