• Resolved ak5hay

    (@ak5hay)


    Hi, I have added custom order status to woocommerce. I am not able to see the custom status option when I click settings -> credit options -> process cashback

    I have the following custom statuses
    – order-collected
    – out-for-delivery
    – order-delivered
    – store-pickup

    I have tried adding custom filter as below but still no luck, can you please help.
    add_filter(‘woo_wallet_process_cashback_status’, ‘woo_wallet_process_cashback_status_callback’);
    function woo_wallet_process_cashback_status($status){
    $status[‘order-collected’] = ‘Order Collected’;
    return $status;
    }

    P.S. I have no knowledge of coding. I can just follow instructions

    Many thanks for your help

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

    (@subratamal)

    @ak5hay Use the attached updated code.

    add_filter('woo_wallet_process_cashback_status', 'woo_wallet_process_cashback_status_callback');
    
    function woo_wallet_process_cashback_status_callback($status) {
        $status['order-collected'] = 'Order Collected';
        return $status;
    }

    I used this code in function.php and this custom orde is showing in the wallet settings and tried changing the order status but no cashback is provided to the customer –

    add_filter('woo_wallet_process_cashback_status', 'woo_wallet_process_cashback_status_callback');
    
    function woo_wallet_process_cashback_status_callback($status) {
        $status['delivered-success'] = 'Delivered Success';
    	return $status;
    }

    Screenshot- https://nimb.ws/A1IGXy

    I tested his @ak5hay code also by createing a new order status: ‘order-collected’ still it’s not working

    WORKING

    WORKING

    add_filter('woo_wallet_process_cashback_status', 'woo_wallet_process_cashback_status_callback');
    function woo_wallet_process_cashback_status_callback($status) {
        $status['order-collected'] = 'Order Collected';
        return $status;
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce custom order status credit’ is closed to new replies.