Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter zokomon

    (@heminghela)

    How do i assign the guest order to an already registered account if any?

    your answer`How do i assign the guest order to an already registered account if any?

    Go to the Order > under Customer where it currently says guest, click in the plank field and start typing [email protected]‘s email address. Options will filter out in a drop down. Select the correct email user and update the order.`

    I want to do that automatically and not manually for all guest orders.
    also when an account is automatically created during guest checkout, the order should be assigned to it also.

    Thread Starter zokomon

    (@heminghela)

    Solved it.
    Thanks

    add_action('init', 'change_woo_wallet_cashback_position');
    if(!function_exists('change_woo_wallet_cashback_position')){
        function change_woo_wallet_cashback_position(){
            if(class_exists('Woo_Wallet_Frontend')){
                if(remove_action('woocommerce_before_cart_table', array(Woo_Wallet_Frontend::instance(), 'woocommerce_before_cart_table'))){
                    add_action('woocommerce_before_cart_totals', array(Woo_Wallet_Frontend::instance(), 'woocommerce_before_cart_table'), 5);
    			}
    				if(remove_action('woocommerce_before_checkout_form', array(Woo_Wallet_Frontend::instance(), 'woocommerce_before_cart_table'))){
                    add_action('woocommerce_checkout_before_order_review', array(Woo_Wallet_Frontend::instance(), 'woocommerce_before_cart_table'), 5);
    			}
    			
            }
        }
    }
    Thread Starter zokomon

    (@heminghela)

    Hi, One more thing,

    Add this message to ORDER COMPLETE page after successfull checkout.

    Your cashback of $10 will be credited in your wallet after order completion.(also to be mentioned in the sidebar order details section)
    https://prnt.sc/l2c39f

    Thread Starter zokomon

    (@heminghela)

    You are amazing My Man.

    Just one more thing.

    Same for the Checkout page.

Viewing 4 replies - 1 through 4 (of 4 total)