• Resolved zokomon

    (@heminghela)


    Hi,

    Can you help with changing the location of the cashback received message on checkout page from its default location to inside the checkout sidebar.

Viewing 1 replies (of 1 total)
  • 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);
    			}
    			
            }
        }
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Change Cashback information position on checkout page.’ is closed to new replies.